Section 14 Serial Communication Interface with FIFO (SCIF)
Rev. 2.00 Mar 09, 2006 page 610 of 906
REJ09B0292-0200
1. PFC initialization: Set the RxD pin,
and the SCK pin if necessary, with
the PFC.
2. ID reception cycle: Set the MPIE bit to
1 in SCSCR.
3. SCIF 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.
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 the ER, BRK, FER,
and DR flags in SC1SSR and the
ORER flag in SC2SSR to check
whether a receive error has occurred.
If a receive error has occurred, read
the ER, BRK, FER, and DR flags in
SC1SSR and the ORER flag in
SC2SSR to identify the error. After
performing the appropriate error
handling, ensure that ER, BRK, DR,
and ORER 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. SCIF status check and receive data
read: Read the serial status 1 register
(SC1SSR) and check that RDF = 1,
then read receive data from the
receive FIFO data register
(SCFRDR).
Start of reception
Set MPIE bit to 1 in SCSCR
Read ER, BRK, FER, and DR bits in
SC1SSR, and ORER bit in SC2SSR
Initialization
BRK
∨
DR
∨
ER
∨
ORER = 1?
Read RDF flag in SC1SSR
RDF = 1?
Read receive data from SCFRDR,
and clear RDF flag to 0 in SC1SSR
This station’s ID?
Read BRK and DR bits in SC1SSR,
and ER bit in SC2SSR
BRK
∨
DR
∨
ER = 1?
Read RDF flag in SC1SSR
RDF = 1?
Read receive data from SCFRDR
All data received?
Clear RE bit to 0 in SCSCR
End of reception
Error handling
Yes
Yes
No
Yes
Yes
No
No
No
Yes
Yes
No
No
1
2
3
4
5
Figure 14.14 Sample Multiprocessor Serial Reception Flowchart (1)
Summary of Contents for SH7616
Page 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Page 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Page 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Page 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Page 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Page 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Page 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Page 935: ...SH7616 Hardware Manual ...