• Transmitting Serial Data: Follow the procedure below for transmitting serial data.
Figure 8-13. Sample Flowchart for Serial Transmitting
Start transmitting
Read TDRE bit in SSR
TDRE = “1”?
Write transmit data in
TDR and clear TDRE bit to
“0” in SSR
End of
transmission?
End
1
2
3
No
Yes
No
Yes
SCI initialization: the transmit data output function of the TxD pin is
selected automatically.
(a)
(b)
To continue transmitting serial data: read the TDRE bit to check
whether it is safe to write; if TDRE = “1,” write data in TDR, then
clear TDRE to “0.”
To end serial transmission: end of transmission can be confirmed
by checking transition of the TEND bit from “0” to “1.” This can be
reported by a TEI interrupt.
Read TEND bit in SSR
TEND = “1”?
No
Yes
SCI status check and transmit data write: read the serial status
register (SSR), check that the TDRE bit is “1,” then write transmit
data in the transmit data register (TDR) and clear TDRE to “0.”
Transition of the TDRE bit from “0” to “1” can be reported by a
TXI interrupt.
1.
3.
2.
Initialize
Clear TE bit to “0” in SCR
Serial transmission
199
Summary of Contents for H8/326 Series
Page 67: ...58 ...
Page 121: ...112 ...
Page 274: ... 3 Clock Settling Timing Ø VCC RES STBY tOSC1 tOSC1 Figure 14 8 Clock Setting Timing 265 ...
Page 279: ...270 ...