
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Asynchronous/Synchronous Serial Interface (ASC)
User’s Manual
18-40
V2.2, 2004-01
ASC_X, V2.0
Control Register
The operating mode of the serial channel ASC is controlled by its control register CON.
This register contains control bits for mode and error check selection, and status flags
for error identification.
ASCx_CON
Control Register
SFR (
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
LB
BRS ODD FDE
OE
FE
PE
OEN FEN
PEN/
RxDI
REN STP
M
rw
rw
rw
rw
rw
rwh
rwh
rwh
rw
rw
rw
rwh
rw
rw
Field
Bits
Type
Description
R
15
rw
Baudrate Generator Run Control Bit
0
Baudrate generator disabled (ASC inactive)
1
Baudrate generator enabled
Note: BR_VALUE should only be written if R = 0.
LB
14
rw
Loopback Mode Enabled
0
Loopback Mode disabled. Standard
transmit/receive Mode
1
Loopback Mode enabled
BRS
13
rw
Baudrate Selection
0
Baud rate timer prescaler divide-by-2 selected
1
Baud rate timer prescaler divide-by-3 selected
Note: BRS is don’t care if FDE = 1 (fractional divider
selected).
ODD
12
rw
Parity Selection
0
Even parity selected (parity bit of 1 is included
in data stream on odd number of 1 and parity
bit of 0 is included in data stream on even
number of 1)
1
Odd parity selected (parity bit of 1 is included
in data stream on even number of 1 and parity
bit of 0 is included in data stream on odd
number of 1)