Micro controller Vs Micro processor
A complete computer
RAM, ROM, I/O ports
on chip itself
Application specific
Fixed amount of
ROM,RAM,I/O ports
available
Cheap and takes up
less space
A CPU only
RAM, ROM, I/O ports
are provided externally
General purpose use
Flexibility to choose
ROM,RAM,I/O ports to
be connected
Costly & Bulky as
compared to a micro
controller
Micro controller & Embedded Processors
Embedded Processors are used for complex
systems that require high performance and
processing capability. For e.g. Air Traffic
monitoring and control, communication
systems on spacecrafts etc.
Overview of 8051 family
686Interrupts
111Serial Port
232Timers
323232I/O pins
128 bytes256 bytes128 bytesRAM
0K8K4KROM
803180528051Feature
Block Diagram of 8051
8-bit Controller
Data Bus (8 bits)
Address Bus (16-
bits)
5V Power Supply
0 – 24MHz
SERIAL
PORT
TIMERS
I/O
PORTS
ROMRAMCPU
Architecture of 8051
CPU
On-chip
RAM
(128
bytes)
On-chip
ROM for
program
code(4K)
4 I/O Ports
Timer 0
Serial
PortOSC
External interrupts
Timer 1
Timer/Counter
Bus
Control
TxD RxDP0 P1 P2 P3
Address/Data
Counter
Inputs
Interrupt
Control
Application Development using 8051
(Development Tools)
1.Keil Software
2.Universal Programmer/ Flash Magic
3.Soldering kit
4.Multi-meter
5.CAD Tools (ORCAD etc.)
Application Development using 8051
(Development Steps)
Connecting Power Supply and Crystal
Connecting RESET circuit
I/O interfacing with 8051
Writing Application Software
Burning the program in 8051 ROM
Vcc +5V
U1
A T89C51
9
18
19
20
29
30
31
40
1
2
3
4
5
6
7
8
21
22
23
24
25
26
27
28
10
11
12
13
14
15
16
17
39
38
37
36
35
34
33
32
RS T
X TA L2
X TA L1
GND
P S E N
A LE /P ROG
E A /V P P
VCC
P 1.0
P 1.1
P 1.2
P 1.3
P 1.4
P 1.5
P 1.6
P 1.7
P 2.0/A 8
P 2.1/A 9
P 2.2/A 10
P 2.3/A 11
P 2.4/A 12
P 2.5/A 13
P 2.6/A 14
P 2.7/A 15
P 3.0/RX D
P 3.1/TX D
P 3.2/INTO
P 3.3/INT1
P 3.4/TO
P 3.5/T1
P 3.6/WR
P 3.7/RD
P 0.0/A D0
P 0.1/A D1
P 0.2/A D2
P 0.3/A D3
P 0.4/A D4
P 0.5/A D5
P 0.6/A D6
P 0.7/A D7
C133pF C2 33pF
GND
11.0592 MHz
Connecting Power
Supply and Crystal
AT89C51
Vcc +5V
U1
AT89C51
9
18
19
20
29
30
31
40
1
2
3
4
5
6
7
8
21
22
23
24
25
26
27
28
10
11
12
13
14
15
16
17
39
38
37
36
35
34
33
32
RS T
X TA L2
X TA L1
GND
PS EN
ALE /P ROG
E A /V P P
VCC
P 1.0
P 1.1
P 1.2
P 1.3
P 1.4
P 1.5
P 1.6
P 1.7
P2.0/A 8
P2.1/A 9
P2.2/A 10
P2.3/A 11
P2.4/A 12
P2.5/A 13
P2.6/A 14
P2.7/A 15
P 3.0/RX D
P3.1/TXD
P3.2/INTO
P 3.3/INT1
P3.4/TO
P 3.5/T1
P3.6/WR
P 3.7/RD
P 0.0/A D0
P 0.1/A D1
P 0.2/A D2
P 0.3/A D3
P 0.4/A D4
P 0.5/A D5
P 0.6/A D6
P 0.7/A D7
+
C310uF, 16V
R110K
GND
Connecting
RESET circuit
Writing application Software
A LED Blinking program
ORG 0H
START: SETB P3.7
SETB P3.6
ACALL DELAY
CLR P3.7
CLR P3.6
ACALL DELAY
JMP START
DELAY: MOV R5, #11
H3: MOV R4, #248
H2: MOV R3, #255
H1: DJNZ R3, H1
DJNZ R4, H2
DJNZ R5, H3
RET
END
Burning the program in 8051 ROM
•Use a Universal Programmer to program
8051
•Use a PC based programming software
like Flash Magic