Table of Contents

Advertisement

Table 13-2
UARTs Register Summary
Register
Offset
Mnemonic
High-Speed UART
260h
HSPCON0
262h
HSPCON1
264h
HSPSTAT
266h
HSPIMSK
268h
HSPTXD
26Ah
HSPRXD
26Ch
HSPRXDP
26Eh
HSPBDV
270h
HSPM0
272h
HSPM1
274h
HSPM2
276h
HSPAB0
278h
HSPAB1
27Ah
HSPAB2
27Ch
HSPAB3
UART
280h
SPCON0
282h
SPCON1
284h
SPSTAT
286h
SPIMSK
288h
SPTXD
28Ah
SPRXD
28Ch
SPRXDP
28Eh
SPBDV
13.5

OPERATION

13.5.1
Usage
Note: Before using the UARTs, ensure multiplexed pins are configured to reflect the use
of the UARTs and not other functionality (see Table 13-1 on page 13-3).
To use the UART and the High-Speed UART, software must program the bits described in
the following procedures. The procedures include transmit, receive, and autobaud mode
(High-Speed UART only). The High-Speed UART has the same basic registers as the UART
(plus some additional ones). These registers are named the same except for an H in front
of the High-Speed UART register name. Throughout this chapter, an "(H)" in front of the
13-4
Asynchronous Serial Ports (UARTs)
Register Name
High-Speed Serial Port Control 0
High-Speed Serial Port Control 1
High-Speed Serial Port Status
High-Speed Serial Port Interrupt Mask
High-Speed Serial Port Transmit Data
High-Speed Serial Port Receive Data
High-Speed Serial Port Receive Data
Peek
High-Speed Serial Port Baud Rate
Divisor
High-Speed Serial Port Character
Match 0
High-Speed Serial Port Character
Match 1
High-Speed Serial Port Character
Match 2
High-Speed Serial Autobaud 0
High-Speed Serial Autobaud 1
High-Speed Serial Autobaud 2
High-Speed Serial Autobaud 3
Serial Port Control 0
Serial Port Control 1
Serial Port Status
Serial Port Interrupt Mask
Serial Port Transmit Data
Serial Port Receive Data
Serial Port Receive Data Peek
Serial Port Baud Rate Divisor
Am186™CC/CH/CU Microcontrollers User's Manual
Description
Configures and enables serial port.
Configures serial port.
Provides information about the current status
of the serial port.
Enables interrupts based on condition of status
bits.
Provides data to transmitter.
Contains data read over serial line.
Reads data in Receive Data register without
changing condition of serial port.
Specifies a clock divisor for generation of the
serial clock.
Each register can be programmed with two
characters for use with automatic character
matching.
Each register contains values used as baud
divisors during autobaud.
Behaves the same as the High-Speed UART
registers but for the UART port.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Am186 chAm186 cu

Table of Contents