R01UH0092EJ0110 Rev.1.10
Page 511 of 807
Jul 31, 2012
M16C/64C Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
Figure 23.35 Transmit/Receive Timing in SIM Mode
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
Start
bit
Parity
bit
0
1
0
1
0
1
0
1
Set to 0 by an interrupt request acknowledgment or by a program.
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
Tc
Transmit/receive clock
SP
Stop
bit
An interrupt
routine
detects the level.
An interrupt routine detects
the level.
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
Start
bit
Parity
bit
TXD2
0
1
0
1
0
1
Set to 0 by an interrupt request acknowledgment or by a program.
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
Tc
Transmit/receive clock
SP
Stop
bit
TXD2 provides low-level
output due to a parity error.
Transmit waveform
from transmitter
Read the U2RB register.
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
RXD2 pin level
(3)
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
SP
SP
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
D0
D1
D2
D3
D4
D5
D6
D7
ST
P
SP
SP
TXD2
Parity error signal
returned from receiver
RXD2 pin level
(2)
Notes:
1. Data transmission starts when BRG overflows after a value is set in the U2TB register on the rising edge of the TI bit.
2. Because pins TXD2 and RXD2 are connected, a composite waveform, consisting of the transmit waveform from the
TXD2 pin and parity error signal from the receiver, is generated.
3. Because pins TXD2 and RXD2 are connected, a composite waveform, consisting of the transmit waveform from the
transmitter and parity error signal from the TXD2 pin, is generated.
Data is transferred from the U2TB
register to the UART2 transmit
register
(Note 1)
RE bit in
U2C1 register
RI bit in
U2C1 register
IR bit in
S2RIC register
TE bit in
U2C1 register
TI bit in
U2C1 register
TXEPT bit in
U2C0 register
IR bit in
S2TIC register
The above timing diagram applies when data is
transmitted in the direct format.
• The STPS bit in the U2MR register = 0 (1 stop bit)
• The PRY bit in the U2MR register = 1 (even parity)
• The UFORM bit in the U2C0 register
= 0 (LSB first)
• The U2LCH bit in the U2C1 register
= 0 (not inverted)
• The U2IRS bit in the U2C1 register = 1 (transmit completed)
TC = 16 (n + 1) / fi or 16 (n + 1) / fEXT
fi
: Frequency of U2BRG count source (f1SIO, f2SIO, f8SIO,
f32SIO)
fEXT : Frequency of U2BRG count source (external clock)
n
: Value set to U2BRG
(1) Transmit Timing
(2) Receive Timing
SP
The above timing diagram applies when data is
received in the direct format.
• The STPS bit in the U2MR register = 0 (1 stop bit)
• The PRY bit in the U2MR register = 1 (even parity)
• The UFORM bit in the U2C0 register
= 0 (LSB first)
• The U2LCH bit in the U2C1 register
= 0 (not inverted)
• The U2IRS bit in the U2C1 register= 1 (transmit completed)
TC = 16 (n + 1) / fi or 16 (n + 1) / fEXT
fi
: Frequency of U2BRG count source (f1SIO, f2SIO,
f8SIO, f32SIO)
fEXT : Frequency of U2BRG count source (external clock)
n
: Value set to U2BRG
SP
Data is written to the U2TB register.
A low-level signal is applied from
the SIM card due to a parity error.
Set to 0 by a program.
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...