Intel 8051 manual Uart Interfacing Technique

Page 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

Image 35
Contents Architectural Specification ICE SINGLE-COMPONENT 8-BIT Microcomputer Architectural Specification and Functional DescriptionContents Architectural Overview Enhancing the 8048 ARCHITEC- Ture for the 80s AbstractIntelscomplete Line of SINGLE-CHIP Microcomputers MACRO-VIEW of the 8051 Archi Tecture On-Chip Peripheral Functions Architectural Speciffcation ancrFunctionaJ DescrlpfionRequest Microcomputer Expansion Components Ii~O,.R~~~~~~ ~ J -r-r ~r~ r =fJ ~~~--------~--~--~---I~ Architectural Specification and Functional DescriptionInternal Data Memory Instruction DecoderProgram Counter · t1 Boolean Processor Arithmetic SectionProgramControl Section Oscillator and Timing CircuitryParallel I/O Ports Operand Addressing~~143 136 ~ Data Transfer Operations Data Manipulation18. External Data Memory Move Operations Logic Operations21. Internal Data Memory Logic Operations Arithmetic OperationsREGplSCTER 14e--I-~--I~IMMEDArE,.j Organization of the Instruction Set Instruction SeT What the Instruction Set IsData Transfer Control Transfer 33.A Operand Addressing Modes Operand Addressing Modes & Associated OperationsMOV Interrupt SystemTFI TCON.7 External Interrupts Ports and I/O PinsAccessing External Memory Accessing External Memory-Bus Cycle Timing TsU~l ArcnneCtural specification and Functional DescriptionAccessing External Memory-Opera- tion of Ports CDV Configuring the Timer/Counter Input TIMER/COUNTERTimer/Counter Mode Selection Serial Channel 47. Uart Interfacing Technique SCON.O Operating ModesTransmission Rate Generation Uart Error ConditionsSerial Frame Power Down Standby Operation of Internal RAM Processor Reset and InitializationEprom Programming Vee RSTNpD 8051 Instruction SET Summary Instructions That Affect Flag SettingsAll mnemonics copyrighted@ Intel Corporation