Figure 13.8 Sample Reception Processing Flowchart - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

No
No
The above procedure may include interrupt handling.
If reception ends and the RDRF flag is set to 1 while the RIE bit is set to 1 and interrupt requests
are enabled, a receive-data-full interrupt (RXI) will be requested. If an error occurs in reception
and either the ORER flag or the PER flag is set to 1, a transmit/receive-error interrupt (ERI) will
be requested.
For details, see Interrupt Operations in this section.
If a parity error occurs during reception and the PER flag is set to 1, the received data is
transferred to RDR, so the erroneous data can be read.
Switching Modes: When switching from receive mode to transmit mode, first confirm that the
receive operation has been completed, then start from initialization, clearing RE to 0 and setting
TE to 1. The RDRF, PER, or ORER flag can be used to check that the receive operation has been
completed.
440
Start
Initialization
Start receiving
ORER = 0
and PER = 0?
Yes
RDRF = 1?
Yes
Read RDR and clear
RDRF flag to 0 in SSR
All data received?
Yes
Clear RE bit to 0

Figure 13.8 Sample Reception Processing Flowchart

No
Error handling

Advertisement

Table of Contents
loading

Table of Contents