Serial Port Modes - Intel 8XC196MC User Manual

Table of Contents

Advertisement

8XC196MC, MD, MH USER'S MANUAL
Table 7-2. Serial Port Control and Status Registers (Continued)
Mnemonic
Address
PI_MASK
1FBCH
PI_PEND
1FBEH
SBUF0_RX
1F80H
SBUF1_RX
1F88H
SBUF0_TX
1F82H
SBUF1_TX
1F8AH
SP0_BAUD
1F84H,1F85H
SP1_BAUD
1F8CH,1F8DH
SP0_CON
1F83H
SP1_CON
1F8BH
SP0_STATUS
1F81H
SP1_STATUS
1F89H
7.3

SERIAL PORT MODES

The serial port has both synchronous and asynchronous operating modes for transmission and re-
ception. This section describes the operation of each mode.
7-4
Peripheral Interrupt Mask
This register enables and disables multiplexed peripheral interrupts.
Setting an SP x bit enables a serial port receive error interrupt;
clearing the bit disables (masks) the interrupt.
Peripheral Interrupt Pending
This register indicates pending multiplexed peripheral interrupts.
When set, an SP x bit indicates a pending serial port receive error
interrupt.
Serial Port x Receive Buffer
This register contains data received from the serial port.
Serial Port x Transmit Buffer
This register contains data that is ready for transmission. In modes
1, 2, and 3, writing to SBUF x _TX starts a transmission. In mode 0,
writing to SBUF x _TX starts a transmission only if the receiver is
disabled (SP x _CON.3 = 0).
Serial Port x Baud Rate
This register selects the serial port baud rate and clock source. The
most-significant bit selects the clock source. The lower 15 bits
represent the BAUD_VALUE, an unsigned integer that determines
the baud rate.
Serial Port x Control
This register selects the communications mode and enables or
disables the receiver, parity checking, and ninth-bit data transmis-
sions. The TB8 bit is cleared after each transmission.
For mode 4, this register also selects the direction (input or output)
of the SCLKx# signal.
Serial Port x Status
This register contains the serial port status bits. It has status bits for
receive overrun errors (OE), transmit buffer empty (TXE), framing
errors (FE), transmit interrupt (TI), receive interrupt (RI), and
received parity error (RPE) or received bit 8 (RB8). Reading
SP x _STATUS clears all bits except TXE; writing a byte to
SBUF x _TX clears the TXE bit.
Get other manuals https://www.bkmanuals.com
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents