Controlling and Resetting the Port
10-7
Asynchronous Serial Port
10.3 Controlling and Resetting the Port
The asynchronous serial port is programmed through three on-chip registers
mapped to I/O space: the asynchronous serial port control register (ASPCR),
the I/O status register (IOSR), and the baud-rate divisor register (BRD). This
section describes the contents of each of these registers and also explains the
use of associated control features.
10.3.1 Asynchronous Serial Port Control Register (ASPCR)
The ASPCR controls the operation of the asynchronous serial port.
Figure 10–3 shows the fields in the 16-bit memory-mapped ASPCR and bit
descriptions follow the figure. All of the bits in the register are read/write, with
the exception of the reserved bits (12–10). The ASPCR is an on-chip register
mapped to address FFF5h in I/O space.
Figure 10–3. Asynchronous Serial Port Control Register (ASPCR)
— I/O-Space Address FFF5h
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
15
ÁÁÁÁÁ
ÁÁÁÁÁ
14
ÁÁÁÁ
ÁÁÁÁ
13
ÁÁÁÁÁ
ÁÁÁÁÁ
12
ÁÁÁÁÁ
ÁÁÁÁÁ
11
ÁÁÁÁ
ÁÁÁÁ
10
ÁÁÁÁÁ
ÁÁÁÁÁ
9
ÁÁÁÁ
ÁÁÁÁ
8
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
FREE
ÁÁÁÁÁ
ÁÁÁÁÁ
SOFT
ÁÁÁÁ
ÁÁÁÁ
URST
ÉÉÉÉÉÉÉÉÉÉÉÉ
ÉÉÉÉÉÉÉÉÉÉÉÉ
Reserved
ÁÁÁÁÁ
ÁÁÁÁÁ
DIM
ÁÁÁÁ
ÁÁÁÁ
TIM
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁ
0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
7
ÁÁÁÁÁ
ÁÁÁÁÁ
6
ÁÁÁÁ
ÁÁÁÁ
5
ÁÁÁÁÁ
ÁÁÁÁÁ
4
ÁÁÁÁÁ
ÁÁÁÁÁ
3
ÁÁÁÁ
ÁÁÁÁ
2
ÁÁÁÁÁ
ÁÁÁÁÁ
1
ÁÁÁÁ
ÁÁÁÁ
0
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
RIM
ÁÁÁÁÁ
ÁÁÁÁÁ
STB
ÁÁÁÁ
ÁÁÁÁ
CAD
ÁÁÁÁÁ
ÁÁÁÁÁ
SETBRK
ÁÁÁÁÁ
ÁÁÁÁÁ
CIO3
ÁÁÁÁ
ÁÁÁÁ
CIO2
ÁÁÁÁÁ
ÁÁÁÁÁ
CIO1
ÁÁÁÁ
ÁÁÁÁ
CIO0
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁÁÁÁ
ÁÁÁÁÁ
R/W–0
ÁÁÁÁ
ÁÁÁÁ
R/W–0
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Note:
0 = Always as zeros; R=Read access; W=Write access; value following dash (–) is value after reset.
ÁÁ
ÁÁ
Bit 15
FREE. This bit sets the port to function in emulation or run mode.
FREE = 0
Emulation mode is selected. SOFT then determines the
which emulation mode is enabled.
FREE = 1
Free run mode is selected.
Bit 14
SOFT. This bit is enabled when the FREE bit is 0. It determines the emulation
mode.
SOFT = 0
Process stops immediately.
SOFT = 1
Process stops after word completion.
Bit 13
URST — Reset asynchronous serial port bit. URST is used to reset the
asynchronous serial port. At reset, URST = 0.
URST = 0
The port is in reset.
URST = 1
The port is enabled.