M16C/62P Group (M16C/62P, M16C/62PT)
17. Serial Interface
Rev.2.41
Jan 10, 2006
Page 226 of 390
REJ09B0185-0241
17.1.6.2
Format
When direct format, set the PRYE bit in the U2MR register to “1”, the PRY bit to “1”, the UFORM bit in the
U2C0 register to “0” and the U2LCH bit in the U2C1 register to “0”. When data are transmitted, data set in the
U2TB register are transmitted with the even-numbered parity, starting from D0. When data are received,
received data are stored in the U2RB register, starting from D0. The even-numbered parity determines whether
a parity error occurs.
When inverse format, set the PRYE bit to “1”, the PRY bit to “0”, the UFORM bit to “1” and the U2LCH bit to
“1”. When data are transmitted, values set in the U2TB register are logically inversed and are transmitted with
the odd-numbered parity, starting from D7. When data are received, received data are logically inversed to be
stored in the U2RB register, starting from D7. The odd-numbered parity determines whether a parity error
occurs.
Figure 17.37
SIM Interface Format
P : Even parity
D0
D1
D2
D3
D4
D5
D6
D7
P
TXD2
TXD2
D7
D6
D5
D4
D3
D2
D1
D0
P
(1) Direct format
“H”
“L”
“H”
“L”
(2) Inverse format
P : Odd parity
“H”
“L”
“H”
“L”
Transfer
clcck
Transfer
clcck
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655