03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 11<br />

SERIAL COMMUNICATIONS UNIT<br />

11.1 INTRODUCTION<br />

The Serial Communications Unit is composed of two identical serial ports, or channels. Each serial<br />

port is independent of the other. This chapter describes the operation of a single serial port.<br />

The serial port implements several industry-standard asynchronous communications protocols,<br />

and it readily interfaces to many different processors over a standard serial interface. Several processors<br />

and systems can be connected to a common serial bus using a multiprocessor protocol.<br />

The serial port also implements a simple synchronous protocol. The synchronous protocol is most<br />

commonly used to expand the number of I/O pins with shift registers.<br />

Features:<br />

• Full duplex operation<br />

• Programmable seven, eight or nine data bits in asynchronous mode<br />

• Independent baud rate generator<br />

• Maximum baud rate of 1/16 the processor clock<br />

• Double-buffered transmit and receive<br />

• Clear-to-Send feature for transmission<br />

• Break character transmission and detection<br />

• Programmable even, odd or no parity<br />

• Detects both framing and overrun errors<br />

• Supports interrupt on transmit and receive<br />

11.1.1 Asynchronous Communications<br />

Asynchronous communications protocols allow different devices to communicate without a common<br />

reference clock. The devices communicate at a common baud rate, or bits per second. Data<br />

is transmitted and received in frames. A frame is a sequence of bits shifted serially onto or off the<br />

communications line.<br />

Each asynchronous frame consists of a start bit (always a logic zero), followed by the data bits<br />

and a terminating stop bit. The serial port can transmit and receive seven, eight or nine data bits.<br />

The last data bit can optionally be replaced by an even or odd parity bit. Figure 11-1 shows a typical<br />

10-bit frame.<br />

11-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!