Chapter 13
Serial Interface
Interrupt Source Select
For SCIFn (n = 0, 1), interrupt source can be selected with SCnMD2.SCnIFS. When SCnIFS is "1", an interrupt
occurs by an empty detection of TXBUFn (detecting that SCnSTR.SCnTEMP is "0"). When SCnIFS is "0", an
interrupt (communication complete interrupt) occurs after single byte communication has finishes.
For SCIFn (n = 2, 3), interrupt source can be selected with SCnMD1.SCnIFS. When SCnIFS is "1", an interrupt
occurs by an empty detection of TXBUFn (detecting that SCnSTR.SCnTEMP is "0"). When SCnIFS is "0", an
interrupt (communication complete interrupt) occurs after single byte communication has been completed.
Transmission BUSY Flag (SCIF0 and SCIF1)
When SCnMD1.SCnSBOS is "1", SCnSTR.SCnTBSY is set to "1" by writing data to TXBUFn.
When SCnSTR.SCnTEMP is "0", SCnSTR.SCnTBSY is cleared to "0" by a communication complete interrupt.
If SCnTEMP is "1" by writing data to TXBUFn before a communication completion interrupt, SCnTBSY is held
at "1".
Reception BUSY Flag (SCIF0 and SCIF1)
When SCnMD1.SCnSBIS is "1", SCnSTR.SCnRBSY is set to "1" by writing data to TXBUFn.
While SCnSTR.SCnTEMP is "0", SCnSTR.SCnRBSY is cleared to "0" by a communication complete interrupt.
If SCnTEMP is "1" by writing data to TXBUFn before a communication completion interrupt, SCnRBSY is held
at "1".
Communication BUSY Flag (SCIF2 and SCIF3)
SCnSTR0.SCnTBSY is set to "1" when data is written to TXBUFn. When SCnSTR0.SCnTEMP is "0",
SCnSTR0.SCnTBSY is cleared to "0" by a communication complete interrupt.
If SCnTEMP is "1" by writing data to TXBUFn before a communication completion interrupt, SCnTBSY is held
at "1".
Reception Error Flag
When receiving new data before reading out the data in RXBUFn, an overrun error occurs and the following flags
are set.
- For SCIFn (n = 0, 1), SCnSTR.SCnORE and SCnSTR.SCnERE are set to "1".
SCnSTR.SCnREMP is cleared to "0" by reading data of RXBUFn, and SCnORE and SCnERE are cleared
to "0" by a communication complete interrupt when SCnSTR.SCnREMP is "0".
- For SCIFn (n = 2, 3), SCnSTR.SCnORE is set to "1".
Clear SCnSTR.SCnORE by software.
XIII - 36
Clock-Synchronous Communication