Section 16 Serial Communication Interface with FIFO (SCIF)
SH7751 Group, SH7751R Group
Page 706 of 1128
R01UH0457EJ0301 Rev. 3.01
Sep 24, 2013
Serial Data Transmission:
Figure 16.8 shows a sample flowchart for serial transmission.
Use the following procedure for serial data transmission after enabling the SCIF for transmission.
Start of transmission
Read TDFE fla
g
in SCFSR2
TDFE = 1
?
Write transmit data (16
−
transmit
tri
gg
er set number) to SCFTDR2,
read 1 from TDFE fla
g
and TEND
fla
g
in SCFSR2, then clear to 0
All data transmitted
?
Read TEND fla
g
in SCFSR2
TEND = 1
?
Break output
?
Clear SPB2DT to 0 and
set SPB2IO to 1
Clear TE bit in SCSCR2 to 0
End of transmission
No
Yes
No
Yes
No
Yes
No
Yes
1. SCIF status check and transmit data
write:
Read SCFSR2 and check that the
TDFE fla
g
is set to 1, then write
transmit data to SCFTDR2, read 1
from the TDFE and TEND fla
g
s, then
clear these fla
g
s to 0.
The number of transmit data bytes
that can be written is 16
−
(transmit
tri
gg
er set number).
2. Serial transmission continuation
procedure:
To continue serial transmission, read
1 from the TDFE fla
g
to confirm that
writin
g
is possible, then write data to
SCFTDR2, and then clear the TDFE
fla
g
to 0.
3. Break output at the end of serial
transmission:
To output a break in serial
transmission, clear the SPB2DT bit to
0 and set the SPB2IO bit to 1 in
SCSPTR2, then clear the TE bit in
SCSCR2 to 0.
In steps 1 and 2, it is possible to
ascertain the number of data bytes
that can be written from the number
of transmit data bytes in SCFTDR2
indicated by the upper 8 bits of
SCFDR2.
Figure 16.8 Sample Serial Transmission Flowchart
Содержание 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 ...