English
Language : 

M16C65 Datasheet, PDF (543/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
23.3 Operations
23.3.1 Clock Synchronous Serial I/O Mode
The clock synchronous serial I/O mode uses a transmit/receive clock to transmit/receive data. Table
23.5 lists the Clock Synchronous Serial I/O Mode Specifications.
Table 23.5 Clock Synchronous Serial I/O Mode Specifications
Item
Data format
Character bit length: 8 bits
Specification
Transmit/receive clock
• CKDIR bit in the UiMR register = 0 (internal clock):
-2---(---n---f--+j----1----)-
fj = f1SIO, f2SIO, f8SIO, f32SIO n = Setting value of UiBRG register
• CKDIR bit = 1 (external clock): Input from CLKi pin
00h to FFh
Transmission and reception Selectable from CTS function, RTS function or CTS/RTS function disabled
control
Transmission start conditions To start transmission, satisfy the following requirements (1)
• The TE bit in the UiC1 register = 1 (transmission enabled)
• The TI bit in the UiC1 register = 0 (data present in UiTB register)
• If CTS function is selected, input on the CTSi pin is low.
Reception start conditions
To start reception, satisfy the following requirements (1)
• The RE bit in the UiC1 register = 1 (reception enabled)
• The TE bit in the UiC1 register = 1 (transmission enabled)
• The TI bit in the UiC1 register = 0 (data present in the UiTB register)
Interrupt request
generation timing
Transmit interrupt: One of the following can be selected.
• The UiIRS bit = 0 (transmit buffer empty): When transferring data from the UiTB
register to the UARTi transmit register (at start of transmission)
• The UiIRS bit =1 (transmission completed): When the serial interface completed
sending data from the UARTi transmit register
Receive interrupt:
• When transferring data from the UARTi receive register to the UiRB register (at
completion of reception)
Error detection
Overrun error (2)
This error occurs if the serial interface started receiving the next unit of data before
reading the UiRB register and received the 7th bit of the next unit of data
Selectable functions
• CLK polarity selection
Data input/output can be selected to occur synchronously with the rising or the falling
edge of the transmit/receive clock
• LSB first, MSB first selection
Whether to start sending/receiving data beginning with bit 0 or beginning with bit 7
can be selected
• Continuous receive mode selection
Reception is enabled immediately by reading the UiRB register
• Switching serial data logic
This function reverses the logic value of the transmit/receive data
• Transmit/receive clock output from multiple pins selection (UART1)
The output pin can be selected by a program by setting two UART1 transmit/receive
clock pins.
• Separate CTS/RTS pins (UART0)
CTS0 and RTS0 are input/output from separate pins
i = 0 to 2, 5 to 7
Notes:
1. When an external clock is selected, either of the following conditions must be met: If the CKPOL bit in the
UiC0 register is 0 (transmit data output at the falling edge and the receive data taken in at the rising edge of
the transmit/receive clock), the external clock is in the high state; if the CKPOL bit in the UiC0 register is 1
(transmit data output at the rising edge and the receive data taken in at the falling edge of the transmit/
receive clock), the external clock is in the low state.
2. If an overrun error occurs, the receive data of the UiRB register will be undefined. The IR bit in the SiRIC
register remains unchanged.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 508 of 791