inter8031/8051/8751

 

 

 

i

 

J

 

-

 

TXD RXD

TXD RXD

TXD RXD

RXD TXD

TXD RXD

TXD RXD

TXD

RXD

 

 

 

 

 

 

 

RXD

 

TXD

 

 

 

 

 

 

PORT PIN

~ CTS

8051

8051

6051

8051

8051

8051

8051

 

8251

A. MULTI-80s1 INTERCONNECT-HALF DUPLEX

B. MULTI-80s1 INTERCONNECT-FULL DUPLEX

C. 8051-8251 INTERFACE

Figure 2.7. UART Interfacing Schemes

Figure 2.7 and a method for 110 expansion is shown in Figure 2.8.

The full-duplex serial I/O port provides asyn- chronous modes to facilitate communications 'vvith standard UART devices, such as printers and CRT terminals, or communications with other 8051s in multi-processor systems. The receiver is double buffered to eliminate the overrun that would occur if the CPU failed to respond to the receiver'sinterrupt before the beginning of the next frame. Double buffer- ing of the transmitter is not needed since the 8051 can generally maintain the serial link at its maximum rate without it. A minor degradation in transmission rate can occur in rare events such as when the servic- ing of the transmitter has to wait for a lengthy inter- rupt service program to complete. In asynchronous modes, false start-bit rejection is provided on re- ceived frames. For noise rejection a best two-out-of- three vote is taken on three samples near the center of each received bit.

When interfacing with standard UART devices the serial channel can be programmed to a mode (Mode

1)that transmits/receives a ten-bit frame or pro- grammed to a mode (Mode 2 or 3) that transmits/ receives an eleven-bit frame as shown in Figure 2.9. The frame consists of a start bit, eight or nine data bits and a stop bit. In Modes 1 and 3, the transmission- rate timing circuitry receives a pulse from counter 1 each time the counter overflows. The input to counter 1 can be an external source or a division by 12 of the oscillator frequency. The auto-reload mode of the counter provides communication rates of 122 to 31,250 bits per second (including start and stop bits) for a 12 MHz crystal. In Mode 2 the communication rate is a division by 64 of the oscillator frequency yielding a transmission rate of 187,500 bits per second (including start and stop bits) for a 12 MHz crystal.

Distributed processing offers a faster, more power- ful system than can be provided by a single CPU processor. This results from a hierarchy of intercon- nected processors, each with its own memories and

8051

DATAos

CLOCK

EN

PORT PIN

B.1/0 OUTPUT EXPANSION

Figure 2.8. 1/0 Expansion Technique

 

I

 

 

 

 

MODE

TTY

 

 

 

 

I~

 

 

 

 

 

 

 

START

7·BIT DATA

PARITY~

 

{"

 

 

2 STOP

 

CRT

7-81T DATA

MARK

STOP

 

TYPICAL

START

 

 

 

 

 

 

 

 

I

I

8-BIT DATA

 

I

 

 

START

 

PARITY STOP

 

 

 

 

 

 

I

2&3

MULTI-

STAAT

8-BIT DATA

 

 

PROCESSOR

rI

II

 

ADDRi STOP

 

 

 

DATA

 

COMMUNICA-

 

 

 

 

 

 

 

TIONS

 

 

 

2 & 3

 

START

9·BIT DATA

STOP

 

EXPANSION

 

 

 

~DATA

 

10

 

 

S-BITS

 

 

 

 

 

 

 

 

 

 

 

 

 

---...

eLK

 

Figure 2.9. Typical Frame Formats

AFN-01462A-08

7-8

Page 252
Image 252
Intel mcs-48 manual ~Data