Tx Machine - Intel 80C188EC User Manual

Hide thumbs Also See for 80C188EC:
Table of Contents

Advertisement

SERIAL COMMUNICATIONS UNIT
The RX machine can detect several error conditions that may occur during reception:
1.
Parity errors — A parity error flag is set when the parity of the received data is incorrect.
2.
Framing errors — If a valid stop bit is not received when expected by the RX machine, a
framing error flag is set.
3.
Overrun errors — If SxRBUF is not read before another reception completes, the old data
in SxRBUF is overwritten and an overrun error flag is set. This indicates that data from an
earlier reception has been lost.
The RX machine also recognizes two different break characters. The shorter break character is M
bit times, where M is equal to the total number of bits (start + data + stop) in a frame. The longer
break character is 2M + 3 bit times. A break character results in at least one null (all zero) char-
acter with a framing error being received. Other error flags could be set depending on the length
of the break character and the mode of the serial port.
11.1.1.2

TX Machine

A block diagram of the TX machine is shown in Figure 11-3. The TX machine logic supports the
following features:
parity generation (even, odd or none)
Clear-to-Send
break character transmission
double-buffered operation
A transmission begins by writing a byte to the Serial Transmit Buffer (SxTBUF) Register. SxT-
BUF is a holding register for the transmit shift register. The contents of SxTBUF are transferred
to the transmit shift register as soon as it is empty. If no transmission is in progress (i.e., the trans-
mit shift register is empty), SxTBUF is copied immediately to the transmit shift register. If parity
is enabled, the parity bits are calculated and appended to the transmit shift register during the
transfer. The start and stop bits are added when the data is transmitted. The Transmit Interrupt bit
(TI) is set at the beginning of the stop bit time.
Double buffering is a useful feature of the TX machine. When the transmit shift register is empty,
the user can write two sequential bytes to SxTBUF. The first byte is transmitted immediately and
the second byte is held in SxTBUF until the first byte has been transmitted.
11-4

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c186ec

Table of Contents