Rev. 2.00, 09/03, page 421 of 690
b. Serial Data Transmission:
Figure 16.14 shows sample flowcharts for serial transmission.
No
Yes
[1] Write the remaining transmit
data to SCFTDR.
[2] Transmission is started when
the TE bit in SCSCR is set to 1.
[3] After the end of transmission,
clear the TE bit to 0.
Start of transmission
Write remaining transmit data to SCFTDR
Set TE bit in SCSCR
When using transmit FIFO data interrupt,
set TIE bit to 1
TEND =1?
Clear TE bit in SCSCR to 0
End of transmission
[1]
[2]
[3]
Figure 16.14 Sample Serial Transmission Flowchart (1)
(First Transmission after Initialization)
No
Yes
No
Wait
Yes
[1] Set the transmit trigger number
in
SCFCR.
[2] Write transmit data to SCFTDR,
and clear the TDFE flag to 0 after
reading 1 from it.
[3] Wait for one bit interval.
[4] Transmission is started when the
TE bit in SCSCR is set to 1.
[5] After the end of transmission, clear
the TE bit to 0.
Start of transmission
Set transmit trigger number in TTRG1
and TTRG0 in SCFCR
Write transmit data exceeding transmit
trigger setting number, and clear
TDFE flag to 0 after reading 1 from it
1-bit interval elapsed?
Set TE bit in SCSCR
When using transmit FIFO data
interrupt, set TIE bit to 1
TEND =1?
Clear TE bit in SCSCR to 0
End of transmission
[1]
[2]
[3]
[4]
[5]
Figure 16.14 Sample Serial Transmission Flowchart (2)
(Second and Subsequent Transmission)
Содержание SH7705
Страница 2: ......
Страница 46: ...Rev 2 00 09 03 page xlvi of xlvi Appendix Table A 1 I O Port States in Each Processing State 679 ...
Страница 70: ...Rev 2 00 09 03 page 24 of 690 ...
Страница 194: ...Rev 2 00 09 03 page 148 of 690 ...
Страница 284: ...Rev 2 00 09 03 page 238 of 690 ...
Страница 338: ...Rev 2 00 09 03 page 292 of 690 ...
Страница 354: ...Rev 2 00 09 03 page 308 of 690 ...
Страница 374: ...Rev 2 00 09 03 page 328 of 690 ...
Страница 420: ...Rev 2 00 09 03 page 374 of 690 ...
Страница 476: ...Rev 2 00 09 03 page 430 of 690 ...
Страница 482: ...Rev 2 00 09 03 page 436 of 690 ...
Страница 552: ...Rev 2 00 09 03 page 506 of 690 ...
Страница 630: ...Rev 2 00 09 03 page 584 of 690 ...
Страница 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...