Renesas M16C FAMILY series Hardware Manual page 230

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
Figure 14.32 shows the example of connecting the SIM interface. Connect T
pull-up.
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
clock
RxD
TxD
U2C1 register
RI bit
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).
Figure 14.33 Parity Error Signal Output Timing
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
Microcomputer
TxD
2
RxD
2
"H"
"L"
"H"
ST
D0
2
"L"
"H"
2
"L"
"1"
"0"
page 210
f o
3
8
5
SIM card
D1
D2
D3
D4
D5
(1)
D
and R
D
X
2
X
D6
D7
P
SP
ST : Start bit
P : Even Parity
SP : Stop bit
14. Serial I/O
and apply
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents