User Manual

EP7309/11/12 Users Manual - DS508UM4 17-1
Copyright Cirrus Logic, Inc. 2003
1717
17
Chapter 17
17UART and SIR Encoder
Introduction
The EP73xx provides three asynchronous interfaces: two Universal Asynchronous
Receiver/Transmitter (UART) and one SIR encoder. The SIR (IrDA) encoder shares
resources with one of the UARTs.
This provides resources for bi-directional communication with external IrDA
compliant devices as well as PC s for debugg ing and basic communication.
Features
UART1 with additional modem control signals
UART2 with standard Tx / Rx interface
Programmable bit rates, data length, and control bits.
SIR En coder (Shared resources with UART1)
UART and SIR Encoder Register List
Programming Example
;************************************************************************
; Enable UART1 for Baud Rate = 115200, no p arity 1 stop bit 8 data bits
;************************************************************************
UART1 EQU 0x70001 ; Value for above settings
UART1EN EQU 0x100 ; Set UART1EN in SYSCON1
Table 17-1: UART and SIR Encoder Registers
Address Name Type Size Description Page
0x8000.0480 UARTDR1 R/W 16 UART1 Data Register page 17-5
0x8000.1480 UARTDR2 R/W 32
UART1 Control
Register
page 17-5
0x8000.04C0 UBRLCR1 R/W 16 UART2 Data Register page 17-6
0x8000.14C0 UBRLCR2 R/W 32
UART2 Control
Register
page 17-6