
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
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...