SlideShare ist ein Scribd-Unternehmen logo
1 von 45
MICROCONTROLLERS
Microcontroller is considered as the backbone
of Embedded Systems
"It can think“
 Embedded Computer-programmable
 Can control all I/O pins
 Perform multiple functions
 A microcontroller is an integrated circuit (IC) that can be
programmed to perform a set of functions to control a
collection of electronic devices.
 A self-contained system in which a processor, support,
memory, and input/output (I/O) are all contained in a single
package.
 Being programmable is what makes the microcontroller
unique.
⦁ From left to right: PIC 12F508, PIC 16F84A, PIC 16C72,
Motorola 68HC05B16, PIC 16F877, Motorola 68000
1 – ACCORDING TO BITS
4-BIT MICROCONTROLLERS
 ALU performs arithmetic and logical operations on a nibble
(4-bits) at an instruction.
 Internal bus width of 4-bit.
 Small size, minimum pin count and low cost controllers.
 Low power consumption and used for low end applications
like LED & LCD display drivers, portable battery chargers.
 Examples: Renasa M34501 256 and A
TAM862 series from
ATMEL.
8-BIT MICROCONTROLLER
 ALU performs arithmetic and logical operations on a byte
(8-bits) at an instruction.
 Internal bus width of 8-bit.
 Examples: Intel 8051 family
family.
and Motorola MC68HC11
16-BIT MICROCONTROLLER
 ALU performs arithmetic and logical operations on a word
(16-bits) at an instruction.
 Internal bus width of 16-bit microcontroller is of 16-bit.
 Enhanced performance, computing capability and
precision as compared to the 8-bit microcontrollers.
greater
 Examples: Intel 8096 family, Motorola MC68HC12 and
MC68332 families.
32-BIT MICROCONTROLLER
 ALU performs arithmetic and logical operations on a double
word (32-bits) at an instruction.
 Internal bus width of 32-bit.
 Much more enhanced performance, computing capability with
greater precision as compared to 16-bit microcontrollers.
 Examples: Intel 80960 family, Motorola M683xx and
Intel/Atmel 251 family.
2 -ACCORDING TO MEMORY/DEVICES
EMBEDDED MICROCONTROLLERS
 An embedded system has a microcontroller unit that has all the
functional blocks (including program as well as data memory)
available on a the same chip.
 Example: 8051 having Program & Data Memory, I/O Ports,
Serial Communication, Counters and Timers and Interrupt
Control logic on the chip.
EXTERNAL MEMORY MICROCONTROLLERS
 An external system has a microcontroller unit that does not
have all the functional blocks available on a chip.
 All or part of the memory units are externally interfaced using
an interfacing circuit called the glue circuit.
 Example: 8031 has no program memory on the chip.
3 -ACCODING TO INSTRUCTION SET
CISC (COMPLEX INSTRUCTION SET COMPUTER)
ARCHITECTURE MICROCONTROLLERS
⦁ Has an instruction set that supports many addressing modes for
the arithmetic and logical instructions, data transfer and
memory accesses instructions.
⦁ Many of the instructions are macro like.
⦁ Allows the programmer to use one instruction in place of
many simpler instructions.
⦁ Example: Intel 8096 family.
RISC (REDUCED INSTRUCTION SET COMPUTER)
ARCHITECTURE MICROCONTROLLERS
⦁ Contains an instruction set that supports fewer addressing
modes for the arithmetic and logical instructions and for data
transfer instructions.
⦁ Allows simultaneous access of program and data.
⦁ Instruction pipelining increases execution speed
⦁ Allow each instruction to operate on any register or use any
addressing mode.
⦁ Smaller chip and pin count.
⦁ Very low power consumption.
4 -ACCORDING TO MEMORYARCHITECTURE
⦁ The architectures of microcontrollers differ in the way data and
programs are stored and accessed.
1. VON-NEUMAN /PRINCETON ARCHITECTURE
 Single data bus that is used to fetch both instructions and data.
 Program instructions and data are stored in a common main
memory.
 When such a controller addresses main memory, it first fetches
an instruction, and then it fetches the data to support the
instruction.
 Simplifies the microcontroller design because only one
memory is accessed.
 The weakness is that two separate fetches can slow up the
controller’s operation.
 Example: Motorola 68HC11.
2. HARV
ARD ARCHITECTURE
 Separate data bus and an instruction bus.
 Execution occur in parallel.
 Much faster execution than Von-Neuman architecture.
 Design complexity.
 Example: intel MCS-51 family and PIC microcontrollers.
Central Processing Unit (CPU)
⦁ The central processing unit processes the program. It executes the
instructions stored in the program memory pointed to by the
program counter in synchronization with the clock signal.
ALU
⦁ The arithmetic/logic unit (ALU) performs mathematical and logical
operations on data.
Oscillator
⦁ A complex digital device that generates steady pulse rate required
for timing. All of the separate functions are controlled by one
central timing system. The timing pulse provides the basis for
proper sequence of all the separate sections of the microcontroller
chip.
Read Only Memory (ROM)
ROM holds the program instructions and the constant data.
Microcontrollers use one or more of the following memory types
for this purpose:
⦁ ROM (mask-programmed ROM),
⦁ PROM (one-time programmable ROM, which is not field
programmable),
⦁ EPROM (field programmable and usually UV erasable),
⦁ EEPROM (field programmable, electrically erasable,
erasable) and flash (similar to EEPROM technology).
⦁ Microcontrollers can have 4K, 8K and 16K, etc. of ROM
byte
Random Access Memory (RAM)
⦁ is used to hold intermediate results and other temporary data
during the execution of the program. Typically, microcontrollers
have a few hundreds of bytes of RAM.
Special-Function Registers
⦁ control various functions of a microcontroller. These are divided
into two groups:
⦁ Registers wired into the CPU
- Do not necessarily form part of addressable memory.
- Used to control program flow and arithmetic functions.
- Examples, status register, program counter, stack
pointer, etc.
Registers
⦁ Register is used
manipulated.
to hold the contents of data being
⦁ Registers required by peripheral components
- The contents of these registers include set a timer or enable
serial communication.
- Examples, a program counter, stack pointer, RAM address
register, program address register and PC incrementer.
Peripheral Components
⦁ The analogue-to-digital converter - provides an interface
between the microcontroller and the sensors that produce analogue
electrical equivalents of the actual physical parameters to be
controlled.
⦁ The digital-to-analogue converter - provides an interface
between the microcontroller and the actuators that provide the
control function.
⦁ I/O ports - provide an interface between the microcontroller and
the peripheral I/O devices such as the keyboard, display, etc.
⦁ Counters/timers - are used to keep time and/or measure the time
interval between events, count the number of events and generate
baud rates for the serial ports.
Watchdog timer
⦁ A specialized program found as part of the microcontroller
designed to prevent the microcontroller from halting or “locking
up” because of a user-written program since the instructions are
processed step-by-step.
⦁ Uses a routine that is based on timing. If a program has not been
completed or repeated as a loop within a certain amount of time,
the watchdog timer issues a reset command.
⦁ Asystem reset sets all the register values to zero.
⦁ The reset feature allows the controller to recover from the crash.
It releases the program and sets the controller to start over again.
Stack Pointer and Program Counter
⦁ Stack pointer - keeps track of the last stack location used
while the processor is busy manipulating data values,
checking ports, or checking interrupts.
⦁ Program counter - is used to hold the address of the
instruction to be executed next.
Buses
⦁ Bus represents a physical connection used to carry a signal
from one point to another inside a microcontroller. The signal
carried by a bus may represent address, data, control signal,
or power.
MODULE
⦁ When a microcontroller is mounted on a circuit board with
other components function as a single unit, is referred as a
module or a microcontroller board.
⦁ A microcontroller module typically consists of microcontroller,
a power source, an interface for connecting to a programming
device, I/O ports, and additional memory.
⦁ A power source - powers the microcontroller and any
accompanying components located on the printed circuit board.
⦁ An interface - communicate with the controller.
⦁ A set of input/output (I/O) ports - send and receive signals
from the devices the microcontroller is designed to control.
⦁ I/O ports when programmed as an output pin, each pin can
output digital signals. When programmed as an input pin, each
pin can receive digital signals.
⦁ Digital-to-analog and analog-to-digital converters change the
digital pulses into analog signals.
⦁ The microcontroller consists of thousands of digital circuits that
are combined into areas to provide specific functions.
⦁ The parts of the microcontroller are used to save data and
programs, perform math and logic functions, and generate timing
signals.
⦁ The different areas are connected by a bus system. The bus
system contains tiny parallel circuits that carry the digital pulse
patterns from section to section.
⦁ The ROM stores the program required for the microcontroller to
function and controls how the chip components operate and how
data and instructions flow through the chip.
⦁ RAM stores programs and data temporarily.
⦁ Ports and registers are special memory locations dedicated to a
specific function such as a hardware location or a place to
manipulate data.
ADVANTAGEOUS FEATURES
 Easy to use and Programmable.
Reusable -Ability to reprogram using Flash, EEPROM or
EPROM.
 Flexibility and dependable.
 Design and Simulation.
 Energy efficient, small and cost effective.
 Ports multifunctionality.
 High Integration and can fit inside other devices.
 Easy upgrade.
AREAS OF MICROCONTROLLERAPPLICATION
 Home monitoring system.
 Automotive applications such as robotics.
 Appliances such as microwave oven, refrigerators, television
and VCRs, stereos.
 Automobiles in engine control, diagnostics, climate control.
 Environmental control in greenhouse, temperature, humidity,
factory, home.
 Instrumentation.
 Aerospace.
 Throttle – a device that control the flow of fuel or power
to an engine.
CRITERIA OF CHOOSINGAMICROCONTROLLER
1 - Meeting the computing needs of the task at hand efficiently and
cost effectively:
⦁ Speed
⦁ Packaging
⦁ Power consumption
⦁ The amount of RAM and ROM on chip
⦁ The number of I/O pins and the timer on chip
⦁ How easy to upgrade to higher performance or lower power-
consumption versions
⦁ Cost per unit
2-Availability of software development tools, such as compilers,
assemblers, and debuggers.
3 - Wide availability and reliable sources of the microcontroller
⦁ Example: The 8051 family has the largest number of diversified
(multiple source) suppliers
⦁ Intel (original)
⦁ Atmel
⦁ Philips/Signetics
⦁ AMD
⦁ Infineon (formerly Siemens)
⦁ Matra
⦁ Dallas Semiconductor/Maxim
Microcontrollers Compilers
(i.e. MPLAB, MikroC, Keil etc.) are windows-based software, used to write &
compile programming codes for Microcontrollers.
Microcontrollers' manufacturers have designed their own ,which are used for
writing & compiling codes. These compilers generate .HEX file(machine code),
which is then uploaded in the ROM of Microcontrollers by another hardware named
as Microcontrollers' Programmer/Burner(i.e. PICKit3).
Revise
• A Microcontroller(also called Embedded Computer) is a mini(but powerful)
computer, embedded in a compact IC(Integrated Circuit) chip, contains on-chip
processor(one or more), memory(i.e. RAM, ROM, EEPROM etc.) &
programmable I/O Ports(used for multiple functions).
• Microcontroller was first designed by Michael Cochran and Gary Boone. (Love
these guys :D )
• C and assembly languages are used for programming a microcontroller but the
HEX File is in machine languge which actually gets uploaded in Microcontrollers.
END OF PRESENTAION
THANK YOU
LECT 2.pptx

Weitere ähnliche Inhalte

Ähnlich wie LECT 2.pptx

INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdfirfanakram32
 
Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptxLofi19
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesManikanteswar Madala
 
Download
DownloadDownload
Downloadjaihooo
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.pptsiminkhan
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemRkrishna Mishra
 
Micro controller and dsp processor
Micro controller and dsp processorMicro controller and dsp processor
Micro controller and dsp processorShubhamMishra485
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollerselprocus
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsmanishpatel_79
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorAnuja Gunale
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
introduction of microprocessor
introduction of microprocessorintroduction of microprocessor
introduction of microprocessorReetika Singh
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded Systemrmkceteee
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Ramadan Ramadan
 

Ähnlich wie LECT 2.pptx (20)

INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdf
 
Micro controller
Micro controllerMicro controller
Micro controller
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Download
DownloadDownload
Download
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded System
 
Micro controller and dsp processor
Micro controller and dsp processorMicro controller and dsp processor
Micro controller and dsp processor
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
Micro controller
Micro controllerMicro controller
Micro controller
 
M&i(lec#01)
M&i(lec#01)M&i(lec#01)
M&i(lec#01)
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
introduction of microprocessor
introduction of microprocessorintroduction of microprocessor
introduction of microprocessor
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)
 

Mehr von SangeetaTripathi8

lecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxlecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxSangeetaTripathi8
 
lecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxlecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxSangeetaTripathi8
 
chapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxchapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxSangeetaTripathi8
 
softcorecomputing-121025042248-phpapp02.pptx
softcorecomputing-121025042248-phpapp02.pptxsoftcorecomputing-121025042248-phpapp02.pptx
softcorecomputing-121025042248-phpapp02.pptxSangeetaTripathi8
 
Dr. Sangeeta PPT fro STTP 18 Jan.pptx
Dr. Sangeeta PPT fro STTP 18 Jan.pptxDr. Sangeeta PPT fro STTP 18 Jan.pptx
Dr. Sangeeta PPT fro STTP 18 Jan.pptxSangeetaTripathi8
 
Lecture1-Introduction-Jan18-2021.pptx
Lecture1-Introduction-Jan18-2021.pptxLecture1-Introduction-Jan18-2021.pptx
Lecture1-Introduction-Jan18-2021.pptxSangeetaTripathi8
 
10-Hot-Data-Analytics-Tre-8904178.ppsx
10-Hot-Data-Analytics-Tre-8904178.ppsx10-Hot-Data-Analytics-Tre-8904178.ppsx
10-Hot-Data-Analytics-Tre-8904178.ppsxSangeetaTripathi8
 
Presentation on Transformer.pptx
Presentation on Transformer.pptxPresentation on Transformer.pptx
Presentation on Transformer.pptxSangeetaTripathi8
 

Mehr von SangeetaTripathi8 (16)

lecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxlecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptx
 
lecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptxlecture05picioportprogramming-190107152342.pptx
lecture05picioportprogramming-190107152342.pptx
 
chapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxchapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptx
 
softcorecomputing-121025042248-phpapp02.pptx
softcorecomputing-121025042248-phpapp02.pptxsoftcorecomputing-121025042248-phpapp02.pptx
softcorecomputing-121025042248-phpapp02.pptx
 
Dr. Sangeeta PPT fro STTP 18 Jan.pptx
Dr. Sangeeta PPT fro STTP 18 Jan.pptxDr. Sangeeta PPT fro STTP 18 Jan.pptx
Dr. Sangeeta PPT fro STTP 18 Jan.pptx
 
Lect 1 Into.pptx
Lect 1 Into.pptxLect 1 Into.pptx
Lect 1 Into.pptx
 
Ch5_MorrisMano.pptx
Ch5_MorrisMano.pptxCh5_MorrisMano.pptx
Ch5_MorrisMano.pptx
 
DC-circuit-theory.ppt
DC-circuit-theory.pptDC-circuit-theory.ppt
DC-circuit-theory.ppt
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
what_is_technology.ppt
what_is_technology.pptwhat_is_technology.ppt
what_is_technology.ppt
 
Magzine.pptx
Magzine.pptxMagzine.pptx
Magzine.pptx
 
Lecture1-Introduction-Jan18-2021.pptx
Lecture1-Introduction-Jan18-2021.pptxLecture1-Introduction-Jan18-2021.pptx
Lecture1-Introduction-Jan18-2021.pptx
 
10-Hot-Data-Analytics-Tre-8904178.ppsx
10-Hot-Data-Analytics-Tre-8904178.ppsx10-Hot-Data-Analytics-Tre-8904178.ppsx
10-Hot-Data-Analytics-Tre-8904178.ppsx
 
Presentation on Transformer.pptx
Presentation on Transformer.pptxPresentation on Transformer.pptx
Presentation on Transformer.pptx
 
Resonance ppt.ppt
Resonance ppt.pptResonance ppt.ppt
Resonance ppt.ppt
 
Chp 2 and 3.pptx
Chp 2 and 3.pptxChp 2 and 3.pptx
Chp 2 and 3.pptx
 

Kürzlich hochgeladen

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
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
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
 
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
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
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
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 

Kürzlich hochgeladen (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
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
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
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
 
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
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
(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
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
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
 
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 Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 

LECT 2.pptx

  • 1. MICROCONTROLLERS Microcontroller is considered as the backbone of Embedded Systems "It can think“  Embedded Computer-programmable  Can control all I/O pins  Perform multiple functions
  • 2.  A microcontroller is an integrated circuit (IC) that can be programmed to perform a set of functions to control a collection of electronic devices.  A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.  Being programmable is what makes the microcontroller unique.
  • 3. ⦁ From left to right: PIC 12F508, PIC 16F84A, PIC 16C72, Motorola 68HC05B16, PIC 16F877, Motorola 68000
  • 4.
  • 5.
  • 6. 1 – ACCORDING TO BITS 4-BIT MICROCONTROLLERS  ALU performs arithmetic and logical operations on a nibble (4-bits) at an instruction.  Internal bus width of 4-bit.  Small size, minimum pin count and low cost controllers.  Low power consumption and used for low end applications like LED & LCD display drivers, portable battery chargers.  Examples: Renasa M34501 256 and A TAM862 series from ATMEL.
  • 7. 8-BIT MICROCONTROLLER  ALU performs arithmetic and logical operations on a byte (8-bits) at an instruction.  Internal bus width of 8-bit.  Examples: Intel 8051 family family. and Motorola MC68HC11
  • 8. 16-BIT MICROCONTROLLER  ALU performs arithmetic and logical operations on a word (16-bits) at an instruction.  Internal bus width of 16-bit microcontroller is of 16-bit.  Enhanced performance, computing capability and precision as compared to the 8-bit microcontrollers. greater  Examples: Intel 8096 family, Motorola MC68HC12 and MC68332 families.
  • 9. 32-BIT MICROCONTROLLER  ALU performs arithmetic and logical operations on a double word (32-bits) at an instruction.  Internal bus width of 32-bit.  Much more enhanced performance, computing capability with greater precision as compared to 16-bit microcontrollers.  Examples: Intel 80960 family, Motorola M683xx and Intel/Atmel 251 family.
  • 10. 2 -ACCORDING TO MEMORY/DEVICES EMBEDDED MICROCONTROLLERS  An embedded system has a microcontroller unit that has all the functional blocks (including program as well as data memory) available on a the same chip.  Example: 8051 having Program & Data Memory, I/O Ports, Serial Communication, Counters and Timers and Interrupt Control logic on the chip.
  • 11.
  • 12. EXTERNAL MEMORY MICROCONTROLLERS  An external system has a microcontroller unit that does not have all the functional blocks available on a chip.  All or part of the memory units are externally interfaced using an interfacing circuit called the glue circuit.  Example: 8031 has no program memory on the chip.
  • 13.
  • 14. 3 -ACCODING TO INSTRUCTION SET CISC (COMPLEX INSTRUCTION SET COMPUTER) ARCHITECTURE MICROCONTROLLERS ⦁ Has an instruction set that supports many addressing modes for the arithmetic and logical instructions, data transfer and memory accesses instructions. ⦁ Many of the instructions are macro like. ⦁ Allows the programmer to use one instruction in place of many simpler instructions. ⦁ Example: Intel 8096 family.
  • 15. RISC (REDUCED INSTRUCTION SET COMPUTER) ARCHITECTURE MICROCONTROLLERS ⦁ Contains an instruction set that supports fewer addressing modes for the arithmetic and logical instructions and for data transfer instructions. ⦁ Allows simultaneous access of program and data. ⦁ Instruction pipelining increases execution speed ⦁ Allow each instruction to operate on any register or use any addressing mode. ⦁ Smaller chip and pin count. ⦁ Very low power consumption.
  • 16. 4 -ACCORDING TO MEMORYARCHITECTURE ⦁ The architectures of microcontrollers differ in the way data and programs are stored and accessed. 1. VON-NEUMAN /PRINCETON ARCHITECTURE  Single data bus that is used to fetch both instructions and data.  Program instructions and data are stored in a common main memory.  When such a controller addresses main memory, it first fetches an instruction, and then it fetches the data to support the instruction.
  • 17.  Simplifies the microcontroller design because only one memory is accessed.  The weakness is that two separate fetches can slow up the controller’s operation.  Example: Motorola 68HC11.
  • 18. 2. HARV ARD ARCHITECTURE  Separate data bus and an instruction bus.  Execution occur in parallel.  Much faster execution than Von-Neuman architecture.  Design complexity.  Example: intel MCS-51 family and PIC microcontrollers.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. Central Processing Unit (CPU) ⦁ The central processing unit processes the program. It executes the instructions stored in the program memory pointed to by the program counter in synchronization with the clock signal. ALU ⦁ The arithmetic/logic unit (ALU) performs mathematical and logical operations on data. Oscillator ⦁ A complex digital device that generates steady pulse rate required for timing. All of the separate functions are controlled by one central timing system. The timing pulse provides the basis for proper sequence of all the separate sections of the microcontroller chip.
  • 24. Read Only Memory (ROM) ROM holds the program instructions and the constant data. Microcontrollers use one or more of the following memory types for this purpose: ⦁ ROM (mask-programmed ROM), ⦁ PROM (one-time programmable ROM, which is not field programmable), ⦁ EPROM (field programmable and usually UV erasable), ⦁ EEPROM (field programmable, electrically erasable, erasable) and flash (similar to EEPROM technology). ⦁ Microcontrollers can have 4K, 8K and 16K, etc. of ROM byte
  • 25.
  • 26. Random Access Memory (RAM) ⦁ is used to hold intermediate results and other temporary data during the execution of the program. Typically, microcontrollers have a few hundreds of bytes of RAM. Special-Function Registers ⦁ control various functions of a microcontroller. These are divided into two groups: ⦁ Registers wired into the CPU - Do not necessarily form part of addressable memory. - Used to control program flow and arithmetic functions. - Examples, status register, program counter, stack pointer, etc.
  • 27. Registers ⦁ Register is used manipulated. to hold the contents of data being ⦁ Registers required by peripheral components - The contents of these registers include set a timer or enable serial communication. - Examples, a program counter, stack pointer, RAM address register, program address register and PC incrementer.
  • 28. Peripheral Components ⦁ The analogue-to-digital converter - provides an interface between the microcontroller and the sensors that produce analogue electrical equivalents of the actual physical parameters to be controlled. ⦁ The digital-to-analogue converter - provides an interface between the microcontroller and the actuators that provide the control function. ⦁ I/O ports - provide an interface between the microcontroller and the peripheral I/O devices such as the keyboard, display, etc. ⦁ Counters/timers - are used to keep time and/or measure the time interval between events, count the number of events and generate baud rates for the serial ports.
  • 29. Watchdog timer ⦁ A specialized program found as part of the microcontroller designed to prevent the microcontroller from halting or “locking up” because of a user-written program since the instructions are processed step-by-step. ⦁ Uses a routine that is based on timing. If a program has not been completed or repeated as a loop within a certain amount of time, the watchdog timer issues a reset command. ⦁ Asystem reset sets all the register values to zero. ⦁ The reset feature allows the controller to recover from the crash. It releases the program and sets the controller to start over again.
  • 30. Stack Pointer and Program Counter ⦁ Stack pointer - keeps track of the last stack location used while the processor is busy manipulating data values, checking ports, or checking interrupts. ⦁ Program counter - is used to hold the address of the instruction to be executed next. Buses ⦁ Bus represents a physical connection used to carry a signal from one point to another inside a microcontroller. The signal carried by a bus may represent address, data, control signal, or power.
  • 31. MODULE ⦁ When a microcontroller is mounted on a circuit board with other components function as a single unit, is referred as a module or a microcontroller board. ⦁ A microcontroller module typically consists of microcontroller, a power source, an interface for connecting to a programming device, I/O ports, and additional memory.
  • 32. ⦁ A power source - powers the microcontroller and any accompanying components located on the printed circuit board. ⦁ An interface - communicate with the controller. ⦁ A set of input/output (I/O) ports - send and receive signals from the devices the microcontroller is designed to control. ⦁ I/O ports when programmed as an output pin, each pin can output digital signals. When programmed as an input pin, each pin can receive digital signals. ⦁ Digital-to-analog and analog-to-digital converters change the digital pulses into analog signals.
  • 33.
  • 34.
  • 35. ⦁ The microcontroller consists of thousands of digital circuits that are combined into areas to provide specific functions. ⦁ The parts of the microcontroller are used to save data and programs, perform math and logic functions, and generate timing signals. ⦁ The different areas are connected by a bus system. The bus system contains tiny parallel circuits that carry the digital pulse patterns from section to section. ⦁ The ROM stores the program required for the microcontroller to function and controls how the chip components operate and how data and instructions flow through the chip. ⦁ RAM stores programs and data temporarily. ⦁ Ports and registers are special memory locations dedicated to a specific function such as a hardware location or a place to manipulate data.
  • 36. ADVANTAGEOUS FEATURES  Easy to use and Programmable. Reusable -Ability to reprogram using Flash, EEPROM or EPROM.  Flexibility and dependable.  Design and Simulation.  Energy efficient, small and cost effective.  Ports multifunctionality.  High Integration and can fit inside other devices.  Easy upgrade.
  • 37. AREAS OF MICROCONTROLLERAPPLICATION  Home monitoring system.  Automotive applications such as robotics.  Appliances such as microwave oven, refrigerators, television and VCRs, stereos.  Automobiles in engine control, diagnostics, climate control.  Environmental control in greenhouse, temperature, humidity, factory, home.  Instrumentation.  Aerospace.
  • 38.  Throttle – a device that control the flow of fuel or power to an engine.
  • 39.
  • 40. CRITERIA OF CHOOSINGAMICROCONTROLLER 1 - Meeting the computing needs of the task at hand efficiently and cost effectively: ⦁ Speed ⦁ Packaging ⦁ Power consumption ⦁ The amount of RAM and ROM on chip ⦁ The number of I/O pins and the timer on chip ⦁ How easy to upgrade to higher performance or lower power- consumption versions ⦁ Cost per unit
  • 41. 2-Availability of software development tools, such as compilers, assemblers, and debuggers. 3 - Wide availability and reliable sources of the microcontroller ⦁ Example: The 8051 family has the largest number of diversified (multiple source) suppliers ⦁ Intel (original) ⦁ Atmel ⦁ Philips/Signetics ⦁ AMD ⦁ Infineon (formerly Siemens) ⦁ Matra ⦁ Dallas Semiconductor/Maxim
  • 42. Microcontrollers Compilers (i.e. MPLAB, MikroC, Keil etc.) are windows-based software, used to write & compile programming codes for Microcontrollers. Microcontrollers' manufacturers have designed their own ,which are used for writing & compiling codes. These compilers generate .HEX file(machine code), which is then uploaded in the ROM of Microcontrollers by another hardware named as Microcontrollers' Programmer/Burner(i.e. PICKit3).
  • 43. Revise • A Microcontroller(also called Embedded Computer) is a mini(but powerful) computer, embedded in a compact IC(Integrated Circuit) chip, contains on-chip processor(one or more), memory(i.e. RAM, ROM, EEPROM etc.) & programmable I/O Ports(used for multiple functions). • Microcontroller was first designed by Michael Cochran and Gary Boone. (Love these guys :D ) • C and assembly languages are used for programming a microcontroller but the HEX File is in machine languge which actually gets uploaded in Microcontrollers.