User`s guide

LZ87010 Advance User’s Guide UARTs
1/15/03 10-11
10.2 Signals
Table 10-3 details the external signals for the UARTs.
10.3 UART Registers
10.3.1 SCON and SCON1 (Serial Control) Registers
The SCON and SCON1 registers control the operating modes of UART 0 and UART 1.
SCON and SCON1 set the serial port operating mode and enable or disable the serial
receive and transmit functions. In addition, the Transmit and Receive Data interrupt status
bits are reported in these registers. For serial modes where ninth data bits or stop bits are
significant, the state of this extra bit is reported in RB8 for received data, or set in TB8 for
transmitted data.
Table 10-3. UART Signals
SIGNAL
NAME
SIGNAL
TYPE
PIN
NUMBER
PIN
TYPE
FUNCTIONAL
UNIT
SHARED
WITH
DESCRIPTION
RXD0 I 60 I/O UART P3[0]
UART 0 Receive Data
RXD1 I 63 I/O UART P3[3] UART 1 Receive Data
TXD0 O 61 I/O UART P3[1] UART 0 Transmit Data
TXD1 O 62 I/O UART P3[2] UART 1 Transmit Data
Table 10-4. SCON and SCON1 Registers
BIT 7 6 5 4 3 2 1 0
FIELD SM[0] SM[1] SM[2] REN TB8 RB8 TI RI
RESET 0000 0 000
RW RW RW RW RW RW RW RW RW
ADDR
SCON: 0x98
SCON1: 0xC8