Chapter 11
Serial Interface 0
XI - 34
Operation
nJudgement of Brake Status Reception
Reception at brake status can be judged. If all received data from start bit and stop bit is "0", the
SC0BRKF flag of the SC0MD2 register is set and regards the brake status. The SC0BRKF flag is set at
generation of the reception complete interrupt SC0RIRQ.
Table 11-3-16
Reception Error Source of UART Serial Interface
Flag
Error
Error source
SC0ORE
Overrun error
Next data is received before reading the receive buffer.
SC0PEK
Parity error
at fixed to 0
when parity bit is "1"
at fixed to 1
when parity bit is "0"
odd parity
The total of "1" of parity bit and character bit is even.
even parity
The total of "1" of parity bit and character bit is odd.
SC0FEF
Framing error
Stop bit is not detected.
nContinuous Communication
This serial interface has continuous communication function. If data is set to the transmission data buffer
TXBUF0 during communication, the transmission buffer empty flag SC0TEMP is set to continue auto-
matic communication. This does not generate any blank in communication. Set data to TXBUF0 be-
tween previous data setup and generation of the communication complete interrupt SC0TIRQ.
nReception Error
At reception , there are 3 types of error ; overrun error, parity error and framing error. Reception error can
be determined by the SC0ORE, SC0PEK, SC0FEF flag of the SC0MD3 register. Even one of those
errors is detected, the SC0ERE flag of the SC0MD3 register is set to "1". The SC0PEK, the SC0FEF
flags in recepption error flag are renewed at generation of the reception complete interrupt SC0RIRQ.
The SC0ORE flag holds the status unless data of RXBUF0 is read out. The decision of the received error
flag should be operated until the next communication is finished. Those error flag has no effect on
communication operation. Table 11-3-16 shows the list of reception error source.