HD64336901G Renesas Technology, HD64336901G Datasheet - Page 235

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
Table 14.5 SSR Status Flags and Receive Data Handling
Note:
RDRF*
1
0
0
1
1
0
1
(A)
Yes
No
* The RDRF flag retains the state it had before data reception.
Figure 14.9 Sample Serial Reception Data Flowchart (Asynchronous Mode)
OER
1
0
0
1
1
0
1
SSR Status Flag
Read receive data in RDR
Clear RE bit in SCR3 to 0
Read RDRF flag in SSR
Read OER, PER, and
OER+PER+FER = 1
All data received?
FER flags in SSR
Start reception
RDRF = 1
<End>
FER
0
1
0
1
0
1
1
Yes
No
No
(Continued on next page)
PER
0
0
1
0
1
1
1
Error processing
[1]
Yes
[2]
[3]
Receive Data
Lost
Transferred to RDR
Transferred to RDR
Lost
Lost
Transferred to RDR
Lost
[4]
[1] Read the OER, PER, and FER flags in
[2] Read SSR and check that RDRF = 1,
[3] To continue serial reception, before the
[4] If a receive error occurs, read the OER,
The RDRF flag is cleared automatically.
SSR to identify the error. If a receive
error occurs, performs the appropriate
error processing.
then read the receive data in RDR.
The RDRF flag is cleared automatically.
stop bit for the current frame is
received, read the RDRF flag and read
RDR.
PER, and FER flags in SSR to identify
the error. After performing the
appropriate error processing, ensure
that the OER, PER, and FER flags are
all cleared to 0. Reception cannot be
resumed if any of these flags are set to
1. In the case of a framing error, a
break can be detected by reading the
value of the input port corresponding to
the RxD pin.
Rev. 1.00, 11/03, page 207 of 376
Receive Error Type
Overrun error
Framing error
Parity error
Overrun error + framing error
Overrun error + parity error
Framing error + parity error
Overrun error + framing error +
parity error

Related parts for HD64336901G