ADuC7019/20/21/22/24/25/26/27/28
Rev. B | Page 64 of 92
Table 50. COMIID0 MMR Bit Descriptions
Bit 2:1
Status Bits
Bit 0
NINT
Priority
Definition
Clearing
Operation
00
1
–
No interrupt.
–
11
0
1
Receive Line
Status
Interrupt.
Read
COMSTA0.
10
0
2
Receive Buffer
Full Interrupt.
Read COMRX.
01
0
3
Transmit
Buffer Empty
Interrupt.
Write data to
COMTX or
read COMIID0.
00
0
4
Modem Status
Interrupt.
Read
COMSTA1.
COMCON0 Register
Name
Address
Default Value
Access
COMCON0
0xFFFF070C
0x00
R/W
COMCON0 is the line control register.
Table 51. COMCON0 MMR Bit Descriptions
Bit
Name
Description
7
DLAB
Divisor Latch Access. Set by user to enable
access to COMDIV0 and COMDIV1 registers.
Cleared by user to disable access to COMDIV0
and COMDIV1 and enable access to COMRX
and COMTX.
6
BRK
Set Break. Set by user to force SOUT to 0.
Cleared to operate in normal mode.
5
SP
Stick Parity. Set by user to force parity to
defined values: 1 if EPS = 1 and PEN = 1,
0 if EPS = 0 and PEN = 1.
4
EPS
Even Parity Select Bit. Set for even parity.
Cleared for odd parity.
3
PEN
Parity Enable Bit. Set by user to transmit and
check the parity bit. Cleared by user for no
parity transmission or checking.
2
STOP
Stop Bit. Set by user to transmit 1.5 stop bits if the
word length is 5 bits or 2 stop bits if the word
length is 6 bits, 7 bits, or 8 bits. The receiver
checks the first stop bit only, regardless of the
number of stop bits selected. Cleared by user to
generate 1 stop bit in the transmitted data.
1:0
WLS
Word Length Select:
00 = 5 bits, 01 = 6 bits, 10 = 7 bits, 11 = 8 bits
COMCON1 Register
Name
Address
Default Value
Access
COMCON1
0xFFFF0710
0x00
R/W
COMCON1 is the modem control register.
Table 52. COMCON1 MMR Bit Descriptions
Bit
Name
Description
7:5
Reserved.
4
LOOPBACK
Loop Back. Set by user to enable loopback
mode. In loop back mode, SOUT is forced
high. The modem signals are also directly
connected to the status inputs (RTS to CTS
and DTR to DSR). Cleared by user to be in
normal mode.
3
PEN
Parity Enable Bit. Set by user to transmit and
check the parity bit. Cleared by user for no
parity transmission or checking.
2
STOP
Stop Bit. Set by user to transmit 1.5 stop bits
if the word length is 5 bits, or 2 stop bits if
the word length is 6 bits, 7 bits, or 8 bits. The
receiver checks the first stop bit only,
regardless of the number of stop bits
selected. Cleared by user to generate 1 stop
bit in the transmitted data.
1
RTS
Request to Send. Set by user to force the RTS
output to 0. Cleared by user to force the RTS
output to 1.
0
DTR
Data Terminal Ready. Set by user to force the
DTR output to 0. Cleared by user to force the
DTR output to 1.
COMSTA0 Register
Name
Address
Default Value
Access
COMSTA0
0xFFFF0714
0x60
R
COMSTA0 is the line status register.
Table 53. COMSTA0 MMR Bit Descriptions
Bit
Name
Description
7
Reserved.
6
TEMT
COMTX Empty Status Bit. Set automatically if
COMTX is empty. Cleared automatically when
writing to COMTX.
5
THRE
COMTX and COMRX Empty. Set automatically if
COMTX and COMRX are empty. Cleared automati-
cally when one of the registers receives data.
4
BI
Break Error. Set when SIN is held low for more than
the maximum word length. Cleared automatically.
3
FE
Framing Error. Set when an invalid stop bit occurs.
Cleared automatically.
2
PE
Parity Error. Set when a parity error occurs. Cleared
automatically.
1
OE
Overrun Error. Set automatically if data is over-
written before being read. Cleared automatically.
0
DR
Data Ready. Set automatically when COMRX is
full. Cleared by reading COMRX.