Rev. 1.0, 09/02, page 420 of 568
Yes
Start
[1]
[2]
[3]
[1] Initialization:
Specify the settings such as transmit
data format.
Note: Hatching boxes represent SSU internal operations.
[2] Check tha SSU state and write
transmit data:
Write transmit data to SSTDR after
reading and confirming that the TDRE bit
is 1. THe TDRE bit is automaticallu cleared
to 0 and transmission is started by writing
data to SSTDR.
[3] Procedure for continuous data transmission:
To continue data transmission, confirm
that the TDRE bit is 1 meaning tha SSTDR
is ready to be written to. After that, data can
be written to SSTDR. The TDRE bit is
automatically cleared to 0 by writing data to
SSTDR.
Initialization
TE = 1 (transmission enabled)
Read TDRE in SSR
TDRE = 1?
Yes
Yes
No
No
No
Write transmit data to SSTDR
TDRE automatically cleared
Data transferd from SSTDR to SSTRSR
Set TDRE to 1 to start transmission
Continuous data transmission?
Read TEND in SSSR
TEND = 1?
Clear TEND to 0
Clear TE in SSER to 0
End transmission
Figure 16.6 Example of Data Transmission Flowchart
•
Data Reception
Figure 16.7 shows an example of reception operation, and figure 16.8 shows an example of data
reception flowchart.
When receiving data, the SSU operates as shown below.
After the SSU sets the RE bit to 1 and dummy-reads SSRDR, data reception is started.
In master device mode, the SSU outputs a transfer clock and receives data. In slave device mode,
when a low level signal is input to the
SCS
pin and a transfer clock is input to the SSCK pin, the
SSU receives data in synchronization with the transfer clock.
When 1-frame data has been received, the received data is stored in SSRDR. At this time, if the
RIE bit is set to 1, an RXI interrupt is generated. The RDRF bit is automatically cleared to 0 by
reading SSRDR.
Summary of Contents for H8S/2627
Page 22: ...Rev 1 0 09 02 page xx of xxxvi Index 565 ...
Page 30: ...Rev 1 0 09 02 page xxviii of xxxiv ...
Page 36: ...Rev 1 0 09 02 page xxxiv of xxxiv Table 23 9 Flash Memory Characteristics 561 ...
Page 82: ...Rev 1 0 09 02 page 46 of 568 ...
Page 88: ...Rev 1 0 09 02 page 52 of 568 ...
Page 98: ...Rev 1 0 09 02 page 62 of 568 ...
Page 156: ...Rev 1 0 09 02 page 120 of 568 ...
Page 390: ...Rev 1 0 09 02 page 354 of 568 ...
Page 480: ...Rev 1 0 09 02 page 444 of 568 ...
Page 512: ...Rev 1 0 09 02 page 476 of 568 ...
Page 528: ...Rev 1 0 09 02 page 492 of 568 ...
Page 580: ...Rev 1 0 09 02 page 544 of 568 ...