316
CHAPTER 14 8-BIT SERIAL I/O
●
Shift clock control circuit
As a shift clock of the shift clock control circuit, one of three internal clocks and one external clock is
selected.
Selecting an internal clock enables the shift clock to be output to the SCK pin. Selecting an external clock
enables the clock to be input from the SCK pin to act as the shift clock. The shift clock control circuit shifts
the SDR in accordance with this shift clock and outputs the shifted-out value to the SO pin. It also captures
the data input from the SI pin while shifting it to the SDR.
●
Shift clock counter
The shift clock counter counts the number of times the SDR was shifted using the shift clock. When 8-bit
shift is completed, the counter overflows.
When the counter overflows, the serial I/O transfer start bit of the SMR (SST = 0) is cleared and the
interrupt request flag bit (SIOF = 1) is set. When serial transfer stops (SST = 0), the counter stops its count.
It is cleared when serial transfer is started (SST = 1).
●
Serial data register (SDR)
The SDR retains transfer data. The data written to the SDR is converted to serial data and output. Serial
input is converted to parallel data and stored.
●
Serial mode register (SMR)
The SMR is a serial I/O control register. It is used to allow and prohibit serial I/O operation, select shift
clocks, and set a transfer (shift) direction. It is also used to control interrupts and check interrupt states.
●
8-bit serial I/O interrupt
•
IRQC: If the interrupt request output is allowed (SMR: SIOE = 1) when the I/O function of the 8-bit
serial I/O inputs or outputs 8-bit serial data, a interrupt request (IRQC) is generated.
Содержание 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: ......