16. USART 2
A96G140/A96G148/A96A148 User’s manual
208
UCTRL2 (USART2 Control 2 Register) CCH
7
6
5
4
3
2
1
0
UDRIE
TXCIE
RXCIE
WAKEIE
TXE
RXE
USARTEN
U2X
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00
H
UDRIE
Interrupt enable bit for USART2 Data Register Empty.
0
Interrupt from UDRE is inhibited (use polling)
1
When UDRE is set, request an interrupt
TXCIE
Interrupt enable bit for Transmit Complete.
0
Interrupt from TXC is inhibited (use polling)
1
When TXC is set, request an interrupt
RXCIE
Interrupt enable bit for Receive Complete
0
Interrupt from RXC is inhibited (use polling)
1
When RXC is set, request an interrupt
WAKEIE
Interrupt enable bit for Asynchronous Wake in STOP mode. When
device is in stop mode, if RXD2 goes to LOW level an interrupt can be
requested to wake-up system.
0
Interrupt from Wake is inhibited
1
When WAKE is set, request an interrupt
NOTE) WAKEIE must set after
USARTEN setting ‘1’.
TXE
Enables the transmitter unit.
0
Transmitter is disabled
1
Transmitter is enabled
RXE
Enables the receiver unit.
0
Receiver is disabled
1
Receiver is enabled
USARTEN
Activate USART2 module by supplying clock.
0
USART2 is disabled (clock is halted)
1
USART2 is enabled
U2X
This bit only has effect for the asynchronous operation and selects
receiver sampling rate.
0
Normal asynchronous operation
1
Double Speed asynchronous operation