|
M306H7MG-XXXFP Datasheet, PDF (136/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER | |||
|
◁ |
M306H7MG-XXXFP/MC-XXXFP/FGFP
10. SERIAL I/O
Figure 10.31 shows the example of connecting the SIM interface. Connect TXD2 and RXD2 and apply pull-up.
Microcomputer
TxD2
RxD2
SIM card
Figure 10.31 SIM Interface Connection
10.7.1 Parity Error Signal Output
The parity error signal is enabled by setting the U2C1 registerâs U2ERE bit 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 10.32. If the U2RB 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â
âLâ
(Note)
U2C1 register â1â
RI bit â0â
This timing diagram applies to the case where the direct format is
implemented.
Note: 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 10.32 Parity Error Signal Output Timing
Rev.2.10 Oct 25, 2006 Page 136 of 326
REJ03B0152-0210
|
▷ |