SlideShare a Scribd company logo
What is a Microcontroller?
A microcontroller is a self-contained system with
peripherals, memory and a processor that can be used as
an embedded system. Most programmable
microcontrollers that are used today are embedded in
other consumer products or machinery including phones,
peripherals, automobiles and household appliances for
computer systems. Due to that, another name for a
microcontroller is "embedded controller." Some
embedded systems are more sophisticated, while others
have minimal requirements for memory and programming
length and a low software complexity. Input and output
devices include solenoids, LCD displays, relays, switches
and sensors for data like humidity, temperature or light
level, amongst others.
Pavithran Puthiyapurayil , Maldives National University 1
2
Microprocessor
• CPU is stand-alone, RAM,
ROM, I/O, timer are separate
• designer can decide on the
amount of ROM, RAM and
I/O ports.
• expensive
• versatility
• general-purpose
• High processing power
• High power consumption
• Instruction sets focus on
processing-intensive
operations
• Typically 32/64 – bit
• Typically deep pipeline (5-20
stages)
Microcontroller
• CPU, RAM, ROM, I/O and timer
are all on a single chip
• fixed amount of on-chip ROM,
RAM, I/O ports
• for applications in which cost,
power and space are critical
• single-purpose (control-oriented)
• Low processing power
• Low power consumption
• Bit-level operations
• Instruction sets focus on control
and bit-level operations
• Typically 8/16 bit
• Typically single-cycle/two-stage
pipeline
Microprocessor vs. Microcontroller
Pavithran Puthiyapurayil , Maldives
National University
3
Some Popular Microcontrollers…
• 8051
• Microchip Technology PIC
• Atmel AVR
• Texas Instruments MSP430 (16-bit)
Pavithran Puthiyapurayil , Maldives
National University
Microcontrollers
• Embedded Systems
– Operations managed behind the scenes by a
microcontroller
• Microcontroller (MCU)
– Integrated electronic computing device that
includes three major components on a single chip
• Microprocessor (MPU)
• Memory
• I/O (Input/Output) ports
4
Pavithran Puthiyapurayil , Maldives
National University
A microcontroller basically contains one
or more following components:
Central processing unit(CPU)
Random Access Memory)(RAM)
Read Only Memory(ROM)
Input/output ports.
Timers and Counters.
Interrupt Controls.
Analog to digital converters.
Digital analog converters.
Pavithran Puthiyapurayil , Maldives
National University
5
Pavithran Puthiyapurayil , Maldives
National University
6
7
CPU
General-
Purpose
Micro-
processor
RAM ROM I/O
Port
Timer
Serial
COM
Port
Data Bus
Address Bus
General-purpose microprocessor:
• CPU for Computers
• Commonly no RAM, ROM, I/O on CPU chip itself
Many chips on motherboard
Pavithran Puthiyapurayil , Maldives
National University
8
RAM ROM
I/O
Port
Timer
Serial
COM
Port
Microcontroller
CPU
• A single-chip computer
• On-chip RAM, ROM, I/O ports...
• Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X
A single chip
Microcontroller :
Pavithran Puthiyapurayil , Maldives
National University
Definition of Embedded Systems
• Embedded system: is a system whose
principal function is not computational,
but which is controlled by a computer
embedded within it.
9
Pavithran Puthiyapurayil , Maldives
National University
Examples: Refrigerator
10
Pavithran Puthiyapurayil , Maldives
National University
Examples: Car Door
11
Pavithran Puthiyapurayil , Maldives
National University
Examples: Electronic Ping-pong
12
Pavithran Puthiyapurayil , Maldives
National University
Examples: Derbot Autonomous Guided
Vehicle
13
Pavithran Puthiyapurayil , Maldives
National University
Examples: Derbot Autonomous Guided
Vehicle
14
Pavithran Puthiyapurayil , Maldives
National University
Microcontrollers
15
Pavithran Puthiyapurayil , Maldives
National University
Microcontroller Packaging and
Appearance
16
From left to right: PIC 12F508, PIC 16F84A, PIC
16C72, Motorola 68HC05B16, PIC 16F877,
Motorola 68000
Pavithran Puthiyapurayil , Maldives
National University
Microcontrollers
• Support Devices
– Timers
– A/D converter
– Serial I/O
• Common communication lines
– System Bus
17
Pavithran Puthiyapurayil , Maldives
National University
Block Diagram
18
Pavithran Puthiyapurayil , Maldives
National University
Microprocessor (MPU)
• MPU (CPU)
– Read instructions
– Process binary data
19
Pavithran Puthiyapurayil , Maldives
National University
Memory
• Storage Device
– Addresses
– Registers
• Major Categories
– Read/Write Memory
(R/W)
– Read-only-Memory
(ROM)
D7 D0
20
Pavithran Puthiyapurayil , Maldives
National University
Input/Output (I/O)
• Input Devices
– Switches and Keypads
– Provide binary information to the MPU
• Output devices
– LEDs and LCDs
– Receive binary information from the MPU
21
Pavithran Puthiyapurayil , Maldives
National University
Microprocessor-Based Systems
22
Pavithran Puthiyapurayil , Maldives
National University
Microprocessor Architecture
• MPU communicates with Memory and I/O
using the System Bus
– Address bus
• Unidirectional
• Memory and I/O Addresses
– Data bus
• Bidirectional
• Transfers Binary Data and Instructions
– Control lines
• Read and Write timing signals
23
Pavithran Puthiyapurayil , Maldives
National University
Microprocessor-Based System
24
Pavithran Puthiyapurayil , Maldives
National University
Example Microprocessor System
25
Pavithran Puthiyapurayil , Maldives
National University
ATMEL MICROCONTROLLER
• Highest performance -- AVR runs 20 MIPS
• Best code density AVR designed for C programme,
and C compilers
• Lowest power – 0.1 micro amps power down , 0.6
Micro amps power safe , 220 micro Amps /MIP fully
running, less than 1 micro second wakeup time
• Best memory technology
• Best integration
• Best tools and supports network
• True RISC architecture HARVARD architecture
• True single cycle execution
• 20 IPS at 20 MHz
• 32 General purpose registers
Pavithran Puthiyapurayil , Maldives
National University
26
Pavithran Puthiyapurayil , Maldives
National University
27
Pavithran Puthiyapurayil , Maldives
National University
28
Pavithran Puthiyapurayil , Maldives
National University
29
Pavithran Puthiyapurayil , Maldives
National University
30
Pavithran Puthiyapurayil , Maldives
National University
31
Pavithran Puthiyapurayil , Maldives
National University
32
Pavithran Puthiyapurayil , Maldives
National University
33
Pavithran Puthiyapurayil , Maldives
National University
34
Pavithran Puthiyapurayil , Maldives
National University
35
Pavithran Puthiyapurayil , Maldives
National University
36
• Mega famaliy is ranges any where 32 up to
100 pin
• Flash memory goes from 4 K to 256 K
Pavithran Puthiyapurayil , Maldives
National University
37
Pavithran Puthiyapurayil , Maldives
National University
38
Pavithran Puthiyapurayil , Maldives
National University
39
Atmel family - Tiny and mega
• Tiny specify is small parts ,28 pins
• Mega is bigger than the tiny in terms of pin
count
• Mega has hardware supply MOS on board
,and tiny has programming flash memory
• Tiny has many types, but pin count is same
Pavithran Puthiyapurayil , Maldives
National University
40

More Related Content

PPSX
A Comparison Of Vlsi Interconnect Models
PDF
Vlsi best notes google docs
PPTX
16bit RISC Processor
PPTX
Low Power Memory
PPT
Lecture VLSI
PPTX
Breakdown due to Internal Discharges and Surface Breakdown
PPTX
Layout & Stick Diagram Design Rules
PPTX
VLSI Design-Lecture2 introduction to ic technology
A Comparison Of Vlsi Interconnect Models
Vlsi best notes google docs
16bit RISC Processor
Low Power Memory
Lecture VLSI
Breakdown due to Internal Discharges and Surface Breakdown
Layout & Stick Diagram Design Rules
VLSI Design-Lecture2 introduction to ic technology

What's hot (20)

PPTX
ASIC DESIGN FLOW
PDF
Chapter13 pcb design
PPTX
Serial Communication in 8051
PPT
Microcontroller-8051.ppt
PDF
2019 2 testing and verification of vlsi design_verification
PPTX
Pull up & pull down resistors
PDF
Automatic Test Pattern Generation (Testing of VLSI Design)
PDF
Low power vlsi design ppt
PDF
Bus Bar protection
PDF
2019 3 testing and verification of vlsi design_sta
PPTX
Capcitive parasitics in mos
PPTX
Partial discharge testing
PPT
Embedded System Basics
PDF
Clock relationships
PPTX
PDF
I2C-SPI-UART Basics || Embedded System || Hariharan K
PPTX
Physical design
PPTX
Reactive power compensation
PPTX
Silicon on Insulator (SOI) Technology
ASIC DESIGN FLOW
Chapter13 pcb design
Serial Communication in 8051
Microcontroller-8051.ppt
2019 2 testing and verification of vlsi design_verification
Pull up & pull down resistors
Automatic Test Pattern Generation (Testing of VLSI Design)
Low power vlsi design ppt
Bus Bar protection
2019 3 testing and verification of vlsi design_sta
Capcitive parasitics in mos
Partial discharge testing
Embedded System Basics
Clock relationships
I2C-SPI-UART Basics || Embedded System || Hariharan K
Physical design
Reactive power compensation
Silicon on Insulator (SOI) Technology
Ad

Similar to Microcontroller (20)

DOCX
What is a microcontroller
PPTX
An Introduction to Microcontrollers.pptx
PDF
Solution manual the 8051 microcontroller based embedded systems
PPTX
MICROPROCESSOR VS MICROCONTROLLER
PDF
Module 1.pdf
PDF
VTU 4th Semester ECE dept Microcontroller lecture slides module 1
PDF
EE6602 Embedded System
PPTX
PPTX
PDF
Introduction to microcontroller
PPTX
embedded systems ppt 2
PPTX
Embedded systems
PPTX
Summer training embedded system and its scope
PPTX
PPT
Embedded System Basics - Introduction.ppt
PPTX
chapter 2 IE.pptx
PPTX
Embeded System for Artificial intelligence 2.pptx
PPTX
Embedded for Artificial Intelligence 2.pptx
PPT
Embedded basics For beginners
PPTX
embedded systems ppts
What is a microcontroller
An Introduction to Microcontrollers.pptx
Solution manual the 8051 microcontroller based embedded systems
MICROPROCESSOR VS MICROCONTROLLER
Module 1.pdf
VTU 4th Semester ECE dept Microcontroller lecture slides module 1
EE6602 Embedded System
Introduction to microcontroller
embedded systems ppt 2
Embedded systems
Summer training embedded system and its scope
Embedded System Basics - Introduction.ppt
chapter 2 IE.pptx
Embeded System for Artificial intelligence 2.pptx
Embedded for Artificial Intelligence 2.pptx
Embedded basics For beginners
embedded systems ppts
Ad

More from parassini (15)

DOCX
Solar notes
DOCX
Vector calss notes
DOCX
The binomial theorem
DOCX
Dot product
DOCX
Demoivres
DOCX
Cross product
DOCX
An argand diagram uses the real and imaginary parts of a complex number as an...
DOCX
A combination of a real and an imaginary number in the form
PPTX
Fm modula
PPTX
Solar energy
PPT
Electromagnetic spectrum
PPT
Natural test signals
PPTX
Logic gates ppt
PPTX
Pll ppt
PPTX
Solar presenta1
Solar notes
Vector calss notes
The binomial theorem
Dot product
Demoivres
Cross product
An argand diagram uses the real and imaginary parts of a complex number as an...
A combination of a real and an imaginary number in the form
Fm modula
Solar energy
Electromagnetic spectrum
Natural test signals
Logic gates ppt
Pll ppt
Solar presenta1

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PPTX
additive manufacturing of ss316l using mig welding
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Current and future trends in Computer Vision.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Construction Project Organization Group 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Geodesy 1.pptx...............................................
PPTX
Sustainable Sites - Green Building Construction
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
web development for engineering and engineering
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Well-logging-methods_new................
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Mechanical Engineering MATERIALS Selection
additive manufacturing of ss316l using mig welding
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Safety Seminar civil to be ensured for safe working.
Embodied AI: Ushering in the Next Era of Intelligent Systems
Current and future trends in Computer Vision.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
CH1 Production IntroductoryConcepts.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Construction Project Organization Group 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Geodesy 1.pptx...............................................
Sustainable Sites - Green Building Construction
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
web development for engineering and engineering
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Well-logging-methods_new................
Fundamentals of safety and accident prevention -final (1).pptx
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems

Microcontroller

  • 1. What is a Microcontroller? A microcontroller is a self-contained system with peripherals, memory and a processor that can be used as an embedded system. Most programmable microcontrollers that are used today are embedded in other consumer products or machinery including phones, peripherals, automobiles and household appliances for computer systems. Due to that, another name for a microcontroller is "embedded controller." Some embedded systems are more sophisticated, while others have minimal requirements for memory and programming length and a low software complexity. Input and output devices include solenoids, LCD displays, relays, switches and sensors for data like humidity, temperature or light level, amongst others. Pavithran Puthiyapurayil , Maldives National University 1
  • 2. 2 Microprocessor • CPU is stand-alone, RAM, ROM, I/O, timer are separate • designer can decide on the amount of ROM, RAM and I/O ports. • expensive • versatility • general-purpose • High processing power • High power consumption • Instruction sets focus on processing-intensive operations • Typically 32/64 – bit • Typically deep pipeline (5-20 stages) Microcontroller • CPU, RAM, ROM, I/O and timer are all on a single chip • fixed amount of on-chip ROM, RAM, I/O ports • for applications in which cost, power and space are critical • single-purpose (control-oriented) • Low processing power • Low power consumption • Bit-level operations • Instruction sets focus on control and bit-level operations • Typically 8/16 bit • Typically single-cycle/two-stage pipeline Microprocessor vs. Microcontroller Pavithran Puthiyapurayil , Maldives National University
  • 3. 3 Some Popular Microcontrollers… • 8051 • Microchip Technology PIC • Atmel AVR • Texas Instruments MSP430 (16-bit) Pavithran Puthiyapurayil , Maldives National University
  • 4. Microcontrollers • Embedded Systems – Operations managed behind the scenes by a microcontroller • Microcontroller (MCU) – Integrated electronic computing device that includes three major components on a single chip • Microprocessor (MPU) • Memory • I/O (Input/Output) ports 4 Pavithran Puthiyapurayil , Maldives National University
  • 5. A microcontroller basically contains one or more following components: Central processing unit(CPU) Random Access Memory)(RAM) Read Only Memory(ROM) Input/output ports. Timers and Counters. Interrupt Controls. Analog to digital converters. Digital analog converters. Pavithran Puthiyapurayil , Maldives National University 5
  • 6. Pavithran Puthiyapurayil , Maldives National University 6
  • 7. 7 CPU General- Purpose Micro- processor RAM ROM I/O Port Timer Serial COM Port Data Bus Address Bus General-purpose microprocessor: • CPU for Computers • Commonly no RAM, ROM, I/O on CPU chip itself Many chips on motherboard Pavithran Puthiyapurayil , Maldives National University
  • 8. 8 RAM ROM I/O Port Timer Serial COM Port Microcontroller CPU • A single-chip computer • On-chip RAM, ROM, I/O ports... • Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X A single chip Microcontroller : Pavithran Puthiyapurayil , Maldives National University
  • 9. Definition of Embedded Systems • Embedded system: is a system whose principal function is not computational, but which is controlled by a computer embedded within it. 9 Pavithran Puthiyapurayil , Maldives National University
  • 10. Examples: Refrigerator 10 Pavithran Puthiyapurayil , Maldives National University
  • 11. Examples: Car Door 11 Pavithran Puthiyapurayil , Maldives National University
  • 12. Examples: Electronic Ping-pong 12 Pavithran Puthiyapurayil , Maldives National University
  • 13. Examples: Derbot Autonomous Guided Vehicle 13 Pavithran Puthiyapurayil , Maldives National University
  • 14. Examples: Derbot Autonomous Guided Vehicle 14 Pavithran Puthiyapurayil , Maldives National University
  • 15. Microcontrollers 15 Pavithran Puthiyapurayil , Maldives National University
  • 16. Microcontroller Packaging and Appearance 16 From left to right: PIC 12F508, PIC 16F84A, PIC 16C72, Motorola 68HC05B16, PIC 16F877, Motorola 68000 Pavithran Puthiyapurayil , Maldives National University
  • 17. Microcontrollers • Support Devices – Timers – A/D converter – Serial I/O • Common communication lines – System Bus 17 Pavithran Puthiyapurayil , Maldives National University
  • 18. Block Diagram 18 Pavithran Puthiyapurayil , Maldives National University
  • 19. Microprocessor (MPU) • MPU (CPU) – Read instructions – Process binary data 19 Pavithran Puthiyapurayil , Maldives National University
  • 20. Memory • Storage Device – Addresses – Registers • Major Categories – Read/Write Memory (R/W) – Read-only-Memory (ROM) D7 D0 20 Pavithran Puthiyapurayil , Maldives National University
  • 21. Input/Output (I/O) • Input Devices – Switches and Keypads – Provide binary information to the MPU • Output devices – LEDs and LCDs – Receive binary information from the MPU 21 Pavithran Puthiyapurayil , Maldives National University
  • 23. Microprocessor Architecture • MPU communicates with Memory and I/O using the System Bus – Address bus • Unidirectional • Memory and I/O Addresses – Data bus • Bidirectional • Transfers Binary Data and Instructions – Control lines • Read and Write timing signals 23 Pavithran Puthiyapurayil , Maldives National University
  • 25. Example Microprocessor System 25 Pavithran Puthiyapurayil , Maldives National University
  • 26. ATMEL MICROCONTROLLER • Highest performance -- AVR runs 20 MIPS • Best code density AVR designed for C programme, and C compilers • Lowest power – 0.1 micro amps power down , 0.6 Micro amps power safe , 220 micro Amps /MIP fully running, less than 1 micro second wakeup time • Best memory technology • Best integration • Best tools and supports network • True RISC architecture HARVARD architecture • True single cycle execution • 20 IPS at 20 MHz • 32 General purpose registers Pavithran Puthiyapurayil , Maldives National University 26
  • 27. Pavithran Puthiyapurayil , Maldives National University 27
  • 28. Pavithran Puthiyapurayil , Maldives National University 28
  • 29. Pavithran Puthiyapurayil , Maldives National University 29
  • 30. Pavithran Puthiyapurayil , Maldives National University 30
  • 31. Pavithran Puthiyapurayil , Maldives National University 31
  • 32. Pavithran Puthiyapurayil , Maldives National University 32
  • 33. Pavithran Puthiyapurayil , Maldives National University 33
  • 34. Pavithran Puthiyapurayil , Maldives National University 34
  • 35. Pavithran Puthiyapurayil , Maldives National University 35
  • 36. Pavithran Puthiyapurayil , Maldives National University 36
  • 37. • Mega famaliy is ranges any where 32 up to 100 pin • Flash memory goes from 4 K to 256 K Pavithran Puthiyapurayil , Maldives National University 37
  • 38. Pavithran Puthiyapurayil , Maldives National University 38
  • 39. Pavithran Puthiyapurayil , Maldives National University 39
  • 40. Atmel family - Tiny and mega • Tiny specify is small parts ,28 pins • Mega is bigger than the tiny in terms of pin count • Mega has hardware supply MOS on board ,and tiny has programming flash memory • Tiny has many types, but pin count is same Pavithran Puthiyapurayil , Maldives National University 40