Section 16 Serial Communication Interface with FIFO (SCIF)
Rev. 5.00 May 29, 2006 page 476 of 698
REJ09B0146-0500
Serial data reception: Figure 16.9 shows a sample flowchart for serial reception.
Use the following procedure for serial data reception after enabling the SCIF for reception.
Start reception
Read ORER, PER, FER
flags in SCSSR2
All data received?
End reception
No
Yes
PER = 1 or FER = 1?
RDF = 1?
Yes
Yes
Clear RE bit in SCSCR2 to 0
No
No
Read RDF flag in SCSSR2
Error processing
Read receive data in SCFRDR2,
and clear RDF flag in
SCSSR2 to 0
1. Receive error handling and break detection:
Read the DR, ER, and BRK flags in SCSSR2
to identify any error, perform the appropriate
error handling, then clear the DR, ER, and
BRK flags to 0. In the case of a framing
error, a break can also be detected by
reading the value of the RxD2 pin.
2. SCIF status check and receive data read :
Read the SCSSR2 and check that RDF = 1,
then read the receive data in SCFRDR2, read
1 from the RDF flag, and then clear the RDF
flag to 0. The transition of the RDF flag from
0 to 1 can be identified by an RXI interrupt.
3. Serial reception continuation procedure: To
continue serial reception, read at least the
receive trigger set number of receive data
bytes from SCFRDR2, read 1 from the RDF
flag, then clear the RDF flag to 0. The
number of receive data bytes in SCFRDR2
can be ascertained by reading the lower bits
of SCFDR2.
Figure 16.9 Sample Serial Reception Flowchart (1)
Содержание SH7706 Series
Страница 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Страница 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Страница 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Страница 532: ...Section 16 Serial Communication Interface with FIFO SCIF Rev 5 00 May 29 2006 page 484 of 698 REJ09B0146 0500 ...
Страница 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Страница 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Страница 614: ...Section 21 User Debugging Interface H UDI Rev 5 00 May 29 2006 page 566 of 698 REJ09B0146 0500 ...
Страница 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Страница 749: ...SH7706 Group Hardware Manual ...