Beruflich Dokumente
Kultur Dokumente
TIMER 1 TIMER 0
COUNTER INPUTS
CPU
OSC
BUS CONTROL
4 I/O PORTS
SERIAL PORT
TXD P0 P2 P1 P3
RXD
ADDRESS / DATA
XTAL1
S2
S3 S4 Machine cycle
S6
FFFF
EXTERNAL
1000
0FFF
SCON*
SBUF
Serial Port
Serial Data Buffer. Stack Pointer
98
99
DPL
82
SP
81
TMOD
89
TCON* TL0
88 8A
80 90 A0
order byte
TH0 Timer 0 Higher order byte Timer 1 Lower order byte Timer 1 Higher order byte 8C
P3*
PCON PSW
I/O Port
Power Control Program Status Word
B0
87 D0
TL1
8B
TH1
8D
CY AY Carry Auxiliary-Carry
F0 RS1 RS0 OV
0 User Flag 0 1 1
0 1 0 1
INT1
TIMER1 SERIAL
Ports of 8051
P0 While accessing external memory provides lower order byte of address (A0-A7) Otherwise acts as normal port line
ADDR / DATA CONTROL READ LATCH D Q Q2 MUX VCC Q1 P0.X PIN
P0.X LATCH CL Q
Ports of 8051
P1: Port 1 has no dual function. It is simply used as programmable bi-directional I/O Port.
READ LATCH D Q
VCC
*
P1.X LATCH CL Q
Ports of 8051
P2: While accessing external memory provides higher order byte of address (A8-A15) Otherwise acts as normal port line
ADDR CONTROL VCC INTERNAL PULL-UP READ LATCH MUX INT.BUS WRITE TO LATCH READ PIN D Q Q1 P2.X LATCH CL Q
*
P2.X PIN
Ports of 8051
Port Pin Name Alternate Function Serial input port P3.0
ALTERNATE OUTPUT FUNCTION VCC
RXD
P3.1
INTERNAL PULL-UP
TXD
*
READ LATCH D Q P3.X LATCH CL Q
P3.2
P3.X PIN Q1
INT0
P3.3
INT1
P3.4
T0
P3.5
T1
P3.6
WR
P3.7
RD
By holding RST pin high for two machine cycles On reset the registers have the following contents: PC, A, B, PSW, DPTR, TMOD, TCON, TH0, TL0, TH1, TL1 all are initialized to zero. SP 07H, P0 P3 0FFH, IP xxx00000, IE 0xx00000, PCON 0xxxxxxx, SBUF xxxxxxxx.
SCOM
SBUF PCON
00H
Indeterminate (0XXXXXXX)
8051 Family
FEATURE
ROM RAM I/O Serial I/O Timer Interrupt Sources
8051 8031
4K 128 32 1 2 6 0K 128 32 1 2 6
8751
EPROM 4K 128 32 1 2 6
8052
8K 256 32 1 3 8
AT89C51
DS500-8
Applications
Household items
Toys TVs Microwave oven Washing Machine Garage door opener Home securing system Vacuum cleaner
Communication Cordless phones Cellular phones Pagers Answering machine Smart cards
Thanks!