Intel 8051 manual Uart Interfacing Technique

Models: 8051

1 44
Download 44 pages 25.41 Kb
Page 35
Image 35

8051 Architectural Specification and Functional Description

 

PULSE TO

COUNTER 1

SERIAL PORT

MODE 0: 8-BIT TIMER WITH PRESCALER/

 

8-BIT COUNTER WITH PRESCALER

 

MODE 1: 16-BIT TIMER/COUNTER

 

MODE 2: 8·BITAUTO·RELOADTIC

 

MODE 3: PREVENTS INCREMENTING

 

OF TIC

 

T1 ___-- I

COUNTER 0

XTAL1

Figure 2.46.8. Timer/Event Counter 1 Control and Status Flag Circuitry

~

~

TXD RXD

TXD RXD

TXD RXD

RXD TXD

TXD RXD

TXD RXD

TXD

 

 

 

 

 

 

RXD

 

 

 

 

 

 

PORT PIN

8051

8051

8051

8051

8051

8051

8051

r----

~

RXD

TXD

ffi

8251

A. MULTI·8051 INTERCONNECT-HALF DUPLEX

B. MULTI·8051 INTERCONNECT-FULL DUPLEX

C. 8051·8251 INTERFACE

Figure 2.47. UART Interfacing Technique

8051

 

DATA 14----1

SIN

CLOCK

 

PORT PIN

 

A.IiOINPUT

EXPANSION

8051

. OATAt ---....as

CLOCK

EN

PORT PIN

B.IiOOUTPUT

EXPANSION

updates the transmitter register, while a read from SBUF reads a buffer that is updated by the receiver register if/ when flag RI is reset. The receiver is double buffered to eliminate the overrun that would occur ifthe CPU failed to respond to the receiver's interrupt before the beginning of the next frame. In general double buffering of the transmitter is not needed for the high performance 8051 to maintain the serial link at its maximum rate. A minor degradation in data rate can occur in rare events. such as when the servicing of the transmittter has to wait for a lengthy interrupt service program to complete. In asynchronous mode, false start-bit rejection is provided on received frames. A two-out-of-three vote is taken on each received bit for noise rejection. The serial port's control and the monitoring of its status is provided by the serial port control register (SCON). The contents of the 8-bit SCON register are shown in Figure 2.49.

Figure 2.48. I/O Expansion Technique

AFN·01488A·34

30

Page 35
Image 35
Intel 8051 manual Uart Interfacing Technique