hd64338023s Renesas Electronics Corporation., hd64338023s Datasheet - Page 408

no-image

hd64338023s

Manufacturer Part Number
hd64338023s
Description
Renesas 8-bit Single-chip Microcomputer Super Low Power Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 10 Serial Communication Interface
• Receiving
Figure 10.8 shows an example of a flowchart for data reception. This procedure should be
followed for data reception after initializing SCI3.
Rev. 7.00 Mar 10, 2005 page 366 of 652
REJ09B0042-0700
Figure 10.8 Example of Data Reception Flowchart (Asynchronous Mode)
PER, FER in SSR
Read bits OER,
Read bit RDRF
Clear bit RE to
Continue data
Read receive
OER + PER
+ FER = 1?
data in RDR
RDRF = 1?
reception?
0 in SCR3
in SSR
Start
End
No
Yes
No
[3]
Receive error
[1]
[2]
processing
Yes
No
Yes
(A)
[4]
[1]
[2]
[3]
Read bits OER, PER, and FER in the
serial status register (SSR) to determine
if there is an error. If a receive error has
occurred, execute receive error
processing.
Read SSR and check that bit RDRF is
set to 1. If it is, read the receive data
in RDR. When the RDR data is read,
bit RDRF is cleared to 0 automatically.
reading of bit RDRF and RDR before
receiving the stop bit of the current
frame. When the data in RDR is read,
bit RDRF is cleared to 0 automatically.
When continuing data reception, finish

Related parts for hd64338023s