Download Print this page

Renesas M16C/50 Series User Manual page 529

Advertisement

M16C/5L Group, M16C/56 Group
21.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 21.33 shows the SIM Interface Format.
(1) Direct format
Transmit/receive clock
TXD2
(2) Inverse format
Transmit/receive clock
TXD2
Figure 21.33 SIM Interface Format
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
High
Low
High
D0
D1
Low
High
Low
High
D7
D6
Low
21. Serial Interface UARTi (i = 0 to 4)
D2
D3
D4
D5
D6
D5
D4
D3
D2
D1
D7
P
P: Even parity
D0
P
P: Odd parity
Page 492 of 803

Advertisement

loading