SlideShare ist ein Scribd-Unternehmen logo
1 von 20
8051 presentation
Some basic points:
It is 8bit controller
Working frequency of microcontroller upto 16MHz
Two types of memory in microcontroller
1)RAM
2)ROM(flash memory)
Flash memory size will be less i.e 4K
Small operating systems can run on microcontroller
eg.RTOS is small size operating system
Application to application RTOS size can change i.e 4k
to 4GB
RAW CODING: (firmware or bare metal code)
without help of O.S we can control the hardware.
there are so many microcontrollers are their they were using RAW
coding
eg. advanced virtual risc (AVR)
periferal interface controller(PIC)
advanced risc machine(ARM)
There are three layers in O.S
USER SPACE (application space)
KERNEL SPACE
BOOT SUPPORT PACKAGES
Purpose of flash memory is to store the program like OTP chip
Designer will never give a permission to write in flash memory
EEPROM it is the permanent memory R/W data in memory
EEPROM is electrically erasable
Every microcontroller have inbuilt CPU, flash , RAM
Flash memory and RAM is mandatory
MICROPROCESSOR:
It is the general purpose CPU without on chip memory
CPU components are
 ALU
REGISTERS
TIMERS AND CONTROL UNIT
BUSES
INTERRUPT CONTROL LOGIC
INTRUCTION AND DECODE UNIT
8085
(8BIT
MICROPROCESSOR)
8bits 16bits
8086
(16BIT
MICROPROCESSOR)
16bits 20bits
8051
(8BIT
Microcontroller)
8bits 16bits
8088
(16BIT
MICROPROCESSOR)
8bits 20bits
DATA BUS ADDRESS BUS
ALU: It performs the arithmetic and logical operations
Registers: registers are faster and local storage memory of CPU
Mov Acc,data //less time
Mov addr,data //more time
Accumulator called as varsatile register because it is used in many
Stack pointer is initialize the default values
Two types of stack
1) up growing stack
2) down growing stack
Stack operations:
PUSH->insert elements in to the stack
POP->retrieving elements from the stack
For push operation stack pointer is incrementing then it is up growing stack
For push operation if stack pointer is decrementing it is down growing stack
In up growing stack first pop operation will retrieve the data and decrement one
stack pointer
Eg. 8086 stack is down growing
8051 is up growing
Program counter:
It points to next instruction to be executed in both
microcontroller and microprocessor
Every instruction have different unique opcode
CPU operations
Fetch
Decode
Execute
Program counter always point to zero, zero opcode reserve for NO operation
Buses:
Three types of buses
1)data bus
2)address bus
3)control bus
Buses are group of lines which can transfer data or addresses
Data bus is bidirectional
Address bus is unidirectional
Control bus can be uni or bidirectional
For every internal activity of cpu, cpu needs clock pulses and clock
pulses are nothing but electrical signals i.e 0’s & 1’s
Machine cycle:
It is group of clock pulses
The time required to fetch +decode+execute the instruction called
machine cycle
1 m/c of 8051==12clock pulses
Instruction decoding unit:
Every instruction has unique opcode
If processor supports 16 instructions then it has 16 opcodes
Two instructions with same opcodes not present in processor
It is a part of CPU
If processor supports more number of instructions then IDU size is more
CPU design policies:
1)Based on instructions set
2)Based on memory organization
1)Based on instruction set:
CISC complex instruction set computing
RISC reduced instrucion set computing
CISC RISC
It supports more number of
instructions
IDU size is big
Power consumption is more
Heat dissipation is more
Compiler complexity is less
It supports multiclock cycle
instructions
Supports less number of registers
Eg.8051 cpu, 8085,8086 etc…
It supports less number of
instructions
IDU size is small
Power consumption is less
Heat dissipation is less
Compiler complexity is more
Mostly single clock cycled
instruction
More number of registers
Eg.ARM,CPU,AVR,PIC etc…
Based on memory organization:
1)Harvard architecture
2)Von neumann architecture
Harvard architecture have separate memory for both data and program
Eg.8051, ARM9, AVR,PIC etc…
Von neumann architecture have single memory for both data and program
8051 block diagram:
Features of 8051:
Employs CISC Harvard architecture
8bit ALU
8bit controller
8051 available in 40pin DIP(dual in line package)
4k on chip ROM/flash memory
It has 128bytes of USER RAM
Another 128bytes of RAM is reserved for sfr”s
Four i/o ports are available
Two 16bits timers/counters peripherals are available
It has full duplex UART peripheral
 It supports 6 interrupt sources
one is non maskable interrupt
five is maskable interrupt
 It have on-chip clock oscillator requires external crystal
It supports upto 60kb of external flash memory
Address bus size-16bits(A0 to A15)
data bus-8bits(D0 to D7)
8051’s memory structures:
Whenever we want to design microcontroller these following four
mandatory circuits are there
1)Reset
2)Crystal
3)PSU
4)Circuit to download into microcontroller
Name Internal RAM
address(HEX)
A E0
B FO
DPH 83
DPL 82
IE A8
IP B8
P0 80
P1 90
P2 A0
P3 B0
PCON 87
PSW D0
SCON 98
Special function registers:
Name Internal RAM
address(HEX)
SBUF 99
SP 81
TMOD 89
TCON 88
TL0 8A
TL1 8B
TH0 8C
TH1 8D
PC Not available
IR Not available
Memory mapped i/o’s i/o mapped i/o’s
From the available of
memory few address are
reserved for i/o’s
The instructions which is
used to store data into
memory that same
instruction can be used for i/o
operation
Eg.8051,ARM7 etc…
Memory address are
different and i/o address are
different
The separate instructions
are available for memory
operation and i/o operation
Eg.8085,8086 etc…
Addressing modes:
the addressing modes are nothing but CPU in which deals with the information
1)Immediate address mode
2)Register address mode
3)Direct address mode
4)Indirect address mode
5)Indexed address mode
Instructions set:
PUSH and POP opcodes
PUSH address
POP address
This PUSH & POP operations possible only in internal RAM
Stack operation is indirect operation
P)How to debug PUSH & POP instruction
CSEG AT 0H
MOV 05H,#’A’
MOV 07H,#’B’
PUSH 05H
PUSH 07H
POP 05H
POP 07H
END

Weitere ähnliche Inhalte

Was ist angesagt?

Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples Dr.YNM
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6Xv Kalairajan
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Sadiq Rahim
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386Abinaya B
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interfaceAbhishek Choksi
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorATTO RATHORE
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorVikas Gupta
 
Pin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorPin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorRaunaq Sahni
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 

Was ist angesagt? (20)

Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
8086
80868086
8086
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware
 
8086
80868086
8086
 
8251 USART
8251 USART8251 USART
8251 USART
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
8086 modes
8086 modes8086 modes
8086 modes
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6X
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386
 
Intel 80486 Microprocessor
Intel 80486 MicroprocessorIntel 80486 Microprocessor
Intel 80486 Microprocessor
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interface
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
Pin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorPin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX Microprocessor
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 

Andere mochten auch (20)

8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Android
AndroidAndroid
Android
 
Thunderbolt
ThunderboltThunderbolt
Thunderbolt
 
Practical Religion Chap 6 The Lord's Supper
Practical Religion Chap 6 The Lord's SupperPractical Religion Chap 6 The Lord's Supper
Practical Religion Chap 6 The Lord's Supper
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 ram org
8051 ram org8051 ram org
8051 ram org
 
Architecture of tms320 f2812
Architecture of tms320 f2812Architecture of tms320 f2812
Architecture of tms320 f2812
 
Dsp lab seminar
Dsp lab seminarDsp lab seminar
Dsp lab seminar
 
Data base security and injection
Data base security and injectionData base security and injection
Data base security and injection
 
Basics of electronics
Basics of electronicsBasics of electronics
Basics of electronics
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
 
Arithmatic pipline
Arithmatic piplineArithmatic pipline
Arithmatic pipline
 
Floating point units
Floating point unitsFloating point units
Floating point units
 
Pointers in C
Pointers in CPointers in C
Pointers in C
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
C Pointers
C PointersC Pointers
C Pointers
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 

Ähnlich wie 8051 presentation

8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller918007165995
 
8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.pptJamesAlpha3
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontrollerSHILPA Sillobhargav
 
Unit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesUnit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesPrabhu Mali
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051ASHISH RAJ
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentseceprinter6
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.pptAakashRawat35
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerSudhanshu Janwadkar
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerRAHUL RANJAN
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01cairo university
 

Ähnlich wie 8051 presentation (20)

8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 
8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt8086_architecture MMC PPT.ppt
8086_architecture MMC PPT.ppt
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
 
89s52 2
89s52 289s52 2
89s52 2
 
Unit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesUnit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notes
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051
 
8085 intro
8085 intro8085 intro
8085 intro
 
Micro 8051
Micro 8051Micro 8051
Micro 8051
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.ppt
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
 
Micro controller
Micro controllerMicro controller
Micro controller
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
 
002079
002079002079
002079
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
 

Kürzlich hochgeladen

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 

Kürzlich hochgeladen (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

8051 presentation

  • 1. 8051 presentation Some basic points: It is 8bit controller Working frequency of microcontroller upto 16MHz Two types of memory in microcontroller 1)RAM 2)ROM(flash memory) Flash memory size will be less i.e 4K Small operating systems can run on microcontroller eg.RTOS is small size operating system Application to application RTOS size can change i.e 4k to 4GB
  • 2. RAW CODING: (firmware or bare metal code) without help of O.S we can control the hardware. there are so many microcontrollers are their they were using RAW coding eg. advanced virtual risc (AVR) periferal interface controller(PIC) advanced risc machine(ARM) There are three layers in O.S USER SPACE (application space) KERNEL SPACE BOOT SUPPORT PACKAGES Purpose of flash memory is to store the program like OTP chip Designer will never give a permission to write in flash memory EEPROM it is the permanent memory R/W data in memory EEPROM is electrically erasable
  • 3. Every microcontroller have inbuilt CPU, flash , RAM Flash memory and RAM is mandatory MICROPROCESSOR: It is the general purpose CPU without on chip memory CPU components are  ALU REGISTERS TIMERS AND CONTROL UNIT BUSES INTERRUPT CONTROL LOGIC INTRUCTION AND DECODE UNIT
  • 4. 8085 (8BIT MICROPROCESSOR) 8bits 16bits 8086 (16BIT MICROPROCESSOR) 16bits 20bits 8051 (8BIT Microcontroller) 8bits 16bits 8088 (16BIT MICROPROCESSOR) 8bits 20bits DATA BUS ADDRESS BUS ALU: It performs the arithmetic and logical operations
  • 5. Registers: registers are faster and local storage memory of CPU Mov Acc,data //less time Mov addr,data //more time Accumulator called as varsatile register because it is used in many Stack pointer is initialize the default values Two types of stack 1) up growing stack 2) down growing stack Stack operations: PUSH->insert elements in to the stack POP->retrieving elements from the stack For push operation stack pointer is incrementing then it is up growing stack For push operation if stack pointer is decrementing it is down growing stack In up growing stack first pop operation will retrieve the data and decrement one stack pointer
  • 6. Eg. 8086 stack is down growing 8051 is up growing Program counter: It points to next instruction to be executed in both microcontroller and microprocessor Every instruction have different unique opcode CPU operations Fetch Decode Execute Program counter always point to zero, zero opcode reserve for NO operation Buses: Three types of buses 1)data bus 2)address bus 3)control bus Buses are group of lines which can transfer data or addresses
  • 7. Data bus is bidirectional Address bus is unidirectional Control bus can be uni or bidirectional For every internal activity of cpu, cpu needs clock pulses and clock pulses are nothing but electrical signals i.e 0’s & 1’s Machine cycle: It is group of clock pulses The time required to fetch +decode+execute the instruction called machine cycle 1 m/c of 8051==12clock pulses
  • 8. Instruction decoding unit: Every instruction has unique opcode If processor supports 16 instructions then it has 16 opcodes Two instructions with same opcodes not present in processor It is a part of CPU If processor supports more number of instructions then IDU size is more CPU design policies: 1)Based on instructions set 2)Based on memory organization 1)Based on instruction set: CISC complex instruction set computing RISC reduced instrucion set computing
  • 9. CISC RISC It supports more number of instructions IDU size is big Power consumption is more Heat dissipation is more Compiler complexity is less It supports multiclock cycle instructions Supports less number of registers Eg.8051 cpu, 8085,8086 etc… It supports less number of instructions IDU size is small Power consumption is less Heat dissipation is less Compiler complexity is more Mostly single clock cycled instruction More number of registers Eg.ARM,CPU,AVR,PIC etc…
  • 10. Based on memory organization: 1)Harvard architecture 2)Von neumann architecture Harvard architecture have separate memory for both data and program Eg.8051, ARM9, AVR,PIC etc… Von neumann architecture have single memory for both data and program
  • 12. Features of 8051: Employs CISC Harvard architecture 8bit ALU 8bit controller 8051 available in 40pin DIP(dual in line package) 4k on chip ROM/flash memory It has 128bytes of USER RAM Another 128bytes of RAM is reserved for sfr”s Four i/o ports are available Two 16bits timers/counters peripherals are available It has full duplex UART peripheral
  • 13.  It supports 6 interrupt sources one is non maskable interrupt five is maskable interrupt  It have on-chip clock oscillator requires external crystal It supports upto 60kb of external flash memory Address bus size-16bits(A0 to A15) data bus-8bits(D0 to D7)
  • 14.
  • 15. 8051’s memory structures: Whenever we want to design microcontroller these following four mandatory circuits are there 1)Reset 2)Crystal 3)PSU 4)Circuit to download into microcontroller
  • 16. Name Internal RAM address(HEX) A E0 B FO DPH 83 DPL 82 IE A8 IP B8 P0 80 P1 90 P2 A0 P3 B0 PCON 87 PSW D0 SCON 98 Special function registers:
  • 17. Name Internal RAM address(HEX) SBUF 99 SP 81 TMOD 89 TCON 88 TL0 8A TL1 8B TH0 8C TH1 8D PC Not available IR Not available
  • 18. Memory mapped i/o’s i/o mapped i/o’s From the available of memory few address are reserved for i/o’s The instructions which is used to store data into memory that same instruction can be used for i/o operation Eg.8051,ARM7 etc… Memory address are different and i/o address are different The separate instructions are available for memory operation and i/o operation Eg.8085,8086 etc…
  • 19. Addressing modes: the addressing modes are nothing but CPU in which deals with the information 1)Immediate address mode 2)Register address mode 3)Direct address mode 4)Indirect address mode 5)Indexed address mode
  • 20. Instructions set: PUSH and POP opcodes PUSH address POP address This PUSH & POP operations possible only in internal RAM Stack operation is indirect operation P)How to debug PUSH & POP instruction CSEG AT 0H MOV 05H,#’A’ MOV 07H,#’B’ PUSH 05H PUSH 07H POP 05H POP 07H END