Sunteți pe pagina 1din 15

By:-

Guided by:- Rupesh Patel


INDEX
Introduction
What is microcontroller and its diff.
between microprocessor?
Block Diagram of 8951.
Contents in circuit.
Circuit Diagram of Power Supply.
Pin description.
Final circuit.
Application.
Microcontroller :
 A smaller computer
 On-chip RAM, ROM, I/O ports...
 Example : Motorola’s 6811, Intel’s 8951

CPU RAM ROM


A single chip
Serial
I/O Timer COM
Port
Port
Microcontroller
Microprocessor vs. Microcontroller
Microprocessor Microcontroller
CPU is stand-alone, RAM, ROM, • CPU, RAM, ROM, I/O and
I/O, timer are separate timer are all on a single chip
designer can decide on the • fix amount of on-chip ROM,
amount of ROM, RAM and I/O RAM, I/O ports
ports. • for applications in which cost,
expansive power and space are critical
versatility • single-purpose
general-purpose
Block Diagram
External interrupts
On-chip Timer/Counter

Interrupt ROM for


On-chip Timer 1 Counter
Control program
code RAM Timer 0 Inputs

CPU

Bus Serial
4 I/O Ports
OSC Control Port

P0 P1 P2 P3 TxD RxD
Address/Data
CONTENTS FOR KEYBOARD
INTERFACING
 Microcontroller 89C51
 7805 IC
 Registers
 Diode
 Capacitor
 Transformer
 7-Segment Display
 Push button Switch
 Crystal oscillator 12MHZ
CIRCUIT DIAGRAM OF POWER
SUPPLY
Pin Description of the 8051
P1.0 1 40 Vcc
P1.1 2 39 P0.0(AD0)
P1.2 3 38 P0.1(AD1)
P1.3
P1.4
4
5
8051 37
36
P0.2(AD2)
P0.3(AD3)
P1.5 6 (8031) 35 P0.4(AD4)
P1.6 7 34 P0.5(AD5)
P1.7 8 33 P0.6(AD6)
RST 9 32 P0.7(AD7)
(RXD)P3.0 10 31 EA/VPP
(TXD)P3.1 11 30 ALE/PROG
(INT0)P3.2 12 29 PSEN
(INT1)P3.3 13 28 P2.7(A15)
(T0)P3.4 14 27 P2.6(A14)
(T1)P3.5 15 26 P2.5(A13)
(WR)P3.6 16 25 P2.4(A12)
(RD)P3.7 17 24 P2.3(A11)
XTAL2 18 23 P2.2(A10)
XTAL1 19 22 P2.1(A9)
GND 20 21 P2.0(A8)
Pins of 8051

• Vcc pin 40
– Vcc provides supply voltage to the chip.
– The voltage source is +5V.
• GND pin 20 ground
• XTAL1 and XTAL2 pins 19,18
• Port 0 for Seven Segment
• P1.0-P1.3 for Keyboard row
• P2.0-P2,3 for Keyboard Column
Connection with 7-Segment Display
Connection with keyboard matrix
Final Circuit
APPLICATIONS
DigitalClock.
Calculator.
In Ad Displays.
To Display Waiting Number.
Reference:-

•www.wikipedia.com
•www.shreeelectronics.com
•www.dharmsinh.com
•www.8051projects.com

•Book: 8051 microcontroller by mazidi

S-ar putea să vă placă și