R01UH0136EJ0210 Rev.2.10
Page 483 of 800
Jul 31, 2012
M16C/64A Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
23.3.2.2
LSB First/MSB First Select Function
As shown in Figure 23.14, 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.
Figure 23.14 Bit Order
(1) UFORM bit in the UiC0 register = 0 (LSB first)
D1
D2
D3
D4
D5
D6
SP
D0
D1
D2
D3
D4
D5
D6
SP
D0
TXDi
RXDi
CLKi
(2) UFORM bit in the UiC0 register = 1 (MSB first)
D6
D5
D4
D3
D2
D1
D0
D7
TXDi
RXDi
CLKi
ST
ST
D7
P
D7
P
SP
SP
ST
ST
P
P
D6
D5
D4
D3
D2
D1
D0
D7
i = 0 to 2, 5 to 7
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
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...