Renesas M16C/6NK Hardware Manual page 212

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
Figure 15.33 shows the example of connecting the SIM interface. Connect TXD2 and RXD2 and apply pull-up.
Figure 15.33 SIM Interface Connection
15.1.6.1 Parity Error Signal Output
The parity error signal is enabled by setting the U2ERE bit in the U2C1 register to "1".
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 15.32. If the R2RB register is read while
outputting a parity error signal, the PER bit is set 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.
Figure 15.34 shows the output timing of the parity error signal
Transfer
clock
RXD2
TXD2
RI bit in
U2C1 register
This timing diagram applies to the case where the direct format is
implemented.
NOTE:
1: The output of microcomputer is in the high-impedance state (pulled up externally).
Figure 15.34 Parity Error Signal Output Timing
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
Microcomputer
TXD2
RXD2
"H"
"L"
"H"
ST
D0
"L"
"H"
"L"
"1"
"0"
page 194 of 378
SIM card
D1
D2
D3
D4
D5
(NOTE 1)
15. Serial Interface
D6
D7
P
SP
ST: Start bit
P: Even Parity
SP: Stop bit

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents