HD64336901G Renesas Technology, HD64336901G Datasheet - Page 242

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
Rev. 1.00, 11/03, page 214 of 376
Figure 14.15 Sample Flowchart of Simultaneous Serial Transmit and Receive Operations
Yes
No
No
Clear TE and RE bits in SCR to 0
Start transmission/reception
Write transmit data to TDR
Read receive data in RDR
Read TDRE flag in SSR
Read RDRF flag in SSR
Read OER flag in SSR
All data received?
TDRE = 1
RDRF = 1
OER = 1
<End>
Yes
Yes
No
No
(Clocked Synchronous Mode)
Yes
Overrun error
processing
[1]
[2]
[3]
[4]
[1]
[2]
[3]
[4]
For overrun error processing, see
Read SSR and check that the TDRE
Read SSR and check that the RDRF
To continue serial transmission/
If an overrun error occurs, read the
flag is set to 1, then write transmit
data to TDR.
When data is written to TDR, the
TDRE flag is automatically cleared to
0.
flag is set to 1, then read the receive
data in RDR.
When data is read from RDR, the
RDRF flag is automatically cleared to
0.
reception, before the MSB (bit 7) of
the current frame is received, finish
reading the RDRF flag, reading RDR.
Also, before the MSB (bit 7) of the
current frame is transmitted, read 1
writing is possible. Then write data to
TDR.
When data is written to TDR, the
TDRE flag is automatically cleared to
0. When data is read from RDR, the
RDRF flag is automatically cleared to
0.
OER flag in SSR, and after
performing the appropriate error
processing, clear the OER flag to 0.
Transmission/reception cannot be
resumed if the OER flag is set to 1.
figure 14.14.
from the TDRE flag to confirm that

Related parts for HD64336901G