SlideShare a Scribd company logo
1 of 22
Microcontroller
 On-chip computer
 Micro-Processor is a computer’s CPU
 To make a complete computer, following components have to be
 added:
1. RAM
2. ROM
3. I/O devices
4.Clock generator
5. Interrupt controller
 Micro-controller contains all these components along with CPU in a
single chip.
 Example: Mobile Phone, Television Remote, Smart DVD players, etc.
Features of Microcontroller
 Compact than microprocessor system.
 Fixed amount of Internal RAM and ROM memory
 Suitable for Special purpose applications.
 Mostly used for only one task/application.
 Program for the task is burned into ROM.
 Low Power consumption
 Micro-controller based system is cheaper than microprocessor.
Micro-Processor Micro -controller
CPU on a single integrated circuit (IC). Has a CPU, RAM, ROM, I/O devices, etc.
General purpose systems Used in automatically controlled devices.
Computational capacity of microprocessor is very high. Less computational capacity
Can perform numerous tasks. Can perform single or very few tasks.
The overall cost of a system built using a microprocessor is
high. This is because of the requirement of external
components.
Cost of a system built using a microcontroller is less as
all the components are readily available.
Power consumption and dissipation is high because of the
external devices.
Power consumption is less.
The clock frequency is very high usually in the order of GHz. Clock frequency is less usually in the order of MHz.
Have few bit manipulation instructions Bit manipulation is powerful and widely used feature
in microcontrollers.
Generally microprocessors are not used in real time systems as
they are severely dependent on several other components.
Microcontrollers are used to handle real time tasks as
they are single programmed, self sufficient and task
oriented devices.
8051
 8 bit Micro-controller.
 CPU of 8051 can access only 8 bit at a time.
 Data longer than 8 bit have to be broken down into 8 bit pieces.
 8 bit data bus
 8 bit microcontroller means 8 bit data can travel on the data bus
 16 bit address bus. Can address 64KB
 4 I/O ports, each ports are 8 bits wide.
 IC contains 40 pins
 8051 is based on harvard architecture
 Separate Code and data memory address space.
 Can use same memory address for code(ROM) and data (RAM)
Internal architecture of 8051
8051 CPU
 CPU contains two math registers
 A- Accumulators.
 B –used for Multiplication and division.
 Accessed by their name or address E0 and F0 respectively.
 A and B are both byte and bit addressable registers.
 Each bit in the register can be addressed individually.
PSW
ROM and PC
 ROM contains code.
 Internal ROM address ranges from 0000 to 0FFF
 16 bit register PC holds the address of next instruction in ROM
 PC automatically increments or updated.
 Address range above 0FFFH address external ROM.
 Code byte can also be exclusively fetched from external ROM
 By setting the EA pin in the processor.
 PC is the only register which does not have internal address.
DPTR
 16 bit register.
 Contains 2 8-bit register DPL and DPH
 Used for storing 16bit values
 Used to access external code memory or external data memory.
MOV DPTR, #data16
; setup DPTR with 16bit ext address
MOVX A, @DPTR
; copy mem[DPTR] to A
 DPTR is useful for string operations and Look-Up-Table (LUT)
operations.
RAM
 128 bytes of RAM are used to store data.
 Address range from 00 to 7F.
 RAM contains
 1. 4 register banks : 00 to 1F
 2.Bit addressable memory : 20 to 2F ( 00 to 7F)
 3. General purpose memory area : 30 to 7F
 Each register bank contain 8 registers.
 R0, R1,R2,R3,…R7
Register Banks
 There are four register bank in the RAM 00 to 1F memory are.
 RAM 32 bytes are allocated for these register banks.
 RAM address range for register banks are:
 B0 : 00 to 07
 B1: 08 to 0F
 B2: 10 to 17
 B3: 18 to 1F
 In a program we can access only one register bank at a time.
 By default R0,R1,…in program are corresponding to register Bank 0.
 To select other register bank, PSW 3rd and 4th bit have to set accordingly.
Stack Pointer
 8 bit register.
 Stack area is in internal RAM
 Stack grows upwards (from low memory to high memory).
 During PUSH, first SP is incremented and then copy the data.
 In the POP operation, initially copy the data and then decrement the SP.
 On power-up, SP points to 07H.
 Register banks 2,3,4 (08H to 1FH) form the default stack area.
 Bit addressable area 20 to 2F must not be used for stack.
 Stack can be relocated by setting SP to the upper memory area in 30H to 7FH.
 mov SP, #30H
Special Function Registers
 Four 8 bit I/O port registers : P0,P1,P2,P3
 Two 16 bit Timer register T0 and T1
 Each consist of two 8 bit registers TL0 ,TH0 and TL1, TH1
 One 8 bit Timer/counter control register TCON
 One 8 bit Timer/counter mode control register TMON
 One 8 bit Serial port control register SCON
 One 8 bit Serial data buffer register SBUF
 One 8 bit Interrupt priority register IP
 One 8 bit Interrupt Enable control register IE
 One 8 bit Power control register.
Pin Diagram
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
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)
 These 2 pins provide external clock using a quartz crystal
oscillator by inverse piezo- electric effect.
Microcontroller1

More Related Content

What's hot

8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerJai Sudhan
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11gajani121
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontrollerSHILPA Sillobhargav
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijayVijay Kumar
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
Block diagram of msp430x5xx
Block diagram of msp430x5xxBlock diagram of msp430x5xx
Block diagram of msp430x5xxRAMYASREEKUPPALA
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086Waleed Khan
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1haymanotyehuala
 
Assembly Language
Assembly LanguageAssembly Language
Assembly LanguageVijay Kumar
 
The microprocessor and it's architecture
The microprocessor and it's architectureThe microprocessor and it's architecture
The microprocessor and it's architecturesamaa ali
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureJamia Hamdard
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessorsobhadevi
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsmanishpatel_79
 
microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)jhcid
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 

What's hot (20)

8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8051 memory
8051 memory8051 memory
8051 memory
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Block diagram of msp430x5xx
Block diagram of msp430x5xxBlock diagram of msp430x5xx
Block diagram of msp430x5xx
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
The microprocessor and it's architecture
The microprocessor and it's architectureThe microprocessor and it's architecture
The microprocessor and it's architecture
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 

Similar to Microcontroller1

8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptxARYAKUMARNIRAV
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller918007165995
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 MicrocontrollersArti Parab Academics
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerSudhanshu Janwadkar
 
Advanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxAdvanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxShanDimantha1
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Embedded systems ppt iii
Embedded systems ppt iiiEmbedded systems ppt iii
Embedded systems ppt iiianishgoel
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
UNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxUNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxGowrishankar C
 

Similar to Microcontroller1 (20)

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
 
8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx8051 Microcontroller_module_4.1.pptx
8051 Microcontroller_module_4.1.pptx
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
Advanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxAdvanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptx
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Embedded systems ppt iii
Embedded systems ppt iiiEmbedded systems ppt iii
Embedded systems ppt iii
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
 
MICROCONTROLLER - INTEL 8051
MICROCONTROLLER - INTEL 8051MICROCONTROLLER - INTEL 8051
MICROCONTROLLER - INTEL 8051
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Unit 4.pptx
Unit 4.pptxUnit 4.pptx
Unit 4.pptx
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
89s52 2
89s52 289s52 2
89s52 2
 
8051.ppt
8051.ppt8051.ppt
8051.ppt
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
UNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxUNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptx
 

Recently uploaded

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 

Recently uploaded (20)

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 

Microcontroller1

  • 1.
  • 2. Microcontroller  On-chip computer  Micro-Processor is a computer’s CPU  To make a complete computer, following components have to be  added: 1. RAM 2. ROM 3. I/O devices 4.Clock generator 5. Interrupt controller  Micro-controller contains all these components along with CPU in a single chip.  Example: Mobile Phone, Television Remote, Smart DVD players, etc.
  • 3.
  • 4. Features of Microcontroller  Compact than microprocessor system.  Fixed amount of Internal RAM and ROM memory  Suitable for Special purpose applications.  Mostly used for only one task/application.  Program for the task is burned into ROM.  Low Power consumption  Micro-controller based system is cheaper than microprocessor.
  • 5. Micro-Processor Micro -controller CPU on a single integrated circuit (IC). Has a CPU, RAM, ROM, I/O devices, etc. General purpose systems Used in automatically controlled devices. Computational capacity of microprocessor is very high. Less computational capacity Can perform numerous tasks. Can perform single or very few tasks. The overall cost of a system built using a microprocessor is high. This is because of the requirement of external components. Cost of a system built using a microcontroller is less as all the components are readily available. Power consumption and dissipation is high because of the external devices. Power consumption is less. The clock frequency is very high usually in the order of GHz. Clock frequency is less usually in the order of MHz. Have few bit manipulation instructions Bit manipulation is powerful and widely used feature in microcontrollers. Generally microprocessors are not used in real time systems as they are severely dependent on several other components. Microcontrollers are used to handle real time tasks as they are single programmed, self sufficient and task oriented devices.
  • 6.
  • 7. 8051  8 bit Micro-controller.  CPU of 8051 can access only 8 bit at a time.  Data longer than 8 bit have to be broken down into 8 bit pieces.  8 bit data bus  8 bit microcontroller means 8 bit data can travel on the data bus  16 bit address bus. Can address 64KB  4 I/O ports, each ports are 8 bits wide.  IC contains 40 pins  8051 is based on harvard architecture  Separate Code and data memory address space.  Can use same memory address for code(ROM) and data (RAM)
  • 9.
  • 10.
  • 11. 8051 CPU  CPU contains two math registers  A- Accumulators.  B –used for Multiplication and division.  Accessed by their name or address E0 and F0 respectively.  A and B are both byte and bit addressable registers.  Each bit in the register can be addressed individually.
  • 12. PSW
  • 13. ROM and PC  ROM contains code.  Internal ROM address ranges from 0000 to 0FFF  16 bit register PC holds the address of next instruction in ROM  PC automatically increments or updated.  Address range above 0FFFH address external ROM.  Code byte can also be exclusively fetched from external ROM  By setting the EA pin in the processor.  PC is the only register which does not have internal address.
  • 14. DPTR  16 bit register.  Contains 2 8-bit register DPL and DPH  Used for storing 16bit values  Used to access external code memory or external data memory. MOV DPTR, #data16 ; setup DPTR with 16bit ext address MOVX A, @DPTR ; copy mem[DPTR] to A  DPTR is useful for string operations and Look-Up-Table (LUT) operations.
  • 15. RAM  128 bytes of RAM are used to store data.  Address range from 00 to 7F.  RAM contains  1. 4 register banks : 00 to 1F  2.Bit addressable memory : 20 to 2F ( 00 to 7F)  3. General purpose memory area : 30 to 7F  Each register bank contain 8 registers.  R0, R1,R2,R3,…R7
  • 16. Register Banks  There are four register bank in the RAM 00 to 1F memory are.  RAM 32 bytes are allocated for these register banks.  RAM address range for register banks are:  B0 : 00 to 07  B1: 08 to 0F  B2: 10 to 17  B3: 18 to 1F  In a program we can access only one register bank at a time.  By default R0,R1,…in program are corresponding to register Bank 0.  To select other register bank, PSW 3rd and 4th bit have to set accordingly.
  • 17. Stack Pointer  8 bit register.  Stack area is in internal RAM  Stack grows upwards (from low memory to high memory).  During PUSH, first SP is incremented and then copy the data.  In the POP operation, initially copy the data and then decrement the SP.  On power-up, SP points to 07H.  Register banks 2,3,4 (08H to 1FH) form the default stack area.  Bit addressable area 20 to 2F must not be used for stack.  Stack can be relocated by setting SP to the upper memory area in 30H to 7FH.  mov SP, #30H
  • 18. Special Function Registers  Four 8 bit I/O port registers : P0,P1,P2,P3  Two 16 bit Timer register T0 and T1  Each consist of two 8 bit registers TL0 ,TH0 and TL1, TH1  One 8 bit Timer/counter control register TCON  One 8 bit Timer/counter mode control register TMON  One 8 bit Serial port control register SCON  One 8 bit Serial data buffer register SBUF  One 8 bit Interrupt priority register IP  One 8 bit Interrupt Enable control register IE  One 8 bit Power control register.
  • 19.
  • 21. 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)  These 2 pins provide external clock using a quartz crystal oscillator by inverse piezo- electric effect.