BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
692 / 1149
Rev.1.02
19.7.2
UART receives
UART receive is the operation of this product microcontroller asynchronously receiving data from other
devices.
The odd number of the 2 channels used by the UART is used for UART reception. However, the SMR registers
for odd and even channels need to be set.
UART
UART0
UART1
UART2
UART3
Object channels
Channel 1 of SCI0
Channel 3 of SCI0
Channel 1 of SCI1
Channel 1 of SCI2
The pins used
RxD0
RxD1
RxD2
RxD3
interrupt
INTSR0
INTSR1
INTSR2
INTSR3
Limited to end-of-transmit interrupts (buffer null interrupts are prohibited).
The error is interrupted
INTSRE0
INTSRE1
INTSRE2
INTSRE3
Error detection flags
• Frame Error Detection Flag (FEFmn).
•Parity Error Detection Flag (PEFmn).
•Overflow Error Detection Flag (OVFmn).
The length of the transferred
data
SCI0:
7-digit,
8-digit or
9-bit
Note
1
SCI1/SCI2: 7 to 16 bits
Transfer rate
Max.f
MCK
/6[bps] (
SDRmn[15:9]≥2) ,
Min.f
CLK
/(2
×
2
15
×
128)[bps]
Data phase
Normal-phase output (default: high).
Inverting output (default: low).
Parity bits
You can choose from the following:
• No parity bits
(no parity).
• Additional zero check
(no parity).
• Parity
• Odd checksum
Stop bit
1
additional bit.
Data direction
MSB priority or
LSB
priority
Note 1
Only
UART0
supports
9
bits of data length.
2. Must be used within the scope of peripheral functional characteristics (refer to data sheet) that meet this condition
and meet the electrical characteristics.
Note 1.f
MCK
: The operating clock frequency
of the object channel
f
CLK
: System clock frequency
2.m: unit number (m=0~2)n: channel number (n=1,
3)mn=01,
03 , 11, 21