12.07.2015 Views

80C186EB/80C188EB Microprocessor User's Manual - CEUNES

80C186EB/80C188EB Microprocessor User's Manual - CEUNES

80C186EB/80C188EB Microprocessor User's Manual - CEUNES

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 10SERIAL COMMUNICATIONS UNIT10.1 INTRODUCTIONThe Serial Communications Unit is composed of two identical serial ports, or channels. Each serialport is independent of the other. This chapter describes the operation of a single serial port.The serial port implements several industry-standard asynchronous communications protocols,and it readily interfaces to many different processors over a standard serial interface. Several processorsand systems can be connected to a common serial bus using a multiprocessor protocol.The serial port also implements a simple synchronous protocol. The synchronous protocol is mostcommonly used to expand the number of I/O pins with shift registers.Features:• Full duplex operation• Programmable seven, eight or nine data bits in asynchronous mode• Independent baud rate generator• Maximum baud rate of 1/16 the processor clock• Double-buffered transmit and receive• Clear-to-Send feature for transmission• Break character transmission and detection• Programmable even, odd or no parity• Detects both framing and overrun errors• Supports interrupt on transmit and receive10.1.1 Asynchronous CommunicationsAsynchronous communications protocols allow different devices to communicate without a commonreference clock. The devices communicate at a common baud rate, or bits per second. Datais transmitted and received in frames. A frame is a sequence of bits shifted serially onto or off thecommunications line.Each asynchronous frame consists of a start bit (always a logic zero), followed by the data bitsand a terminating stop bit. The serial port can transmit and receive seven, eight or nine data bits.The last data bit can optionally be replaced by an even or odd parity bit. Figure 10-1 shows a typical10-bit frame.10-1

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

Saved successfully!

Ooh no, something went wrong!