333
CHAPTER 14 8-BIT SERIAL I/O
14.9
Notes on Using 8-Bit Serial I/O
This section provides notes on using the 8-bit serial I/O.
■
Notes on Using 8-bit Serial I/O
●
Error at serial transfer start
The time at which serial I/O transfer is started with a serial transfer program (SMR: SST = 1) is
asynchronous with the time when the falling edge (output) or rising (input) edge of a shift clock occurs. For
this reason, the time that lasts until the first serial data is input or output is delayed by a maximum of one
cycle of the set shift clock.
●
Malfunction due to noise
If external noise causes an extra pulse (pulse exceeding the hysteresis width) to be placed on a shift clock
during serial data transfer, the 8-bit serial I/O may malfunction.
●
Notes on setting via program
•
Write data to the serial mode register (SMR) and serial data register (SDR) only when the 8-bit serial I/
O is stopped (SMR: SST = 0).
•
When starting or allowing serial I/O transfer (SMR: SST=1), do not change other bits of the SMR.
•
If MSB first is set when a shift clock is used in external shift clock input, the highest bit level is output
as the SO pin output level. If LSB first is set, the lowest bit level is output as the SO pin output level.
MSB first and LSB first are set when the external shift clock is input. In this case, however, serial data
output must be allowed (SMR: SOE = 1) even if serial I/O transfer is stopped (SMR: SST = 0).
•
If serial I/O transfer stop (SMR: SST = 0) and serial data transfer termination take place at the same
time during serial I/O operation, the interrupt request flag bit (SMR: SIOF) is not set to "1".
•
If the SIOF bit is set to "1" and the interrupt request output allowance bit is enabled (SMR: SIOE = 1),
control cannot return from interrupt processing. Be sure to clear the SIOF bit.
●
Shift clock idle state
The external shift clock must maintain the "H" level during the wait time between one 8-bit data transfer
and another (idle state). When the internal shift clock is selected (SMR: CKS1, CKS0 = not 11
B
) and the
P30/UCK/SCK pin is used as the shift clock output pin (SMR: SCKE = 1), data is output at the "H" level in
the idle state.
Figure 14.9-1 shows the shift clock idle state.
Figure 14.9-1 Shift Clock Idle State
External
shift
clock
Idle state
8-bit data transfer
8-bit data transfer
Idle state
Idle state
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......