Rev. 5.00, 09/03, page 541 of 760
•
Serial data transmission
Figure 16.6 shows a sample flowchart for serial transmission.
Use the following procedure for serial data transmission after enabling the SCIF for transmission.
1. SCIF status check and transmit data write:
Read serial status register (SCSSR) and check that the TDFE flag is set to 1, then write
transmit data to the transmit FIFO data register (SCFTDR), read 1 from the TDFE and TEND
flags, then clear these flags to 0.
The number of transmit data bytes that can be written is (16 - 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 flag 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 to 0 in the serial control register (SCSCR). For
information on SCPDR and SCPCR, see section 16.2.8, Bit Rate Register (SCBRR).
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 the FIFO data count
register (SCFDR).
Содержание SH7709S
Страница 2: ......
Страница 44: ...Rev 5 00 09 03 page xliv of xliv ...
Страница 62: ...Rev 5 00 09 03 page 18 of 760 ...
Страница 128: ...Rev 5 00 09 03 page 84 of 760 ...
Страница 146: ...Rev 5 00 09 03 page 102 of 760 ...
Страница 224: ...Rev 5 00 09 03 page 180 of 760 ...
Страница 246: ...Rev 5 00 09 03 page 202 of 760 ...
Страница 266: ...Rev 5 00 09 03 page 222 of 760 ...
Страница 370: ...Rev 5 00 09 03 page 326 of 760 ...
Страница 432: ...Rev 5 00 09 03 page 388 of 760 ...
Страница 532: ...Rev 5 00 09 03 page 488 of 760 ...
Страница 598: ...Rev 5 00 09 03 page 554 of 760 ...
Страница 630: ...Rev 5 00 09 03 page 586 of 760 ...
Страница 656: ...Rev 5 00 09 03 page 612 of 760 ...
Страница 684: ...Rev 5 00 09 03 page 640 of 760 ...
Страница 700: ...Rev 5 00 09 03 page 656 of 760 ...
Страница 758: ...Rev 5 00 09 03 page 714 of 760 ...
Страница 807: ...SH7709S Group Hardware Manual REJ09B0081 0500O ADE 602 250C ...