Rev. 2.00, 09/03, page 407 of 690
b. Serial Data Transmission
Figure 16.3 shows a sample flowchart for serial transmission.
Use the following procedure for serial data transmission after enabling the SCIF for transmission.
Read TDFE bit in SCSSR
Read TEND bit in SCSSR
Set SCPDR and SCPCR
Clear TE bit in SCSCR to 0
Write (64)
−
transmit trigger
set number) bytes of transmit
data to SCFTDR, read 1 from
TDFE bit in SCSSR, then clear to 0
[1] SCIF status check and transmit data write:
Read the serial status register (SCSSR) and
check that the TDFE flag is set to 1, then write
transmit data to SCFTDR, read 1 from the TDFE
flag, then clear the flag to 0.
The number of data bytes that can be written is
64
−
(transmit trigger set number).
[2] Serial transmission continuation procedure:
To continue serial transmission, read 1 from the
TDFE flag to confirm that writing is possible, then
write data to SCFTDR, and then clear the TDFE
bit to 0.
[3] Break output at the end of serial transmission:
To output a break in serial transmission, set the
port SC data register (SCPDR) and port SC
control register (SCPCR), then clear the TE bit in
SCSCR 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 SCFTDR
indicated by the upper 8 bits of SCFDR.
Start of transmission
End of transmission
TDFE = 1?
No
Yes
All data transmitted?
No
Yes
TEND = 1?
No
Yes
Break output?
No
Yes
[1]
[2]
[3]
Figure 16.3 Sample Serial Transmission Flowchart
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...