Download Print this page

Renesas M16C/50 Series User Manual page 501

Advertisement

M16C/5L Group, M16C/56 Group
21.3.2.2
LSB First/MSB First Select Function
As shown in Figure 21.10, the bit order can be selected by setting the UFORM bit in the UiC0 register.
This function is enabled when the character bit length is 8 bits.
(1) UFORM bit in the UiC0 register = 0 (LSB first)
CLKi
TXDi
RXDi
(2) UFORM bit in the UiC0 register = 1 (MSB first)
CLKi
TXDi
RXDi
i = 0 to 4
The above assumes the following:
• 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 UiLCH bit in the UiC1 register is 0 (not inverted).
• The STPS bit in the UiMR register is 0 (1 stop bit).
• The PRYE bit in the UiMR register is 1 (parity enabled).
ST: Start bit
P: Parity bit
SP: Stop bit
Figure 21.10 Bit Order
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
ST
D0
D1
D2
ST
D0
D1
D2
ST
D7
D6
D5
ST
D7
D6
D5
21. Serial Interface UARTi (i = 0 to 4)
D3
D4
D5
D6
D3
D4
D5
D6
D4
D3
D2
D1
D4
D3
D2
D1
D7
P
SP
D7
P
SP
D0
P
SP
D0
P
SP
Page 464 of 803

Advertisement

loading