You are on page 1of 12

M.

Krishna Kumar MAM/M5/LU12/V1/2004 1


Introduction Introduction
Inside 8051 Inside 8051
Instructions Instructions
Interfacing Interfacing
Contents
Contents
M. Krishna Kumar MAM/M5/LU12/V1/2004 2
Introduction
Introduction
Definition of a Microcontroller
Difference with a Microprocessor
Microcontroller is used where ever
M. Krishna Kumar MAM/M5/LU12/V1/2004 3
Definition
Definition
It is a single chip
Consists of Cpu, Memory
I/O ports, timers and other peripherals
M. Krishna Kumar MAM/M5/LU12/V1/2004 4
Difference
It is a single chip
Consists Memory,
I/o ports
Micro Controller
Micro Processor
It is a cpu
Memory, I/O Ports to be
connected externally
MEMORY
I/O PORTS
CPU
CPU MEMORY
I/O PORTS
M. Krishna Kumar MAM/M5/LU12/V1/2004 5
Small size
Low cost
Low power
Where ever
Where ever
M. Krishna Kumar MAM/M5/LU12/V1/2004 6
Architecture
Architecture
Harvard university
The Architecture given by Harvard University has the following
advantages:
1: Data Space and Program Space are distinct
2: There is no Data corruption or loss of data
Disadvantage is:
1: The circuitry is very complex.
M. Krishna Kumar MAM/M5/LU12/V1/2004 7
8 bit cpu
64k Program memory (4k on chip)
64k Data memory
128 Bytes on chip
32 I/O
Two 16 bit timers
Full duplex UART
6 Source/5 Vector interrupts with
two level priority levels
On chip clock Oscillator.
Features
Features
M. Krishna Kumar MAM/M5/LU12/V1/2004 8
Block Diagram
Block Diagram
128 Bytes
RAM Timer 0
Timer 1
4 I/O ports Bus Control
External Interrupts
Serial Port
Counter inputs
TXD RXD
P0 P2 P1 P3
PSEN ALE
Interrupt
control
4k On chip flash
ETC
CPU
OSC
M. Krishna Kumar MAM/M5/LU12/V1/2004 9
Memory Architecture
Memory Architecture
EA=0
EXTERNAL
EA=1
INTERNAL
0000
PSEN
RD WR
FFH:
00
INTERNAL
EXTERNAL
0000H:
FFFFH:
EXTERNAL
M. Krishna Kumar MAM/M5/LU12/V1/2004 10
SFR Map
SFR Map
M. Krishna Kumar MAM/M5/LU12/V1/2004 11
Internal Memory
Internal Memory
Scratch Pad
Bit Memory
Bank 3 (R0-R7)
Bank 2 (R0-R7)
Bank 1 (R0-R7)
Bank 0 (R0-R7)
7FH
30H
20H
18H
10H
08H
00H
M. Krishna Kumar MAM/M5/LU12/V1/2004 12
Pin connections
Pin connections

You might also like