
529
Error handling
End
Clear ORER bit of SSR to 0
Overrun error processing
Figure 14.21 Sample Flowchart for Serial Receiving (2)
Figure 14.22 shows an example of the SCI receive operation.
Bit 7
Bit 0
Bit 7
Bit 0
Bit 1
Bit 6
Synchroni-
zation clock
Serial
data
Transfer direction
Bit 7
Read data with RxI
interrupt processing
routine and clear
RDRF bit to 0
1 frame
RxI request
RxI request
ERI interrupt
request generated
by overrun error
RDRF
ORER
Figure 14.22 Example of SCI Receive Operation
In receiving, the SCI operates as follows:
1.The SCI synchronizes with serial clock input or output and initializes internally.
2.Receive data is shifted into the RSR in order from the LSB to the MSB.
After receiving the
data, the SCI checks that RDRF is 0 so that receive data can be loaded from the RSR into the
RDR. If this check passes, the SCI sets RDRF to 1 and stores the received data in the RDR. If
the check does not pass (receive error), the SCI operates as indicated in table 14.11 and no
further transmission or reception is possible. If the error flag is set to 1, the RDRF bit is not set
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...