HD64336901G Renesas Technology, HD64336901G Datasheet - Page 247

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
Yes
No
No
Figure 14.18 Sample Multiprocessor Serial Reception Flowchart (1)
Read OER and FER flags in SSR
Read OER and FER flags in SSR
Read receive data in RDR
Read receive data in RDR
Set MPIE bit in SCR3 to 1
Clear RE bit in SCR3 to 0
Read RDRF flag in SSR
Read RDRF flag in SSR
All data received?
This station’s ID?
Start reception
FER+OER = 1
FER+OER = 1
RDRF = 1
RDRF = 1
<End>
Yes
Yes
Yes
No
No
No
[A]
Yes
No
Yes
[3]
[1]
[2]
Error processing
(Continued on
[4]
next page)
[5]
[1]
[2]
[3]
[4]
[5]
Set the MPIE bit in SCR3 to 1.
Read OER and FER in SSR to check for
errors. Receive error processing is performed
in cases where a receive error occurs.
Read SSR and check that the RDRF flag is
set to 1, then read the receive data in RDR
and compare it with this station’s ID.
If the data is not this station’s ID, set the MPIE
bit to 1 again.
When data is read from RDR, the RDRF flag
is automatically cleared to 0.
Read SSR and check that the RDRF flag is
set to 1, then read the data in RDR.
If a receive error occurs, read the OER and
FER flags in SSR to identify the error. After
performing the appropriate error processing,
ensure that the OER and FER flags are all
cleared to 0.
Reception cannot be resumed if either of
these flags is set to 1.
In the case of a framing error, a break can be
detected by reading the RxD pin value.
Rev. 1.00, 11/03, page 219 of 376

Related parts for HD64336901G