12.7 Status Flag
The SCxMOD2 has two types of flag. This bit is significant only when the double buffer is enabled.
<RBFLL> is a flag to show that the receive buffer is full. When one frame of data is received and the data is
moved from the receive shift register to the receive buffers, this bit changes to "1". When reading the receive buf-
fer is read, this bit is cleared to "0".
<TBEMP> shows that the transmit buffer is empty. When data in the transmit buffers is moved to the transmit
shift register, this bit is set to "1". When data is set to the transmit buffers, the bit is cleared to "0".
12.8 Error Flag
Three error flags are provided in the SCxCR. The meaning of the flags is changed depending on the modes.
The table below shows the meanings in each mode.
These flags are cleared to "0" after reading the SCxCR.
Mode
Flag
<OERR>
<PERR>
<FERR>
UART mode
Over-run error
Parity error
Framing error
I/O Interface mode
(Clock input mode)
Over-run error
Under-run error
(When a double buffer and
FIFO are used)
Fixed to 0
Fixed to 0
(When a double buffer and
FIFO are not used)
I/O Interface mode
(Clock output mode)
Undefined
Undefined
Fixed to 0
12.8.1 OERR Flag
In both UART and I/O interface modes, this bit is set to "1" when an error is generated by completing the re-
ception of the next frame before the receive buffer has been read.
If the receive FIFO is enabled, the received data is automatically moved to the receive FIFO and no over-
run error will be generated until the receive FIFO is full (or until the usable bytes are fully occupied).
In the I/O interface mode with clock output mode, the SCLKx pin output stops upon setting the flag.
Note:
To switch from the I/O interface mode with clock output mode to other modes, read the
SCxCR and clear the overrun flag.
TMPM3V6/M3V4
Page 239
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......