HD6433935 Hitachi, HD6433935 Datasheet - Page 308

no-image

HD6433935

Manufacturer Part Number
HD6433935
Description
8-Bit MICROCONTROLLER
Manufacturer
Hitachi
Datasheet
c. Data transfer operations
Data transfer on SCI3 first of all requires that SCI3 be initialized as described in “SCI
initialization” under 10.3.3, 2. c. Data transfer operations, and shown in figure 10-7.
Figure 10-13 shows an example of a flowchart for data transmission. This procedure should be
followed for data transmission after initializing SCI3.
296
SCI3 initialization
Transmitting
Figure 10-13 Example of Data Transmission Flowchart (Synchronous Mode)
1
2
Sets bits SPC31 and
SPC32 to 1 in SPCR
Clear bit TE to 0
Read bit TDRE
Read bit TEND
Write transmit
Continue data
transmission?
data to TDR
TDRE = 1?
TEND = 1?
in SCR3
in SSR
in SSR
Start
End
Yes
No
Yes
No
Yes
No
1.
2.
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, the
clock is output, and data transmission is
started. When clock output is selected,
the clock is output and data transmission
started when data is written to TDR.
When continuing data transmission, be
sure to read TDRE = 1 to confirm that
a write can be performed before writing
data to TDR. When data is written to
TDR, bit TDRE is cleared to 0 automatically.

Related parts for HD6433935