English
Language : 

SH7065 Datasheet, PDF (596/941 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Section 14 Serial Communication Interface (SCI)
Initialization
1
Start of reception
Set MPIE bit to 1 in SCSCR
2
Read BRK, DR, and
ER bits in SC2SSR
BRK ∨ DR ∨ ER = 1?
Yes
1. SCI initialization:
See figure 14.4, Sample SCI
Initialization Flowchart.
2. ID reception cycle: Set the MPIE bit to
1 in SCSCR.
3. SCI status check, ID reception and
comparison:
Read SC1SSR and check that the
RDF bit is set to 1, then read the
receive data in the receive FIFO data
register (SCFRDR) and compare it
with this station’s ID.
No
Read RDF flag in SC1SSR
No
RDF = 1?
Yes
If the data is not this station’s ID, set
the MPIE bit to 1 again, and clear the
RDF bit to 0. If the data is this
station’s ID, clear the RDF bit to 0.
4. Receive error handling and break
detection:
Read receive data from SCFRDR, and
clear RDF flag to 0 in SC1SSR
Read the BRK, DR, and ER bits in
SC2SSR to check whether a receive
error has occurred.
No
This station’s ID?
Yes
Read BRK, DR, and ER bits
in SC2SSR
BRK ∨ DR ∨ ER = 1?
No
Read RDF flag in SC1SSR
RDF = 1?
Yes
Read receive data from SCFRDR
No
All data received?
Yes
3
Yes
4
No
5
If a receive error occurs, read the
ORER and FER3 to 0 flags in
SC1SSR, and the BRK, DR, and ER
flags in SC2SSR to identify the error.
After performing the appropriate error
handling, ensure that the ORER,
BRK, DR, and ER bits are all cleared
to 0. The setting of the EI bit in
SC2SSR determines whether
reception is continued or halted when
the ORER bit is set to 1. In the case
of a framing error, a break can be
detected by reading the value of the
RxD pin.
5. SCI status check and receive data
read:
Error handling
Read the serial status 1 register
(SC1SSR) and check that RDF = 1,
then read receive data from the
receive FIFO data register
(SCFRDR).
Clear RE bit to 0 in SCSCR
End of reception
Figure 14.13 Sample Multiprocessor Serial Reception Flowchart (1)
Rev. 5.00 Sep 11, 2006 page 574 of 916
REJ09B0332-0500