|
M16C28 Datasheet, PDF (230/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES | |||
|
◁ |
M16C/28 Group (M16C/28, M16C/28B)
14. Serial I/O
Figure 14.32 shows the example of connecting the SIM interface. Connect TXD2 and RXD2 and apply
pull-up.
Microcomputer
TxD2
RxD2
SIM card
Figure 14.32 SIM Interface Connection
14.1.6.1 Parity Error Signal Output
The parity error signal is enabled by setting the U2ERE bit in theU2C1 register to â1â.
⢠When receiving
The parity error signal is output when a parity error is detected while receiving data. This is achieved
by pulling the TxD2 output low with the timing shown in Figure 14.33. If the R2RB register is read
while outputting a parity error signal, the PER bit is cleared to â0â and at the same time the TxD2 output
is returned high.
⢠When transmitting
A transmission-finished interrupt request is generated at the falling edge of the transfer clock pulse
that immediately follows the stop bit. Therefore, whether a parity signal has been returned can be
determined by reading the port that shares the RxD2 pin in a transmission-finished interrupt service
routine.
Transfer âHâ
clock âLâ
RxD2 âHâ
âLâ
ST D0 D1 D2 D3 D4 D5 D6 D7
TxD2 âHâ
(1)
âLâ
U2C1 register â1â
RI bit â0â
This timing diagram applies to the case where the direct format is
implemented.
NOTES:
1. The output of microcomputer is in the high-impedance state
(pulled up externally).
P SP
ST : Start bit
P : Even Parity
SP : Stop bit
Figure 14.33 Parity Error Signal Output Timing
Rev. 2.00 Jan. 31, 2007 page 210 of 385
REJ09B0047-0200
|
▷ |