CHAPTER 11 SERIAL INTERFACE FUNCTION
User’s Manual U14359EJ4V0UM
363
(2/3)
Bit position
Bit name
Function
5
RXEn
(n = 0 to 2)
Receive Enable
Specifies whether reception is enabled or disabled.
0: Reception is disabled
1: Reception is enabled
Cautions 1. On startup, set UARTCAEn to 1 and then set RXEn to 1. To
stop transmission, clear RXEn to 0 and then UARTCAEn to 0.
2. When the reception unit status is to be initialized, the reception
status may not be able to be initialized unless the RXEn bit is
set (1) again after an interval of two cycles of the basic clock
has elapsed since the RXEn bit was cleared (0) (For the basic
clock, see 11.2.6 (1) (a) Basic clock (Clock)) .
Parity Select
Controls the parity bit.
PSn1
PSn0
Transmit operation
Receive operation
0
0
Do not output a parity bit
Receive with no parity
0
1
Output 0 parity
Receive as 0 parity
1
0
Output odd parity
Judge as odd parity
1
1
Output even parity
Judge as even parity
4, 3
PSn1, PSn0
(n = 0 to 2)
Cautions 1. To overwrite the PSn1 and PSn0 bits, first clear (0) the TXEn
and RXEn bits.
2. If “0 parity” is selected for reception, no parity judgement is
made. Therefore, no error interrupt is generated because the
PEn bit of the ASISn register is not set.
•
Even parity
If the transmit data contains an odd number of bits with the value “1”, the parity
bit is set (1). If it contains an even number of bits with the value “1”, the parity
bit is cleared (0). This controls the number of bits with the value “1” contained
in the transmit data and the parity bit so that it is an even number.
During reception, the number of bits with the value “1” contained in the receive
data and the parity bit is counted, and if the number is odd, a parity error is
generated.
•
Odd parity
In contrast to even parity, odd parity controls the number of bits with the value
“1” contained in the transmit data and the parity bit so that it is an odd number.
During reception, the number of bits with the value “1” contained in the receive
data and the parity bit is counted, and if the number is even, a parity error is
generated.
•
0 parity
During transmission, the parity bit is cleared (0) regardless of the transmit
data.
During reception, no parity error is generated because no parity bit is checked.
•
No parity
No parity bit is added to transmit data.
During reception, the receive data is considered to have no parity bit. No
parity error is generated because there is no parity bit.
Содержание V850E/MA1
Страница 2: ...2 User s Manual U14359EJ4V0UM MEMO...