SlideShare a Scribd company logo
1 of 29
 The 8051 is the original member of the MCS®-51 family,
and is the core for all MCS-51 devices. The features ofthe
 8051 core are:
 8-bit CPU optimized for control applications
 Extensive Boolean processing (single-bit logic) capabilities
 64K Program Memory address space
 64K Data Memory address space
 4K bytes of on-chip Program Memory
 128 bytes of on-chip Data RAM
 32 bidirectional and individually addressable I/O lines
 Two 16-bit timer/counters
 Full duplex UART
 6-source/5-vector interrupt structure with two priority
levels
 On-chip clock oscillator
 Block diagram of 8051 consist of
 CPU
 Two memory sections (Data and Program)
 Input/output ports
 Special function registers
 Control logic
These all elements communicates using 8 bit data bus, know as
internal data bus
 8051 consist of 40 pin
 Many pins of 8051 are used for more than one function
 The alternate functions are shown with green colour.
 It consists of 8 bit arithmetic and logic unit
 Associated with registers like A,B,PSW,SP.
 It consist of 16 bit program counter and data pointer
 It also contains set of special function registers
 ALU performs arithmetic as well as logic function on 8 bit
variables
 Arithmetic operations such as addition, subtraction,
multiplication and division
 Logic operations such as AND,OR,XOR, rotate etc.
 8051 consist of 128 byte
internal RAM
 It is organized into three
areas
Working Registers
Bit Addressable
General Purpose
 First 32 bytes from 00H to
1FH are working registers.
 They are divided into 4 banks
of 8 registers from R0 to R7
 At a time only 1 bank is in
use, bits RS0 and RS1 in PSW
determine the bank in
current use.
 When register bank is not
selected then can be used as
general purpose RAM.
 8051 provides 16 bytes of bit addressable area
 It occupies RAM byte addresses from 20H to 2FH forming 128
addressable bits.
 The RAM area from 30H to 7FH are called as general purpose
RAM.
 8051 has 4k byte internal
ROM from 0000H to 0FFFH
 It is inbuilt and programmed
by manufacturer
 It cannot be erased or
altered after fabrication
 If the program exceed above
0FFFH then 8051
automatically fetch code
bytes from external program
memory.
 8051 has 32 I/O pins as 4
eight bit parallel Port
(P0,P1,P2 and P3)
 All ports are bidirectional
 They consist of latch, output
driver and input buffer.
 Port 0 and 2 of output driver
and port 0 of input buffers
are used in access to external
memory
 Pins of port3 are
multifunctional.
 Register A (accumulator)
 It is an 8 bit register, which holds operand and receives result of
arithmetic instruction.
 It can also be source or destination for logical operations.
 Register B
 In addition to accumulator, an 8 bit B-register is available as
general purpose register.
 Stack pointer is used to hold
internal RAM address that is
called top of stack
 It is 8 bit wide
 It is incremented before data is
stored during PUSH and CALL
 It is decremented after data is
restored during POP and RET
instructions
 It can reside anywhere on chip
RAM
 Stack pointer is initialized 07 h
after reset.
 Stack location begin at location
08h
 It consists of High byte (DPH) and
low byte (DPL)
 Its function is to hold 16 bit
address
 It can be used as 16 bit data
register or two 8 bit registers
 It does not have single internal
address.
 8051 has 16 bit program counter
 Which holds address of memory location from which next
instructions is to be fetched
 It can address up to 64k of memory
 It automatically increments to point next instruction in program
sequence
 PC is only register that does not have internal address.
 Like other microprocessors Intel
family 8051 uses memory mapped
I/O through special function
registers that in implemented above
128 bytes of RAM
 The figure shows special fubction bit
addresses
 It shows all 4 I/O ports , CPU
registers, interrupt control registers,
time/counter etc
 The power control is performed
between 80H and FFH
 All internal operations are
synchronized with help of clock
signal.
 Clock signal is generated using
oscillator circuit.
 The minimum and maximum
operating frequencies for 8051 are
typically 1 mhz to 16 mhz.
 A machine cycle of 8051 consists of
6 states from s1 to s6,divided int
two phases p1 & p2.
 Thus a m/c cycle consist of 12
oscillator periods from s1p1 to s6p2
in 1µsec.
 During m/c arithmetic and logical
operations takes place in p1 and
internal register to register in p2.
 ALE is activated twice a m/c cycle
for user accessible as external
reference
 (ALE is activated during s1p2 and
s2p1, s4p2 and s5p1.
 Execution of one cycle instruction begins at s1p2, when instruction is
latched into instruction register.
 If it is two byte instruction second instruction is read during s4.
 If it is one byte instruction there is still fetch at s4 but byte read is
ignored and pc Is not incremented.
 Most instruction execute in one cycle, but mul, div are instructions that
take two cycles to complete.
 Normally two bytes are fetched during every m/c cycle, only for MOVX it
takes 1 byte , 2 cycle for external memory.
 8051 has internal data and code
memory with limited memory
 Memory may not be sufficient for
some applications
 So their is need to connect
external ROM/EPROM and RAM to
8051
 To increase capacity of memory
 ROM is used as program memory
 RAM is used as data memory
 In 8051 when EA pin connected
to Vcc program fetches
addresses from 0000h to 0FFFh
are directed to internal ROM
 From 1000h to FFFFh are
directed to external ROM/EPROM
 And if EA pin is grounded all
addresses fetched by program
from 0000h to FFFFh are
directed to external ROM/EPROM
 PSEN signal is used to activate
output enable signal of
ROM/EPROM
 Port 0 is used as multiplexed
address/bus
 Initial T –cycle gives lower order
8 bit address and later used as
data bus
 8bit lower address is latched
using ALE signal
• Port 2 provides higher order 8
bit address
• The lower part of program
stores the vector addresses for
various vectors interrupt routine
•Each interrupt is assigned with
fixed location
• from figure we can see
•When the interrupt does not
use the location it is used as
general purpose memory.
•Instruction to access external
ROM/Program memory
•MOVC A,@A +DTPR
•MOVC A,@A +PC
 8051 can address upto 64k bytes
of external memory
 MOVX instruction is used to
access external data memory.
 Internal memory is divided into
three blocks lower 128 bytes ,
upper 128bytes and SFRS
 Upper block and SFRS occupy
same address space 80h to FFh
 Upper is accessible by indirect
addressing only
 SFRs is accessed by direct
addressing
 Lower is accessed by direct as
well as indirect addressing
 Circuit diagram shows
connectivity with external data
memory.
 Multiplexed address/data bus is
provided by external port 0,
external latch and ALE
 Port 2 gives higher order sddress
bus
 RD and WR signals selects
memory read and memory write
operations
 8051 has 16 bit Timer/counter
registers: Timer 0 and Timer 1 both
can be used either as timers or
counters
 If it is used as timer it will be
incremented after each m/c cycle
and the count rate is 1/12 of
oscillator frequency.
 If frequency is 12 MHZ then timer
clock frequency will be 1 MHZ.
 If it is used as counter it will be
incremented in response to 1-0
transition its corresponding external
input it takes two m/c cycles so
count rate is 1/24
 Timers and counters are controlled
by TR!/0 bits in TCON
 Gate bits in TMOD and INT1/0 input
pins of 8051
 C/T bit register decides the
operation 0 for timer selection and
1 for counter
Micro 8051

More Related Content

What's hot

Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt ianishgoel
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applications8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applicationselprocus
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerJai Sudhan
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller featuresTech_MX
 
M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notesDr.YNM
 
microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)jhcid
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controllerNirbhay Singh
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basicssagar Ramdev
 
8085 micro processor- notes
8085 micro  processor- notes8085 micro  processor- notes
8085 micro processor- notesDr.YNM
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051ASHISH RAJ
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerSenthil Kumar
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller918007165995
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESDr.YNM
 

What's hot (20)

Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
 
8051 dev board guide
8051 dev board guide8051 dev board guide
8051 dev board guide
 
8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applications8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applications
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8051 tutorial
8051 tutorial8051 tutorial
8051 tutorial
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
 
M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notes
 
microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basics
 
8085 micro processor- notes
8085 micro  processor- notes8085 micro  processor- notes
8085 micro processor- notes
 
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 NotesMICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontroller
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 

Viewers also liked

Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännöt
Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännötPohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännöt
Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännötUlla Ala-Ketola
 
The Leader Gym: Building Leadership. (English)
The Leader Gym: Building Leadership. (English)The Leader Gym: Building Leadership. (English)
The Leader Gym: Building Leadership. (English)Perles Coaching
 
Conventions of the Horror Genre
Conventions of the Horror GenreConventions of the Horror Genre
Conventions of the Horror GenreWbrooks10
 
Поддержка салонов февраль 2016
Поддержка салонов февраль 2016Поддержка салонов февраль 2016
Поддержка салонов февраль 2016nk010282
 
Парикмахерский бренд Amika в прессе июнь 2016
Парикмахерский бренд Amika в прессе июнь 2016Парикмахерский бренд Amika в прессе июнь 2016
Парикмахерский бренд Amika в прессе июнь 2016nk010282
 
Парикмахерский бренд Amika в прессе январь 2016
Парикмахерский бренд Amika в прессе январь 2016Парикмахерский бренд Amika в прессе январь 2016
Парикмахерский бренд Amika в прессе январь 2016nk010282
 
Engage Hearts and Minds 2016
Engage Hearts and Minds 2016Engage Hearts and Minds 2016
Engage Hearts and Minds 2016Adan Gaona
 
Парикмахерский бренд Joico в прессе январь 2017
Парикмахерский бренд Joico в прессе январь 2017 Парикмахерский бренд Joico в прессе январь 2017
Парикмахерский бренд Joico в прессе январь 2017 nk010282
 
Парикмахерский бренд Joico в прессе июнь 2016
Парикмахерский бренд Joico в прессе июнь 2016Парикмахерский бренд Joico в прессе июнь 2016
Парикмахерский бренд Joico в прессе июнь 2016nk010282
 
SocialMedia_Coy
SocialMedia_CoySocialMedia_Coy
SocialMedia_CoyAshley_Coy
 
Сниппеты для сайта, как их делать своими руками
Сниппеты для сайта, как их делать своими рукамиСниппеты для сайта, как их делать своими руками
Сниппеты для сайта, как их делать своими рукамиЕкатерина Иова
 
First shoot shot types (1)
First shoot   shot types (1)First shoot   shot types (1)
First shoot shot types (1)Wbrooks10
 
Getting started with dropbox
Getting started with dropboxGetting started with dropbox
Getting started with dropboxfazreenroslan
 

Viewers also liked (20)

Pentium processor
Pentium processorPentium processor
Pentium processor
 
Bullying 2015
Bullying 2015Bullying 2015
Bullying 2015
 
wonderlandS_final
wonderlandS_finalwonderlandS_final
wonderlandS_final
 
Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännöt
Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännötPohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännöt
Pohjois-Karjala: Uusiutuvan energian ja energiatehokkuuden hyvät käytännöt
 
Tugas duwi
Tugas duwiTugas duwi
Tugas duwi
 
The Leader Gym: Building Leadership. (English)
The Leader Gym: Building Leadership. (English)The Leader Gym: Building Leadership. (English)
The Leader Gym: Building Leadership. (English)
 
Conventions of the Horror Genre
Conventions of the Horror GenreConventions of the Horror Genre
Conventions of the Horror Genre
 
Поддержка салонов февраль 2016
Поддержка салонов февраль 2016Поддержка салонов февраль 2016
Поддержка салонов февраль 2016
 
Парикмахерский бренд Amika в прессе июнь 2016
Парикмахерский бренд Amika в прессе июнь 2016Парикмахерский бренд Amika в прессе июнь 2016
Парикмахерский бренд Amika в прессе июнь 2016
 
SUNY ERI2
SUNY ERI2SUNY ERI2
SUNY ERI2
 
Парикмахерский бренд Amika в прессе январь 2016
Парикмахерский бренд Amika в прессе январь 2016Парикмахерский бренд Amika в прессе январь 2016
Парикмахерский бренд Amika в прессе январь 2016
 
Engage Hearts and Minds 2016
Engage Hearts and Minds 2016Engage Hearts and Minds 2016
Engage Hearts and Minds 2016
 
Парикмахерский бренд Joico в прессе январь 2017
Парикмахерский бренд Joico в прессе январь 2017 Парикмахерский бренд Joico в прессе январь 2017
Парикмахерский бренд Joico в прессе январь 2017
 
Tugas duwi
Tugas duwiTugas duwi
Tugas duwi
 
Парикмахерский бренд Joico в прессе июнь 2016
Парикмахерский бренд Joico в прессе июнь 2016Парикмахерский бренд Joico в прессе июнь 2016
Парикмахерский бренд Joico в прессе июнь 2016
 
SocialMedia_Coy
SocialMedia_CoySocialMedia_Coy
SocialMedia_Coy
 
Shoot
ShootShoot
Shoot
 
Сниппеты для сайта, как их делать своими руками
Сниппеты для сайта, как их делать своими рукамиСниппеты для сайта, как их делать своими руками
Сниппеты для сайта, как их делать своими руками
 
First shoot shot types (1)
First shoot   shot types (1)First shoot   shot types (1)
First shoot shot types (1)
 
Getting started with dropbox
Getting started with dropboxGetting started with dropbox
Getting started with dropbox
 

Similar to Micro 8051

Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerSudhanshu Janwadkar
 
8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptxARYAKUMARNIRAV
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1haymanotyehuala
 
Advanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxAdvanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxShanDimantha1
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
8051 Microcontroller By Er. Swapnil Kaware
8051 Microcontroller By Er. Swapnil Kaware8051 Microcontroller By Er. Swapnil Kaware
8051 Microcontroller By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...sangeeta jogade
 
janakiraman egsp collage I msc 4 unit
janakiraman egsp collage  I msc 4 unitjanakiraman egsp collage  I msc 4 unit
janakiraman egsp collage I msc 4 unitjanakiramang6
 

Similar to Micro 8051 (20)

Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx
 
Unit 4.pptx
Unit 4.pptxUnit 4.pptx
Unit 4.pptx
 
Microcontroller1
Microcontroller1Microcontroller1
Microcontroller1
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Unit 5
Unit 5Unit 5
Unit 5
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1
 
Ch3 ppt
Ch3 pptCh3 ppt
Ch3 ppt
 
Advanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxAdvanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptx
 
8051.ppt
8051.ppt8051.ppt
8051.ppt
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
8051 Microcontroller By Er. Swapnil Kaware
8051 Microcontroller By Er. Swapnil Kaware8051 Microcontroller By Er. Swapnil Kaware
8051 Microcontroller By Er. Swapnil Kaware
 
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
 
12906245.ppt
12906245.ppt12906245.ppt
12906245.ppt
 
janakiraman egsp collage I msc 4 unit
janakiraman egsp collage  I msc 4 unitjanakiraman egsp collage  I msc 4 unit
janakiraman egsp collage I msc 4 unit
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 

Recently uploaded

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 

Recently uploaded (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 

Micro 8051

  • 1.
  • 2.  The 8051 is the original member of the MCS®-51 family, and is the core for all MCS-51 devices. The features ofthe  8051 core are:  8-bit CPU optimized for control applications  Extensive Boolean processing (single-bit logic) capabilities  64K Program Memory address space  64K Data Memory address space  4K bytes of on-chip Program Memory  128 bytes of on-chip Data RAM  32 bidirectional and individually addressable I/O lines  Two 16-bit timer/counters  Full duplex UART  6-source/5-vector interrupt structure with two priority levels  On-chip clock oscillator
  • 3.
  • 4.  Block diagram of 8051 consist of  CPU  Two memory sections (Data and Program)  Input/output ports  Special function registers  Control logic These all elements communicates using 8 bit data bus, know as internal data bus
  • 5.
  • 6.  8051 consist of 40 pin  Many pins of 8051 are used for more than one function  The alternate functions are shown with green colour.
  • 7.  It consists of 8 bit arithmetic and logic unit  Associated with registers like A,B,PSW,SP.  It consist of 16 bit program counter and data pointer  It also contains set of special function registers  ALU performs arithmetic as well as logic function on 8 bit variables  Arithmetic operations such as addition, subtraction, multiplication and division  Logic operations such as AND,OR,XOR, rotate etc.
  • 8.  8051 consist of 128 byte internal RAM  It is organized into three areas Working Registers Bit Addressable General Purpose  First 32 bytes from 00H to 1FH are working registers.  They are divided into 4 banks of 8 registers from R0 to R7  At a time only 1 bank is in use, bits RS0 and RS1 in PSW determine the bank in current use.  When register bank is not selected then can be used as general purpose RAM.
  • 9.  8051 provides 16 bytes of bit addressable area  It occupies RAM byte addresses from 20H to 2FH forming 128 addressable bits.  The RAM area from 30H to 7FH are called as general purpose RAM.
  • 10.  8051 has 4k byte internal ROM from 0000H to 0FFFH  It is inbuilt and programmed by manufacturer  It cannot be erased or altered after fabrication  If the program exceed above 0FFFH then 8051 automatically fetch code bytes from external program memory.
  • 11.  8051 has 32 I/O pins as 4 eight bit parallel Port (P0,P1,P2 and P3)  All ports are bidirectional  They consist of latch, output driver and input buffer.  Port 0 and 2 of output driver and port 0 of input buffers are used in access to external memory  Pins of port3 are multifunctional.
  • 12.
  • 13.  Register A (accumulator)  It is an 8 bit register, which holds operand and receives result of arithmetic instruction.  It can also be source or destination for logical operations.  Register B  In addition to accumulator, an 8 bit B-register is available as general purpose register.
  • 14.
  • 15.  Stack pointer is used to hold internal RAM address that is called top of stack  It is 8 bit wide  It is incremented before data is stored during PUSH and CALL  It is decremented after data is restored during POP and RET instructions  It can reside anywhere on chip RAM  Stack pointer is initialized 07 h after reset.  Stack location begin at location 08h
  • 16.  It consists of High byte (DPH) and low byte (DPL)  Its function is to hold 16 bit address  It can be used as 16 bit data register or two 8 bit registers  It does not have single internal address.
  • 17.  8051 has 16 bit program counter  Which holds address of memory location from which next instructions is to be fetched  It can address up to 64k of memory  It automatically increments to point next instruction in program sequence  PC is only register that does not have internal address.
  • 18.  Like other microprocessors Intel family 8051 uses memory mapped I/O through special function registers that in implemented above 128 bytes of RAM  The figure shows special fubction bit addresses  It shows all 4 I/O ports , CPU registers, interrupt control registers, time/counter etc  The power control is performed between 80H and FFH
  • 19.
  • 20.  All internal operations are synchronized with help of clock signal.  Clock signal is generated using oscillator circuit.  The minimum and maximum operating frequencies for 8051 are typically 1 mhz to 16 mhz.  A machine cycle of 8051 consists of 6 states from s1 to s6,divided int two phases p1 & p2.  Thus a m/c cycle consist of 12 oscillator periods from s1p1 to s6p2 in 1µsec.  During m/c arithmetic and logical operations takes place in p1 and internal register to register in p2.  ALE is activated twice a m/c cycle for user accessible as external reference  (ALE is activated during s1p2 and s2p1, s4p2 and s5p1.
  • 21.  Execution of one cycle instruction begins at s1p2, when instruction is latched into instruction register.  If it is two byte instruction second instruction is read during s4.  If it is one byte instruction there is still fetch at s4 but byte read is ignored and pc Is not incremented.  Most instruction execute in one cycle, but mul, div are instructions that take two cycles to complete.  Normally two bytes are fetched during every m/c cycle, only for MOVX it takes 1 byte , 2 cycle for external memory.
  • 22.  8051 has internal data and code memory with limited memory  Memory may not be sufficient for some applications  So their is need to connect external ROM/EPROM and RAM to 8051  To increase capacity of memory  ROM is used as program memory  RAM is used as data memory
  • 23.  In 8051 when EA pin connected to Vcc program fetches addresses from 0000h to 0FFFh are directed to internal ROM  From 1000h to FFFFh are directed to external ROM/EPROM  And if EA pin is grounded all addresses fetched by program from 0000h to FFFFh are directed to external ROM/EPROM  PSEN signal is used to activate output enable signal of ROM/EPROM  Port 0 is used as multiplexed address/bus  Initial T –cycle gives lower order 8 bit address and later used as data bus  8bit lower address is latched using ALE signal
  • 24. • Port 2 provides higher order 8 bit address • The lower part of program stores the vector addresses for various vectors interrupt routine •Each interrupt is assigned with fixed location • from figure we can see •When the interrupt does not use the location it is used as general purpose memory. •Instruction to access external ROM/Program memory •MOVC A,@A +DTPR •MOVC A,@A +PC
  • 25.  8051 can address upto 64k bytes of external memory  MOVX instruction is used to access external data memory.  Internal memory is divided into three blocks lower 128 bytes , upper 128bytes and SFRS  Upper block and SFRS occupy same address space 80h to FFh  Upper is accessible by indirect addressing only  SFRs is accessed by direct addressing  Lower is accessed by direct as well as indirect addressing
  • 26.  Circuit diagram shows connectivity with external data memory.  Multiplexed address/data bus is provided by external port 0, external latch and ALE  Port 2 gives higher order sddress bus  RD and WR signals selects memory read and memory write operations
  • 27.
  • 28.  8051 has 16 bit Timer/counter registers: Timer 0 and Timer 1 both can be used either as timers or counters  If it is used as timer it will be incremented after each m/c cycle and the count rate is 1/12 of oscillator frequency.  If frequency is 12 MHZ then timer clock frequency will be 1 MHZ.  If it is used as counter it will be incremented in response to 1-0 transition its corresponding external input it takes two m/c cycles so count rate is 1/24  Timers and counters are controlled by TR!/0 bits in TCON  Gate bits in TMOD and INT1/0 input pins of 8051  C/T bit register decides the operation 0 for timer selection and 1 for counter