Rev. 1.0, 09/02, page 424 of 568
Yes
Start
Initialization
[1]
[2]
[1] Initialization:
Specify the settings such as transmit/receive
data format
[2] Check the 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 automatically cleared to 0 and
transmission is started by writing data to
SSTDR.
[3] Receive error processing:
When a receive error occurs, execute the
designated error processing after reading the
ORER bit in SSSR. After that, clear the ORER
bit to 0. While the ORER bit is set to 1,
transmission or reception is not resumed.
[4] Check the SSU state and read receibe data:
Read receibe data in SSRDR after reading and
confirming that the RDRF bit is 1. The RDRF bit
is cleared. A change of the RDRF bit (from 0 to 1)
canbe notified by RXI interrupt.
[5] Procedure for continuous data transmission/
reception:
To continue setial data transmission/reception,
confirm that the TDRE bit 1meaning that 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.
[3]
[5]
[4]
Transmission/reception started
(TE = 1, RE = 1)
Read TDRE in SSSR.
TDRE = 1?
Yes
Yes
Yes
No
No
No
No
Write transmit data to SSTDR
TDRE automatically cleared
Data transferred from SSTDR to SSTRSR
TDRE set to 1 to start transmission
Read SSSR
ORER = 1?
RDRF = 1?
Read received data in SSRDR
RDRF automatically cleared
Continuous data
transmission/reception
Clear TEND in SSSR to 0
Clear TE and RE in SSER to 0
Error processing
End transmission/reception
Note: Hatching boxes represent SSU internal operations.
Figure 16.9 Example of Simultaneous Transmission/Reception Flowchart
16.4.5
SCS
SCS
SCS
SCS
Pin Control and Arbitration
When bits CSS1 and CSS0 in SSCRH are specified to B
′
10, the
SCS
pin functions as an input to
detect arbitration. The arbitration detection period starts when setting the MSS bit in SSCRH to 1
and ends when starting serial transfer. When a low level signal is input to the
SCS
pin within the
period, a conflict error occurs. At this time, the CE bit in SSSR is set to 1 and the MSS bit is
cleared to 0.
Содержание H8S/2627
Страница 22: ...Rev 1 0 09 02 page xx of xxxvi Index 565 ...
Страница 30: ...Rev 1 0 09 02 page xxviii of xxxiv ...
Страница 36: ...Rev 1 0 09 02 page xxxiv of xxxiv Table 23 9 Flash Memory Characteristics 561 ...
Страница 82: ...Rev 1 0 09 02 page 46 of 568 ...
Страница 88: ...Rev 1 0 09 02 page 52 of 568 ...
Страница 98: ...Rev 1 0 09 02 page 62 of 568 ...
Страница 156: ...Rev 1 0 09 02 page 120 of 568 ...
Страница 390: ...Rev 1 0 09 02 page 354 of 568 ...
Страница 480: ...Rev 1 0 09 02 page 444 of 568 ...
Страница 512: ...Rev 1 0 09 02 page 476 of 568 ...
Страница 527: ...Rev 1 0 09 02 page 491 of 568 21 8 5 Writing to MSTPCR MSTPCR should only be written to by the CPU ...
Страница 528: ...Rev 1 0 09 02 page 492 of 568 ...
Страница 580: ...Rev 1 0 09 02 page 544 of 568 ...