1346 A Single Chip Microcomputer

5,405 views 15 slides May 23, 2010
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

visit: www.techbed.blogspot.com


Slide Content

Study of 8051 – A Single Chip
Micro Computer

A Micro controller is a ‘complete
computer’ on a single chip…
CPU/Microprocessor
Memory/ Hard Disk/RAM
I/O Ports/ I/O Devices

Micro controller Vs Micro processor
8051
8085
ROM/27C512
RAM/6264
I/O Ports/8255

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
RST
(RXD)P3.0
(TXD)P3.1
(T0)P3.4
(T1)P3.5
XTAL2
XTAL1
GND
(INT0)P3.2
(INT1)P3.3
(RD)P3.7
(WR)P3.6
Vcc
P0.0(AD0)
P0.1(AD1)
P0.2(AD2)
P0.3(AD3)
P0.4(AD4)
P0.5(AD5)
P0.6(AD6)
P0.7(AD7)
EA/VPP
ALE/PROG
PSEN
P2.7(A15)
P2.6(A14)
P2.5(A13)
P2.4(A12)
P2.3(A11)
P2.2(A10)
P2.1(A9)
P2.0(A8)
8051
(8031)
Pin Diagram of 8051
Port 1
Port 3
Port 2
Port 0

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
Tags