Hitachi SH7032 Hardware Manual page 437

Superh risc engine
Table of Contents

Advertisement

Note: When switching from transmitting or receiving to simultaneous transmitting and
receiving, clear both the TE bit and the RE bit to 0, then set both this to 1
simultaneously.
Figure 13.20 Sample Flowchart for Serial Transmitting and Receiving
402
Initialization
Start transmitting and receiving
Read TDRE bit in SSR
No
TDRE = 1?
Write transmit data to TDR
and clear TDRE bit in
SSR to 0
Read ORER bit in SSR
ORER = 1?
Read RDRF bit in SSR
No
RDRF = 1?
Read receive data in
RDR and clear RDRF bit
in SSR to 0
Total
No
count transmitted and
received?
Clear TE and RE bits in
SCR to 0
Transmitting/receiving ends
(1)
(2)
Yes
Yes
No
Error handling
(4)
Yes
(5)
Yes
(3)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents