Hitachi SH7709S Hardware Manual page 507

Superh risc engine
Table of Contents

Advertisement

No
No
No
Notes: 1.
Numbers in parentheses refer to steps in the preceding procedure description.
2.
In switching from transmitting or receiving to simultaneous transmitting
and receiving, clear both TE and RE to 0, then set both TE and RE to 1 simultaneously.
Figure 14.23 Sample Flowchart for Transmitting/Receiving Serial Data
488
Start of transmission/reception
Read TDRE bit in SCSSR
TDRE = 1?
Yes
Write transmit data to SCTDR
and clear TDRE bit in SCSSR to 0
Read ORER bit in SCSSR
ORER = 1?
No
Read RDRF bit in SCSSR
RDRF = 1?
Yes
Read receive data from SCRDR
and clear RDRF bit in SCSSR to 0
All data
transmitted/received?
Yes
Clear TE and RE bits
in SCSCR to 0
End of transmission/reception
(1)
Yes
(2)
Error processing
(3)
(4)

Advertisement

Table of Contents
loading

Table of Contents