SH7751 Group, SH7751R Group
Section 16 Serial Communication Interface with FIFO (SCIF)
R01UH0457EJ0301 Rev. 3.01
Page 709 of 1128
Sep 24, 2013
Serial Data Reception:
Figure 16.11 shows a sample flowchart for serial reception.
Use the following procedure for serial data reception after enabling the SCIF for reception.
Start of reception
Read ER, DR, BRK fla
g
s in
SCFSR2 and ORER
fla
g
in SCLSR2
ER or DR or BRK or ORER
= 1
?
Read RDF fla
g
in SCFSR2
RDF = 1
?
Read receive data in
SCFRDR2, and clear RDF
fla
g
in SCFSR2 to 0
All data received
?
Clear RE bit in SCSCR2 to 0
End of reception
Yes
No
Yes
Yes
No
No
Error handlin
g
1. Receive error handlin
g
and
break detection: Read the DR,
ER, and BRK fla
g
s in
SCFSR2, and the ORER fla
g
in SCLSR2, to identify any
error, perform the appropriate
error handlin
g
, then clear the
DR, ER, BRK, and ORER
fla
g
s to 0. In the case of a
framin
g
error, a break can also
be detected by readin
g
the
value of the RxD2 pin.
2. SCIF status check and receive
data read : Read SCFSR2 and
check that RDF = 1, then read
the receive data in SCFRDR2,
read 1 from the RDF fla
g
, and
then clear the RDF fla
g
to 0.
The transition of the RDF fla
g
from 0 to 1 can also be
identified by an RXI interrupt.
3. Serial reception continuation
procedure: To continue serial
reception, read at least the
receive tri
gg
er set number of
receive data bytes from
SCFRDR2, read 1 from the
RDF fla
g
, then clear the RDF
fla
g
to 0. The number of
receive data bytes in
SCFRDR2 can be ascertained
by readin
g
the lower bits of
SCFDR2.
Figure 16.11 Sample Serial Reception Flowchart (1)
Содержание SH7751 Group
Страница 2: ...Page ii of liv R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 30: ...Page xxx of liv R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 46: ...Page xlvi of liv R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 54: ...Page liv of liv R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 190: ...Section 4 Caches SH7751 Group SH7751R Group Page 136 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 226: ...Section 5 Exceptions SH7751 Group SH7751R Group Page 172 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 264: ...Section 7 Instruction Set SH7751 Group SH7751R Group Page 210 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 320: ...Section 9 Power Down Modes SH7751 Group SH7751R Group Page 266 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 344: ...Section 10 Clock Oscillation Circuits SH7751 Group SH7751R Group Page 290 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 388: ...Section 12 Timer Unit TMU SH7751 Group SH7751R Group Page 334 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 800: ...Section 17 Smart Card Interface SH7751 Group SH7751R Group Page 746 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 848: ...Section 19 Interrupt Controller INTC SH7751 Group SH7751R Group Page 794 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 876: ...Section 20 User Break Controller UBC SH7751 Group SH7751R Group Page 822 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 1036: ...Section 22 PCI Controller PCIC SH7751 Group SH7751R Group Page 982 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 1152: ...Appendix C Mode Pin Settings SH7751 Group SH7751R Group Page 1098 of 1128 R01UH0457EJ0301 Rev 3 01 Sep 24 2013 ...
Страница 1185: ......
Страница 1186: ... SH7751 Group SH7751R Group User s Manual Hardware R01UH0457EJ0301 Previous Number REJ09B0370 0400 ...