Controlling and Resetting the Port
10-13
Asynchronous Serial Port
Bit 3
IO3 — Status bit for IO3. When the IO3 pin is configured as an input (by the
CIO3 bit of the ASPCR), this bit reflects the current level on the IO3 pin.
IO3 = 0
The IO3 signal is low.
IO3 = 1
The IO3 signal is high.
Bit 2
IO2 — Status bit for IO2. When the IO2 pin is configured as an input (by the
CIO2 bit of the ASPCR), this bit reflects the current level on the IO2 pin.
IO2 = 0
The IO2 signal is low.
IO2 = 1
The IO2 signal is high.
Bit 1
IO1 — Status bit for IO1. When the IO1 pin is configured as an input (by the
CIO1 bit of the ASPCR), this bit reflects the current level on the IO1 pin.
IO1 = 0
The IO1 signal is low.
IO1 = 1
The IO1 signal is high.
Bit 0
IO0 — Status bit for IO0. When the IO0 pin is configured as an input (by the
CIO0 bit of the ASPCR), this bit reflects the current level on the IO0 pin.
IO0 = 0
The IO0 signal is low.
IO0 = 1
The IO0 signal is high.
10.3.3 Baud-Rate Divisor Register (BRD)
The baud rate of the asynchronous serial port can be set to many different
rates by means of the BRD, an on-chip register located at address FFF7h in
I/O space. Equation 10–1 shows how to set the BRD value to get the desired
baud rate. When the BRD contains 0, the ASP will not transmit or receive any
character. At reset, BRD = 0001h.
Equation 10–1. Value Needed in the BRD
BRD value in decimal = CLKOUT1 frequency
16
×
desired baud rate
Table 10–2 lists common baud rates and the corresponding hexadecimal val-
ue that should be in the BRD for a given CLKOUT1 frequency.