cp3cn23 National Semiconductor Corporation, cp3cn23 Datasheet - Page 142

no-image

cp3cn23

Manufacturer Part Number
cp3cn23
Description
Cp3cn23 Reprogrammable Connectivity Processor With Dual Can Interfaces
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
20.3.1
The UnRBUF register is a byte-wide, read/write register
used to receive each data byte.
20.3.2
The UnTBUF register is a byte-wide, read/write register
used to transmit each data byte.
20.3.3
The UnPSR register is a byte-wide, read/write register that
contains the 5-bit clock prescaler and the upper three bits of
the baud rate divisor. This register is cleared upon reset.
The register format is shown below.
UPSC
UDIV10:8
7
7
7
U3MDSL2
U3SPOS
U3OVR
Name
UART Receive Data Buffer (UnRBUF)
UART Transmit Data Buffer (UnTBUF)
UART Baud Rate Prescaler (UnPSR)
The Prescaler field specifies the prescaler val-
ue used for dividing the System Clock in the
first stage of the two-stage divider chain. For
the prescaler factors corresponding to each 5-
bit value, see Table 59.
The Baud Rate Divisor field holds the three
most significant bits (bits 10, 9, and 8) of the
UART baud rate divisor used in the second
stage of the two-stage divider chain. The re-
maining bits of the baud rate divisor are held
in the UnBAUD register.
Table 60 UART Registers
UPSC
FF F272h
FF F270h
FF F274h
Address
UnTBUF
URBUF
3
UART3 Mode Select
UART3 Oversample
Position Register
UART3 Sample
2
Rate Register
Description
Register 2
UDIV10:8
0
0
0
142
20.3.4
The UnBAUD register is a byte-wide, read/write register that
contains the lower eight bits of the baud rate divisor. The
register contents are unknown at power-up and are left un-
changed by a reset operation. The register format is shown
below.
UDIV7:0
20.3.5
The UnFRS register is a byte-wide, read/write register that
controls the frame format, including the number of data bits,
number of stop bits, and parity type. This register is cleared
upon reset. The register format is shown below.
UCHAR
USTP
UXB9
UPSEL
Reserved UPEN
7
7
UART Baud Rate Divisor (UnBAUD)
UART Frame Select Register (UnFRS)
The Baud Rate Divisor field holds the eight
lowest-order bits of the UART baud rate divi-
sor used in the second stage of the two-stage
divider chain. The three most significant bits
are held in the UnPSR register. The divisor
value used is (UDIV[10:0] + 1).
The Character Frame Format field selects the
number of data bits per frame, not including
the parity bit, as follows:
00 – 8 data bits per frame.
01 – 7 data bits per frame.
10 – 9 data bits per frame.
11 – Loop-back mode, 9 data bits per frame.
The Stop Bits bit specifies the number of stop
bits transmitted in each frame. If this bit is 0,
one stop bit is transmitted. If this bit is 1, two
stop bits are transmitted.
0 – One stop bit per frame.
1 – Two stop bits per frame.
The Transmit 9th Data Bit holds the value of
the ninth data bit, either 0 or 1, transmitted
when the UART is configured to transmit nine
data bits per frame. It has no effect when the
UART is configured to transmit seven or eight
data bits per frame.
The Parity Select field selects the treatment of
the parity bit. When the UART is configured to
transmit nine data bits per frame, the parity bit
is omitted and the UPSEL field is ignored.
00 – Odd parity.
01 – Even parity.
10 – No parity, transmit 1 (mark).
11 – No parity, transmit 0 (space).
6
UPSEL
5
UDIV7:0
4
UXB9
3
USTP
2
UCHAR
1
0
0

Related parts for cp3cn23