hd66100 Renesas Electronics Corporation., hd66100 Datasheet - Page 310

no-image

hd66100

Manufacturer Part Number
hd66100
Description
H8/3867 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
hd66100F
Manufacturer:
HIT
Quantity:
1 810
Part Number:
hd66100F
Manufacturer:
SW
Quantity:
1 815
Part Number:
hd66100F
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
• Simultaneous transmit/receive
Figure 10.15 shows an example of a flowchart for a simultaneous transmit/receive operation. This
procedure should be followed for simultaneous transmission/reception after initializing SCI3.
Figure 10.15 Example of Simultaneous Data Transmission/Reception Flowchart
3
1
2
transmission/reception?
Sets bits SPC31 and
SPC32 to 1 in SPCR
Read receive data
Clear bits TE and
RE to 0 in SCR3
Read bit TDRE
Read bit RDRF
Write transmit
Continue data
Read bit OER
data to TDR
RDRF = 1?
TDRE = 1?
OER = 1?
in SSR
in RDR
in SSR
in SSR
Start
End
Yes
No
Yes
No
4
Yes
No
No
Yes
Overrun error
processing
(Synchronous Mode)
1.
2.
3.
4.
Read the serial status register (SSR) and
check that bit TDRE is set to 1, then write
transmit data to the transmit data register
(TDR). When data is written to TDR, bit
TDRE is cleared to 0 automatically.
Read SSR and check that bit RDRF is set
to 1. If it is, read the receive data in RDR.
When the RDR data is read, bit RDRF is
cleared to 0 automatically.
When continuing data transmission/reception,
finish reading of bit RDRF and RDR before
receiving the MSB (bit 7) of the current frame.
Before receiving the MSB (bit 7) of the current
frame, also read TDRE = 1 to confirm that a
write can be performed, then write data to TDR.
When data is written to TDR, bit TDRE is cleared
to 0 automatically, and when the data in RDR is
read, bit RDRF is cleared to 0 automatically.
If an overrun error has occurred, read bit OER
in SSR, and after carrying out the necessary
error processing, clear bit OER to 0. Transmis-
sion and reception cannot be resumed if bit
OER is set to 1.
See figure 10-13 for details on overrun error
processing.
295

Related parts for hd66100