Académique Documents
Professionnel Documents
Culture Documents
Contents:
Introduction Introduction
Block Diagram and Block Diagram and Pin Description of the 8051 Pin Description of the 8051
Registers Registers
Memor mapping in 8051 Memor mapping in 8051
!tack in the 8051 !tack in the 8051
I"# Port Programming I"# Port Programming
$imer $imer
Interrupt Interrupt
Why do we need to learn
Why do we need to learn
Microprocessors/controllers?
Microprocessors/controllers?
Timer
$nterrupt
%erial 'ort
'arallel 'ort
CP%
General-
Purpose
Micro-
processor
R&M R#M
I"#
Port
$imer
!erial
C#M
Port
Data Bus
&ddress Bus
General-Purpose Microprocessor System
Microprocessors#
Microprocessors#
A smaller computer
e!pansi/e
/ersatility
,eneral-purpose
Microcontroller
0
CPU, RAM, ROM, I/O an'
timer are all on a sin,le chip
0
fi! amount of on-chip ROM,
RAM, I/O ports
0
for applications in 1hich cost,
po1er an' space are critical
0
sin,le-purpose
Microprocessor /s( Microcontroller
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
&reated by bibe
&reated by bibe
7i,ure 8a9( -6A: Connection to #%*) 7i,ure 8a9( -6A: Connection to #%*)
&.
,0p-
&-
,0p-
8TA:.
8TA:-
;N!
+"( +"(
,"( ,"(
("( ("(
GateI%. open
GateI). close
! :atch
! :atch
#
#
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
Wednesday, %eptemb
er .0, .6-0
Mahdi "assanpour
Other Pins
Other Pins
R)!)$ 5alue of !ome 8051 Registers: R)!)$ 5alue of !ome 8051 Registers:
0000 DP$R
0003 !P
0000 P!7
0000 B
0000 &CC
0000 PC
Reset 5alue Register
R&M are all 8ero
1
1
Registers
A
H
R%
R)
R5
RG
R4
R*
RF
R$
CPB CP:
PC
CP6R
PC
Some #%*) )$-&it Re,ister
Some #-&itt Re,isters of
the #%*)
Memory mapping in 8051
Memory mapping in 8051
M- # Mode bit -.
M6 # Mode bit 6.
T&)N ,egister#
T&)N ,egister#
=A : Global enable/disable.
--- : ndefined.