R01UH0092EJ0110 Rev.1.10
Page 513 of 807
Jul 31, 2012
M16C/64C Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
23.3.6.2
Formats
Two formats are available: direct format and inverse format.
For direct format, set the PRYE bit in the U2MR register to 1 (parity enabled), the PRY bit to 1 (even
parity), the UFORM bit in the U2C0 register to 0 (LSB first), and the U2LCH bit in the U2C1 register to 0
(not inverted). When data is transmitted, data set in the U2TB register are transmitted with the even-
numbered parity, starting from D0. When data is received, the received data is stored in the U2RB
register, starting from D0. The even-numbered parity is used to determine whether a parity error occurs.
For inverted format, set the PRYE bit to 1, the PRY bit to 0 (odd parity), the UFORM bit to 1 (MSB first),
and the U2LCH bit to 1 (inverted). When data is transmitted, values set in the U2TB register are
logically inverted and are transmitted with the odd-numbered parity, starting from D7. When data is
received, the received data is logically inverted to be stored in the U2RB register, starting from D7. The
odd-numbered parity is used to determine whether a parity error occurs.
Figure 23.38 shows the SIM Interface Format.
Figure 23.38 SIM Interface Format
D0
D1
D2
D3
D4
D5
D6
D7
P
Transmit/receive clock
TXD2
P: Odd parity
Transmit/receive clock
TXD2
D7
D6
D5
D4
D3
D2
D1
D0
P
(1) Direct format
(2) Inverse format
P: Even parity
High
Low
High
Low
High
Low
High
Low
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...