0% found this document useful (0 votes)
9 views14 pages

8051 Prof Zoting

Uploaded by

pallavivuppala30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

8051 Prof Zoting

Uploaded by

pallavivuppala30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Introduction of Microcontroller 8051

By
Prof R.R.Zoting
M.Sc.
Associate Professor Department of Electronics
Mahatma Fule Arts, Commerce and Sitaramji Choudhary
Science Mahavidhyalaya, Warud Dist. Amravati
Mobile:9421738781 Email: [email protected]

hsabaghianb @ kashanu.ac.ir Microprocessors 1-1


The 8051
Microcontroller

hsabaghianb @ kashanu.ac.ir Microprocessors 1-2


Embedded System
(8051 Application)

 What is Embedded System?


An embedded system is closely
integrated with the main system
It may not interact directly with
the environment
For example – A microcomputer
in a car ignition control
 An embedded product uses a microprocessor or microcontroller to do one task only
 There is only one application software that is typically burned into ROM

hsabaghianb @ kashanu.ac.ir Microprocessors 1-3


Examples of Embedded Systems

Keyboard
Printer
video game player
MP3 music players
Embedded memories to keep configuration
information
Mobile phone units
Domestic (home) appliances
Data switches
Automotive controls

hsabaghianb @ kashanu.ac.ir Microprocessors 1-4


Difference between Microprocessor and Microcontroller

hsabaghianb @ kashanu.ac.ir Microprocessors 1-5


• CISC versus RISC
– RISC stands for “Reduced Instruction Set
Computers”. Instructions are as bare a minimum
as possible to allow users to design their own
operations.
– CISC stands for “Complex Instruction Set
Computers”. Large number of instructions, each
carrying out a different permutation of the same
operation.

hsabaghianb @ kashanu.ac.ir Microprocessors 1-6


8051 Basic Component
4K bytes internal ROM
128 bytes internal RAM
Four 8-bit I/O ports (P0 - P3).
Two 16-bit timers/counters
One serial interface

CPU RAM ROM


A single chip
I/O Serial
Timer COM Microcontroller
Port
Port

hsabaghianb @ kashanu.ac.ir Microprocessors 1-7


Block Diagram
External Interrupts

Interrupt 4k 128 bytes Timer 1


Control ROM RAM Timer 2

CPU

OSC Bus
4 I/O Ports Serial
Control

P0 P2 P1 P3 TXD RXD
Addr/Data
hsabaghianb @ kashanu.ac.ir Microprocessors 1-8
Other 8051 featurs
 only 1 On chip oscillator (external crystal)
 6 interrupt sources (2 external , 3 internal, Reset)
 64K external code (program) memory(only read)PSEN
 64K external data memory(can be read and write) by
RD,WR
 Code memory is selectable by EA (internal or external)
 We may have External memory as data and code

hsabaghianb @ kashanu.ac.ir Microprocessors 1-9


Three criteria in Choosing a
Microcontroller
 meeting the computing needs of the task
efficiently and cost effectively
 speed, the amount of ROM and RAM, the number of I/O
ports and timers, size, packaging, power consumption
 easy to upgrade
 cost per unit
 availability of software development tools
 assemblers, debuggers, C compilers, emulator, simulator,
technical support
 wide availability and reliable sources of the
microcontrollers

hsabaghianb @ kashanu.ac.ir Microprocessors 1-10


8051 Internal Block Diagram

hsabaghianb @ kashanu.ac.ir Microprocessors 1-11


8051
Schematic
Pin out

hsabaghianb @ kashanu.ac.ir Microprocessors 1-12


8051 P1.0 1 40 Vcc

Foot Print
P1.1 2 39 P0.0(AD0)
P1.2 3 38 P0.1(AD1)
P1.3 4 37 P0.2(AD2)
P1.4 5 36 P0.3(AD3)
P1.5 6 35 P0.4(AD4)
P1.6 7 34 P0.5(AD5)
P1.7 8 33 P0.6(AD6)
RST 9
8051 32 P0.7(AD7)
(RXD)P3.0 10 (8031) 31 EA/VPP
(TXD)P3.1 11 30 ALE/PROG
(INT0)P3.2 12
(8751) 29 PSEN
(INT1)P3.3 13 (8951) 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)

hsabaghianb @ kashanu.ac.ir Microprocessors 1-13


hsabaghianb @ kashanu.ac.ir Microprocessors 1-14

You might also like