Renesas H8S/2100 Series Hardware Manual page 505

6-bit single-chip microcomputer
Hide thumbs Also See for H8S/2100 Series:
Table of Contents

Advertisement

(2)
Serial Data Transmission
Figure 16.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 16.4 Example of Data Transmission Flowchart
Section 16 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 May 09, 2008 Page 479 of 954
REJ09B0462-0100

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2112r

Table of Contents