Professional Documents
Culture Documents
Microcontroller 8051
06/15/15
MicrprocessorBasedDesigningFall20
CPU Organization
CISC Machine
Registers
PSW
8 BIT
ACCUMULATOR
8 BIT
EXTENSION REGISTER
8 BIT
SP
STACK POINTER
8 BIT
DPTR
16 BIT
SFRs
8 BIT
06/15/15
MicrprocessorBasedDesigningFall20
06/15/15
MicrprocessorBasedDesigningFall20
06/15/15
MicrprocessorBasedDesigningFall20
06/15/15
MicrprocessorBasedDesigningFall20
06/15/15
MicrprocessorBasedDesigningFall20
Port 1
Port 2
06/15/15
MicrprocessorBasedDesigningFall20
P3.0
P3.1
P3.2
P3. 3
P3.4
P3.5
P3.6
P3.7
06/15/15
RxD
TxD
INTO
INT1
T0
T1
\WR
\RD
MicrprocessorBasedDesigningFall20
Memory organization
80C51 supports Harvard memory architecture i.e. separate
address spaces for program and data each of 64KB
Program Space
Lower 4KB Program space is on the chip for ROM
versions and /RD signal is used to access it
For the 64KB ROM space outside the chip /EA signal is
used with /PSEN
Data Space
RAM occupies 64KB space out of which 128 Bytes are on
the chip. The /RD and /WR signals are used to interact
with data space
Memory locations can be accessed using Direct and
Indirect modes
06/15/15
MicrprocessorBasedDesigningFall20
10
Data Memory
FFFF
FFFF
0FFF
EA=1
EA=0
00
FF
00
/PSEN
06/15/15
00
00
/RD
MicrprocessorBasedDesigningFall20
/WR
11
06/15/15
MicrprocessorBasedDesigningFall20
12
0003H
EXT INT 0
000BH TIMER 0
06/15/15
0013H
EXT INT 1
001B
TIMER 1
MicrprocessorBasedDesigningFall20
13
06/15/15
MicrprocessorBasedDesigningFall20
14
4 Register Banks
00 to 1FH
20-2F or
16x8 = 128 Bits
30-7F or 80 Bytes
General RAM
06/15/15
Assignment
Make a table describing all the
registers of 8051 i.e. CPU, Register
Banks and Special Funtion Registers
Submission Next Class
06/15/15
MicrprocessorBasedDesigningFall20
16
Register Banks
8051 has four Register banks selectable by two bits (3,4) in
PSW register
When the 8051 is first booted up, Register bank 0 (addresses
00h through 07h) is used by default.
The 8051 instructions use 8 "R" registers. They are
numbered from R0 through R7.
The internal memory supports 4 register banks i.e.
The first 8 bytes (00h - 07h) are "register bank 0". Followed
by Bank1 (08 0F), Bank2 (10 17), Bank3 (18 1F)
The concept of register banks adds a great level of flexibility
to the 8051, especially when dealing with interrupts.
However, always remember that the register banks really
reside in the first 32 bytes of Internal RAM.
06/15/15
MicrprocessorBasedDesigningFall20
17
06/15/15
MicrprocessorBasedDesigningFall20
18
Note:
For External EPROM
EA is tied to Low
For Internal EPROM EA
is tied to High
06/15/15
MicrprocessorBasedDesigningFall20
19
06/15/15
MicrprocessorBasedDesigningFall20
20