Download Print this page

Renesas M16C/50 Series User Manual page 528

Advertisement

M16C/5L Group, M16C/56 Group
Figure 21.31 shows the Example of SIM Interface Connection. Connect pins TXD2 and RXD2, and then
place a pull-up resistance.
Figure 21.31 Example of SIM Interface Connection
21.3.6.1
Parity Error Signal Output
The parity error signal is enabled by setting the U2ERE bit in the U2C1 register to 1 (error signal
output).
The parity error signal is output when a parity error is detected while receiving data. A low-level signal is
output from the TXD2 pin in the timing shown in Figure 21.32. If the U2RB register is read while
outputting a parity error signal, the PER bit is cleared to 0 (no parity error) and at the same time the
TXD2 output again goes high.
When transmitting, a transmission complete interrupt request is generated at the falling edge of the
transmit/receive clock pulse that immediately follows the stop bit. Therefore, whether a parity error
signal has been returned can be determined by reading the port that shares the RXD2 pin in a
transmission complete interrupt routine.
Transmit/receive clock
RI bit in the
U2C1 register
The timing diagram assumes the direct format is implemented.
Note:
Figure 21.32 Parity Error Signal Output Timing
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
MCU
TXD2
RXD2
High
Low
High
RXD2
ST
Low
High
TXD2
Low
1
0
1. MCU output is high-impedance (pulled up externally).
SIM card
D0
D1
D2
D3
D4
(NOTE 1)
21. Serial Interface UARTi (i = 0 to 4)
D5
D6
D7
P
SP
ST : Start bit
P
: Even parity
SP : Stop bit
Page 491 of 803

Advertisement

loading