Download Print this page

Renesas H8S Family Hardware Manual page 577

Advertisement

(2)
Serial Data Transmission
Figure 15.4 shows an example of the data transmission flowchart.
Initialization
Start transmission
Read THRE flag in FLSR
THRE = 1?
Yes
Write transmit data to FTHR
All data written
Yes
Read TEMT flag in FLSR
TEMT = 1
Yes
Break output
Yes
Set BREAK bit in FLCR to 1
Break time completed
Yes
Clear BREAK bit in FLCR to 0
(End of transmission or transmission standby)
Figure 15.4 Example of Data Transmission Flowchart
Section 15 Serial Communication Interface with FIFO (SCIF)
[1] Confirm that the THRE flag in FLSR is 1, and write transmit
data to FTHR. When FIFOs are used, write 1-byte to 16-byte
transmit data. When the OUT2 bit in FMCR and the ETBEI bit
in FIER are set to 1, an FTHR empty interrupt occurs. When
data is written to FTHR, it is transferred automatically to FTSR.
The data is then transmitted from the FTxD pin in the order of
the start bit, transmit data, parity bit, and stop bit.
[1]
[2] Read the TEMT flag in FLSR, and confirm that TEMT is set to
1 to ensure that all transmit data has been transmitted.
No
[3] To output a break at the end of serial transmission, set the
BREAK bit in FLCR to 1. After completion of the break time,
clear the BREAK bit in FLCR to 0 to clear the break.
No
[2]
No
[3]
No
Rev. 1.00 Mar. 12, 2008 Page 529 of 1178
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472