English
Language : 

3069RF-ZTAT Datasheet, PDF (510/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
• Transmitting Serial Data (Asynchronous Mode): Figure 13.5 shows a sample flowchart for
transmitting serial data and indicates the procedure to follow.
Initialize
Start transmitting
Read TDRE flag in SSR
TDRE = 1
(1) (1) SCI initialization:
the transmit data output function of the TxD pin is
selected automatically.
Transmission is possible after the TE bit is set to 1
and 1 is output for one frame.
(2)
No
(2) SCI status check and transmit data write:
read SSR and check that the TDRE flag is set to 1,
then write transmit data in TDR and clear the TDRE
flag to 0.
Yes
Write transmit data in TDR
and clear TDRE flag to 0 in SSR
All data transmitted?
Yes
Read TEND flag in SSR
No
(3)
(3) To continue transmitting serial data:
after checking that the TDRE flag is 1, indicating that
data can be written, write data in TDR, then clear the
TDRE flag to 0. When the DMAC is activated by a
transmit-data-empty interrupt request (TXI) to write
data in TDR, the TDRE flag is checked and cleared
automatically.
(4) To output a break signal at the end of serial
transmission:
set the DDR bit to 1 and clear the DR bit to 0, then
clear the TE bit to 0 in SCR.
No
TEND = 1
Yes
Output break signal?
No (4)
Yes
Clear DR bit to 0 and set
DDR bit to 1
Clear TE bit to 0 in SCR
<End>
Figure 13.5 Sample Flowchart for Transmitting Serial Data
Rev. 5.0, 09/04, page 488 of 978