Pin Diagram 8051

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

and

MicroproOcessors
Microcontrol

PL.0 d1 40Voc+5V
PI.I
C2 39 PI.0 (ADo)
PI.2C3 381P1.1(AD|)
PI.3C4 370 PI.2(AD2)
Port1
PL4 ds 36J PI.3(AD3)
Port
0
C6
PI.5 35 P1.4(AD4)
Pl.6 C7 34]P1.5(ADs)
Pl.7J8 33 P1.6(AD6)
RST J9 32 P1.7(AD¬)
P3.0(RXD)C10 8051 31)
EA (Vpp
P3.1 (TXD) du(40-pin)
DIP
30 ALE (PROG)
P3.2 C12
(INTO) 29 PSEN
Port
3 P3.3 (INTI)
Q13 28 P2.7 (A1s
P3.4 C14
(T,) 27J P2.6 (A14
P3.5 (T;)C15 26 P2.5 (A13)
P3.6 WR C16 25 P2.4 (A) Port
L P3.7 RD 17 24 P2.3 (A)
2

Oscillators XTAL2 C18 23 P2.2 (A10


signals XTAL1 C19 22 P2.1(Ag)
GND 21hP2.0 (Ag)
q20
Fig.
12.4Pin of8051
diagram

(Pin1to
Port 8]

Port1.0toport1.7

Port1 pins
areusedasinput function.
/ output

Input]
RST (Reset Ipin.9]

pinisused
This 8051.
toreset

isa highsignal
Wheneverthere pin,
at this 8051 enters
into
rese

position.
8051- Microcontroller 12.15

Port
3 [Pin
10to17)
Port
3.0 toport
3.7

Fort asa I/Oports


3 acts dosomealternate
andalsoitwill functio
Theyhavesomespecial
funtion
asshowninbelow.
RXD - (port
3.0) Serial data.
input
TXD -
(port
3.1) - Serial data.
output

INTO- (port
3.2) -
External 0 input.
Interrupt

INTI- (port
3.3) External
Interrupt
1input.

To (port3.4) External
timer
0 input.

(port
3.5) - External 1input.
timer

WR (port
3.6) signal.
memorywrite
External
-
RD (port3.7) memoryreadsignal.
External

XTAL andXTAL [Pin


18,
19]

Crystal (XTAL,
oscillator and XTAL,) a resonant
Provides network
whichgenerates
clock
pulses.
Thequartz andcapacitor
crytal canbeused
combination asa resonat
Vss,
Vcc[Pin20,40]
Thesepins
provide
powrsupply
tothesystem.
Vssisconnected andVcc is
toground to +5v.
connected

Port 21to28]
2.[Pin

Port2.0 to
port2.7

Port2 areused
toaccess memory.
external isalsoused
which tohold
thehigherorder Ag -Ajs:
address
12.16) andMicrOcontrol
Microprocessors

PSEN (Pin.
29]

PSEN - Program Enable.


Store
Itis
theactivelowoutput
control used
signal theenabl
toactivate
ROM / EPROM.
oftheexternal
signal
codeintheROM.
pinisusedtoreadtheprogram
This
ALE [Pin
- 30)

ALE -Addres
LatchEnable.
The ALEsignalisusedto differentiate anddatainthe
address
address
multiplexed bus.
/ data

Ifit
islow,thedataondatabusindicates
thedata, wiseit
other
thelower
represents orderaddress.

EA [Pin31]
EA - External
Access.

When pA pinishigh(connectedto Vcc), fetches


Programn to
0000H aredirected
addresses ROM.
totheinternal

When E
pinislow(Connected
to ground),
program
fetches
to
addresses FFFFH aredirected
1000H through ROM
toexternal
EPROM.

Port
0 [Pin
32-39]

Port0.0 toPort
0.7

port0 is
used anddatabus(AD,
forbothaddress -AD,)
Portareusedtoaccess
O memory
external
HereALE pin
isusedtoindicates
ifport0 hasaddress
or data.

When dataDoD
ALE=0,port Oprovides
ALE = 1,
Port0 provides
address
Ao- A.

You might also like