AP512 ACROPACK
USER
’S MANUAL
Acromag, Inc. Tel: 248-295-0310
- 26 - http://www.acromag.com
- 26 -
https://www.acromag.com
0 0 08
0 1 16
1 0 32
1 1 56
7,6
These bits are used to set the trigger level for the receiver
FIFO interrupt. An interrupt is generated when the number of
characters in the FIFO equals the programmed trigger level.
One of four trigger levels can be selected.
bit 7 bit 6 Trigger Level
0 0 08
0 1 16
1 0 56
1 1 60
Bits 4 and 5 are only programmable when the EFR bit 4 is set to “1”. A
power-up or system reset sets all FCR bits to 0.
3.2.8 LCR - Line Control Register (Read/Write)
The Line Control Register is used to specify the asynchronous data
communication format. The word length, the number of stop bits, and the
parity are selected by writing the appropriate bits in this register.
The individual bits of this register control the format of the data character as
follows:
Table 3.9 Line Control
Registers
LCR
Bit
FUNCTION PROGRAMMING
1,0
Word
Length
Sel.
0 0 = 5 Data Bits 0 1 = 6 Data Bits
1 0 = 7 Data Bits 1 1 = 8 Data Bits
2
Stop Bit
Select
0 = 1 Stop Bit
1 = 1.5 Stop Bits if 5 data bits; 2 Stop
Bits if 6, 7, or 8 data bits selected.
3
Parity
Enable
0 = Parity Disabled 1 = Parity Enabled
A parity bit is generated and checked for between
the last data word bit and the stop bit.
4
Even-
Parity
0 = Odd Parity