Asynchronous Serial Ports (UARTs)
13-4
Am186™CC/CH/CU Microcontrollers User’s Manual
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
Table 13-2
UARTs Register Summary
Offset
Register
Mnemonic
Register Name
Description
High-Speed UART
260h
HSPCON0
High-Speed Serial Port Control 0
Configures and enables serial port.
262h
HSPCON1
High-Speed Serial Port Control 1
Configures serial port.
264h
HSPSTAT
High-Speed Serial Port Status
Provides information about the current status
of the serial port.
266h
HSPIMSK
High-Speed Serial Port Interrupt Mask
Enables interrupts based on condition of status
bits.
268h
HSPTXD
High-Speed Serial Port Transmit Data
Provides data to transmitter.
26Ah
HSPRXD
High-Speed Serial Port Receive Data
Contains data read over serial line.
26Ch
HSPRXDP
High-Speed Serial Port Receive Data
Peek
Reads data in Receive Data register without
changing condition of serial port.
26Eh
HSPBDV
High-Speed Serial Port Baud Rate
Divisor
Specifies a clock divisor for generation of the
serial clock.
270h
HSPM0
High-Speed Serial Port Character
Match 0
Each register can be programmed with two
characters for use with automatic character
matching.
272h
HSPM1
High-Speed Serial Port Character
Match 1
274h
HSPM2
High-Speed Serial Port Character
Match 2
276h
HSPAB0
High-Speed Serial Autobaud 0
Each register contains values used as baud
divisors during autobaud.
278h
HSPAB1
High-Speed Serial Autobaud 1
27Ah
HSPAB2
High-Speed Serial Autobaud 2
27Ch
HSPAB3
High-Speed Serial Autobaud 3
UART
280h
SPCON0
Serial Port Control 0
Behaves the same as the High-Speed UART
registers but for the UART port.
282h
SPCON1
Serial Port Control 1
284h
SPSTAT
Serial Port Status
286h
SPIMSK
Serial Port Interrupt Mask
288h
SPTXD
Serial Port Transmit Data
28Ah
SPRXD
Serial Port Receive Data
28Ch
SPRXDP
Serial Port Receive Data Peek
28Eh
SPBDV
Serial Port Baud Rate Divisor
Summary of Contents for Am186 CC
Page 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Page 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Page 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Page 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Page 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Page 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Page 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Page 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Page 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...