Intel 8051 manual Architectural Specification and Functional Description, ~~~--------~--~--~---I~

Page 13

8051 Architectural Specification and Functional Description

I.~~

I

TXD RXD

TXD RXD

TXD RXD

RXD TXD

TXD RXD

TXD RXD

TXD r-----RXD

 

 

 

 

 

 

 

 

 

 

 

 

RXD

~.

TXD

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT PIN

 

CTS

8051

8051

8051

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

The receiver is double buffered to eliminate the overrun that would occur if the CPU failed to respond to the receiver's interrupt before the beginning of the next frame. Double buffering 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 servicing of the transmitter has to wait for a lengthy interrupt service program to complete. In asynchronous modes, false start-bit rejection is provided on received 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 programmed 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 I 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 powerful system than can be provided by a single CPU processor. This results from a hierarchy of interconnected processors, each with its own memories and 1/ O. In multiprocessing, a host 8051 microcomputer controls a multiplicity of 8051 s configured to operate simultaneous- lyon separate portions of the program, each controlling a portion of the overall process. The interconnected 8051 s reduce the load on the host processor and result in a low- cost system of data transmission. This form of distributed

8051

DATA

CLOCK

PORT PIN

A.1I0INPUT

EXPANSION

8051

DATAOS

CLOCK

EN

PORT PIN

B.110 OUTPUT EXPANSION

Figure 2.8. I/O Expansion Technique

 

 

 

 

 

MODE

TTY

~~~--------~--~--~---'I~

 

START

7-BIT DATA

PARITY'

,

 

 

 

 

 

 

2 STOP

 

TYPICAL

START

7·BITDATA

MARK

STOP

 

 

 

 

 

 

CRT

 

 

 

 

 

 

START

8-BIT DATA

 

PARITY STOP

 

 

 

 

 

 

2&3

MULTI-

START

a-BIT DATA

 

~~~:I STOP

 

PROCESSOR

 

 

 

 

 

 

COMMUNICA-

 

 

 

 

 

TIONS

 

 

 

 

 

 

 

 

 

 

2&3

 

START

9-BIT DATA

STOP

 

1/0

 

a·BITS

j..DATA

o

EXPANSION

....------------ '

ClK

 

 

 

Figure 2.9. Typical Frame Formats

AFN-01488A-12

8

Image 13
Contents Architectural Specification ICE SINGLE-COMPONENT 8-BIT Microcomputer Architectural Specification and Functional DescriptionContents Architectural Overview Intelscomplete Line of SINGLE-CHIP Microcomputers AbstractEnhancing the 8048 ARCHITEC- Ture for the 80s 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 DescriptionProgram Counter Instruction DecoderInternal Data Memory · t1 ProgramControl Section Arithmetic SectionOscillator and Timing Circuitry Boolean ProcessorParallel 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-Opera- tion of Ports TsU~l ArcnneCtural specification and Functional DescriptionAccessing External Memory-Bus Cycle Timing CDV Timer/Counter Mode Selection TIMER/COUNTERConfiguring the Timer/Counter Input Serial Channel 47. Uart Interfacing Technique SCON.O Operating ModesSerial Frame Uart Error ConditionsTransmission Rate Generation 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