Section 14 Serial Communication Interface (SCI)
Rev. 5.00 May 29, 2006 page 407 of 698
REJ09B0146-0500
Receiving Multiprocessor Serial Data: Figure 14.15 shows a sample flowchart
for receiving
multiprocessor serial data. Reception of multiprocessor serial data should be carried out in the
following procedure after setting the SCI in a reception-enabled state.
RDRF = 1?
FER = 1 or ORER = 1?
RDRF = 1?
All data received?
No
End reception
Yes
Set MPIE bit in SCSCR to 1
Read RDRF bit in SCSSR
Clear RE bit in SCSCR to 0
No
No
Read ORER and FER
bits in SCSSR
FER = 1 or ORER = 1?
Read RDRF bit in SCSSR
Read receive data in SCRDR
Is ID the
stations ID?
Yes
Read ORER and FER
bits in SSCSR
No
Error processing
Yes
Yes
Yes
No
Start reception
No
Yes
Read receive data in SCRDR
ID receive cycle: Set the MPIE
bit in SCSCR to 1.
SCI status check and compare
to ID reception: Read the SCSSR,
check that RDRF is set to 1, then
read data from the SCRDR and
compare with the processor's own
ID. If the ID does not match the
receive data, set MPIE to 1 again
and clear RDRF to 0. If the ID
matches the receive data, clear
RDRF to 0.
SCI status check and data receiving:
Read SCSSR, check that RDRF is
set to 1, then read data from the
SCRDR.
Receive error processing and break
detection: If a receive error occurs,
read the ORER and FER bits in
SCSSR to identify the error. After
executing the necessary error
processing, clear both ORER and
FER to 0. Receiving cannot resume
if ORER or FER remain set to 1.
When a framing error occurs, the
RxD0 pin can be read to detect the
break state.
1.
2.
3.
4.
Figure 14.15 Sample Flowchart for Receiving Multiprocessor Serial Data
Содержание 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 ...