SlideShare a Scribd company logo
Introduction
            to
      Microcontroller


www.pantechsolutions.net
                           1
What is Microcontroller?
•       In simple term – Microcontroller is a small computer that is capable of
        performing specific task(s)
    –      e.g car alarm, washing machine, handphone, PDA…

•       There are many similar names
    –      Microprocessor-based system, controller, MCU, MPU, CPU…

•       They can be grouped into two classification
            MCU - Micro Controller Unit
            MPU - Micro Processor Unit

•       In general, these microcontroller are the brain of the embedded system




                                                                                  2
MCU and MPU
Classification                             MCU                                       MPU
Chip                       Embedded A CPU core, memory,            Contain only the main processor (CPU
                           peripherals, IO … into a single chip.   core)


Block Diagram of a                          MCU
system
                                          Memory                                Memory     IO

                               CPU Core            Peripheral         MPU                        Peripheral

                                            IO




General Application        - Self contained to complete a task.    -Need external memory, peripheral to
Area                       - Targeted for small, compact, and      accomplish a task
                           low cost system                         - Targeted for complex, high
                                                                   performance and expandable system
Processor (CPU) Core       4, 8, 16 bit                            32 bit or above
Examples                   8051,pic16f887a,M16, H8, SH1/2          SH3/4,8085
Application                Washing machine, car side mirror,       Handphone, PDA
                           air con




                       3
Components within MCU
                                              Clock -sub    Processor Core


i.      Processor core                        Clock -main     RAM

ii.     Clock                                     ROM         PWM

iii.    Low power mode
iv.     Memory(ROM/RAM)                           Timer       PWM



v.      Input/Output Port                         Timer       Timer


vi.     Timer / Counter/ WDT                                  Serial

vii.    PWM
                                                  Timer




                                       Port
                                                             Interface



viii.    ADC/DAC                                  Timer        WDT


ix.     Serial Interface                          ADC          LCD

x.      On chip Debug
xi.     Bus Controller         Example of H8/38024

xii.    Other
                                                                             4
i. Processor core
 •   Function
     –   Fetch and execute machine code from memory
     –   Efficiency & Effectiveness are determine by its architecture
 •   Architecture Type
     –   Word Size: 4, 8, 16, 32 Bit
     –   Contains ALU (Arithmetic Logic Unit) for decision process
     –   Contains General Registers for temporary storage and data manipulation
     –   Contains Special Registers (PC, Condition, Stack) to assist in program control
     –   Instruction Sets
     –   RISC /CISC
     –   Running Frequency / Voltage
 •   Possible Measurement
     –   MIPS (Million Instruction Per Instruction)
         •   Number of machine instructions that a computer can execute in one second
         •   Provide only a rough indication for comparison




                                                                                          5
ii. Clock                                                   OSC1      OSC2




  • MCU needs a clock input to operate
  • It can have two clock sources
     – A. Main processor clock input
         • This clock may be divided or multiply to allow the processor to
           run at a slower speed (lower power consumption) or higher
           speed
     – B. Sub clock input
         • 32.768KHz is the usual clock used as this allow accurate
           generation of a second via a 16 bit counter.
  • These clocks are normally fed via a crystal and two
    capacitors to the MCU.




                                                                             6
iii. Low power mode
• Low Power is achieved via various mean
  – Running at slower speed, such as sub
    clock(32.768KHz)
     • Sleep mode, sub-active, standby…
  – Shutting off unused peripherals
     • Module stop mode…



                               Standby mode consume only 1uA



                                                           7
iv. Memory (ROM/RAM)
•   ROM (Read Only Memory)
    –    For program and fixed data storage
    –    Size: as low as 1 KByte to as high as 512 KByte
    –    Example
        1. Masked ROM
        2. Flash
        3. PROM - Programmable Read-Only Memory
            1.   OTP - One-Time Programmable


•   RAM (Random Access Memory)
    –    For data storage
    –    Size: as low as 256 Byte to as high as 4 KByte
    –    Example
        1. SRAM

                                                           8
v. Input / Output Port
• Basic interface to control (output) and
  monitor (Input) external events.
  – High current port
     • (20mA), so as to drive LED directly.
  – Open-collector/drain port
     • Interface to higher supply circuitry
     • Wired-Nor condition




                                              9
vi. Timer / Counter / WDT
• Timer (8 or 16 bit) are used to generate or measure
  timing for events.
   – External event trigger the count
   – Compare match to perform a task
   – …
• WDT (WatchDog Timer)
   – Every time before the counter reach the predefined value, the working
     MCU will clear the counter.
   – Thus, if the counter is not clear within the specified timing, the WDT
     will reset the whole MCU as this signify that the MCU has run wild.




                                                                         10
vii. PWM
• PWM (Pulse Width Modulation)
  – Generate continue pulse of preset duty cycle
• This can be used to drive motor.




                                                   11
viii. ADC/DAC
• ADC (Analog-to-Digital Conversion)
   – The basic peripheral to interface to the real analog world.
   – Characteristic
      • Accuracy is determine by number of bits (10,12,14…)
      • Sampling frequency
      • Conversion technology ( Resistive ladder, Sigma delta…)
                                       Analog       Digital
   – AVCC, Data -> and eachTransducer input pins
           AVSS
           Real World
                            analog             ADC          CPU
           Temperature
           Pressure
           Sound…




• DAC (Digital-to-Analog Conversion)
   – This operate in another way. It output the signal in analog form to the
     outside world
                                                                           12
ix. Serial Interface
• There are different serial interfaces
   – Asynchronous mode (2400 BaudRate…)
   – Synchronous mode (at higher transfer rate)
   – USB, I2C, SPI, CAN…(different communication standard)
• Use for:
   – Communication with other devices, such as external RF
     module, PC…
• Generally used only 3 pins
   – Serial In, Serial Out, and Clock



                                                             13
x. On Chip Debug
• Circuitry Incorporated for development and
  debugging purposes

• Usually few pins are required for the PC to control
  the MCU, via a “JTAG-like” emulator
   – Mode pin
   – Data In/Out
   – Clock pin           PC
                              USB I/F



                                                 Target Board




                                                                14
xi. Bus Controller
• In the higher performance MCU, a bus controller is
  incorporated to manage internal and external
  memory bus.

• The external bus may be split into different areas, so
  that each area can be assigned with different setting
   – Refresh controller for DRAM
   – Longer wait cycles for slower devices




                                                       15
xii. Other
• There are many possible peripherals that can be
  integrated into each MCU, to perform specific tasks,
  such as:
   – LCD controller
   – PLC
   – Ethernet MAC
• Other components are:
   – Interrupts
   – LVD (Low Voltage Detection)
   – POR (Power On Reset)


                                                         16
MCU Connection
                                   Flashing
Supply via battery or wall plug
                                   /Debugging
                                   (Optional)

                    VCC

Clock                                           Output Control Motor, LED,
Mode                              MCU
Reset                                           Input    Monitor Temperature, Switches…




                   GND




                                                                                          17
Choosing MCU
1.    Reliability - good
2.    Performance – speed, number of bits, architectures
3.    Power consumption - low
4.    Peripherals – require
5.    Number of I/O pins - enough
6.    ROM/RAM size – enough
7.    Package and Size – manufacturing ease
8.    Development Tool – available and ease of Use
9.    Roadmap – for next expansion
10.   Cost - low
11.   Availability – short lead time
12.   Support – technical team, application notes…



                                                           18
For more Tutorials
   •    www.pantechsolutions.net
   •    http://www.slideshare.net/pantechsolutions
   •    http://www.scribd.com/pantechsolutions
   •    http://www.youtube.com/pantechsolutions




5/24/2011 9:38:29
                    © Pantech Solutions Pvt Ltd. | All rights reserved   www.pantechsolutions.net
PM

More Related Content

What's hot

Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Introduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systemsIntroduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systems
Tyler Ross Lambert
 
Embedded application development
Embedded application developmentEmbedded application development
Embedded application development
Aakash Raj
 
Introduction of microcontroller
Introduction of microcontrollerIntroduction of microcontroller
Introduction of microcontroller
Engineer Maze
 
01. introduction to embedded systems
01. introduction to embedded systems01. introduction to embedded systems
01. introduction to embedded systemsayush1313
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
sanjay kumar
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
Hatem Abd El-Salam
 
Microcontrollers
MicrocontrollersMicrocontrollers
Microcontrollers
Sreyansh Bhupal
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 final
Khalid Elmeadawy
 
seminar on PIC1684
seminar on PIC1684seminar on PIC1684
seminar on PIC1684
Sagar Sarvade
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded systemsb108ec
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
redwan1006066
 
1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollersBidhu Deka
 
Classification OF Microprocessor
Classification OF MicroprocessorClassification OF Microprocessor
Classification OF Microprocessor
Pundra university Science and technology
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
mike parks
 
Microcontroller project111
Microcontroller project111Microcontroller project111
Microcontroller project111
Dinesh Devireddy
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
Kshitij Wagle
 

What's hot (20)

Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Introduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systemsIntroduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systems
 
Embedded application development
Embedded application developmentEmbedded application development
Embedded application development
 
Introduction of microcontroller
Introduction of microcontrollerIntroduction of microcontroller
Introduction of microcontroller
 
01. introduction to embedded systems
01. introduction to embedded systems01. introduction to embedded systems
01. introduction to embedded systems
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
Microcontrollers
MicrocontrollersMicrocontrollers
Microcontrollers
 
Introduction in microcontroller
Introduction in microcontrollerIntroduction in microcontroller
Introduction in microcontroller
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 final
 
seminar on PIC1684
seminar on PIC1684seminar on PIC1684
seminar on PIC1684
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded system
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers
 
Classification OF Microprocessor
Classification OF MicroprocessorClassification OF Microprocessor
Classification OF Microprocessor
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
Cpu
CpuCpu
Cpu
 
Microcontroller project111
Microcontroller project111Microcontroller project111
Microcontroller project111
 
Lecture#06 inner workings of the cpu
Lecture#06   inner workings of the cpuLecture#06   inner workings of the cpu
Lecture#06 inner workings of the cpu
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 

Viewers also liked

SCI F28x
SCI F28xSCI F28x
Blackfin core architecture
Blackfin core architectureBlackfin core architecture
Blackfin core architecture
Pantech ProLabs India Pvt Ltd
 
Introduction to visual DSP++ Kernel
Introduction to visual DSP++ KernelIntroduction to visual DSP++ Kernel
Introduction to visual DSP++ Kernel
Pantech ProLabs India Pvt Ltd
 
optimization c code on blackfin
optimization c code on blackfinoptimization c code on blackfin
optimization c code on blackfin
Pantech ProLabs India Pvt Ltd
 
How to read datasheet
How to read datasheetHow to read datasheet
How to read datasheet
Pantech ProLabs India Pvt Ltd
 
Architecture of tms320 f2812
Architecture of tms320 f2812Architecture of tms320 f2812
Architecture of tms320 f2812
Pantech ProLabs India Pvt Ltd
 
Arm 7 nxp
Arm 7 nxpArm 7 nxp
8051 zigbee interface
8051 zigbee interface8051 zigbee interface
8051 zigbee interface
Pantech ProLabs India Pvt Ltd
 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
Pantech ProLabs India Pvt Ltd
 
Choosing the right processor
Choosing the right processorChoosing the right processor
Choosing the right processor
Pantech ProLabs India Pvt Ltd
 
Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Pantech ProLabs India Pvt Ltd
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
Pantech ProLabs India Pvt Ltd
 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
Pantech ProLabs India Pvt Ltd
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 

Viewers also liked (16)

SCI F28x
SCI F28xSCI F28x
SCI F28x
 
Blackfin core architecture
Blackfin core architectureBlackfin core architecture
Blackfin core architecture
 
Introduction to visual DSP++ Kernel
Introduction to visual DSP++ KernelIntroduction to visual DSP++ Kernel
Introduction to visual DSP++ Kernel
 
optimization c code on blackfin
optimization c code on blackfinoptimization c code on blackfin
optimization c code on blackfin
 
How to read datasheet
How to read datasheetHow to read datasheet
How to read datasheet
 
Architecture of tms320 f2812
Architecture of tms320 f2812Architecture of tms320 f2812
Architecture of tms320 f2812
 
Arm 7 nxp
Arm 7 nxpArm 7 nxp
Arm 7 nxp
 
8051 zigbee interface
8051 zigbee interface8051 zigbee interface
8051 zigbee interface
 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
 
Choosing the right processor
Choosing the right processorChoosing the right processor
Choosing the right processor
 
Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 

Similar to Introduction to Microcontroller

Microcontroller
Microcontroller Microcontroller
Microcontroller
Vivek Sharma
 
Embedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_MicrocontrollersEmbedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_Microcontrollers
dundappabhangari
 
lecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdflecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdf
Nikos374016
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
Pratik Gohel
 
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
MECHANICALENGINEERIN19
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
siminkhan
 
Micro controller
Micro controllerMicro controller
Micro controller
Devi Prasad
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
AJAL A J
 
Lect 1 Into.pptx
Lect 1 Into.pptxLect 1 Into.pptx
Lect 1 Into.pptx
SangeetaTripathi8
 
12429908.ppt
12429908.ppt12429908.ppt
12429908.ppt
ssuser4ca1eb
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
aliamjd
 
Embedded systems_upded1.ppt
Embedded systems_upded1.pptEmbedded systems_upded1.ppt
Embedded systems_upded1.ppt
AnilKumarAssttProffE
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
Arshit Rai
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
HAriesOa1
 
Micro controller selection
Micro controller selectionMicro controller selection
Micro controller selectionVijay kumar
 

Similar to Introduction to Microcontroller (20)

Microcontroller
Microcontroller Microcontroller
Microcontroller
 
Embedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_MicrocontrollersEmbedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_Microcontrollers
 
lb.pptx
lb.pptxlb.pptx
lb.pptx
 
lecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdflecture2-mcu_and_io.pdf
lecture2-mcu_and_io.pdf
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
 
Arjit intro
Arjit introArjit intro
Arjit intro
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
Lect 1 Into.pptx
Lect 1 Into.pptxLect 1 Into.pptx
Lect 1 Into.pptx
 
12429908.ppt
12429908.ppt12429908.ppt
12429908.ppt
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
 
Embedded systems_upded1.ppt
Embedded systems_upded1.pptEmbedded systems_upded1.ppt
Embedded systems_upded1.ppt
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
Micro controller selection
Micro controller selectionMicro controller selection
Micro controller selection
 

More from Pantech ProLabs India Pvt Ltd

Registration process
Registration processRegistration process
Registration process
Pantech ProLabs India Pvt Ltd
 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
Pantech ProLabs India Pvt Ltd
 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
Pantech ProLabs India Pvt Ltd
 
Image processing application
Image processing applicationImage processing application
Image processing application
Pantech ProLabs India Pvt Ltd
 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
Pantech ProLabs India Pvt Ltd
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
Pantech ProLabs India Pvt Ltd
 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
Pantech ProLabs India Pvt Ltd
 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
Pantech ProLabs India Pvt Ltd
 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
Pantech ProLabs India Pvt Ltd
 
Future of AI
Future of AIFuture of AI
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
Pantech ProLabs India Pvt Ltd
 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
Pantech ProLabs India Pvt Ltd
 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
Pantech ProLabs India Pvt Ltd
 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
Pantech ProLabs India Pvt Ltd
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
Pantech ProLabs India Pvt Ltd
 
Brainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfaceBrainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interface
Pantech ProLabs India Pvt Ltd
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
Pantech ProLabs India Pvt Ltd
 

More from Pantech ProLabs India Pvt Ltd (20)

Registration process
Registration processRegistration process
Registration process
 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
 
Image processing application
Image processing applicationImage processing application
Image processing application
 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
 
Future of AI
Future of AIFuture of AI
Future of AI
 
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
 
Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
 
Brainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfaceBrainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interface
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Introduction to Microcontroller

  • 1. Introduction to Microcontroller www.pantechsolutions.net 1
  • 2. What is Microcontroller? • In simple term – Microcontroller is a small computer that is capable of performing specific task(s) – e.g car alarm, washing machine, handphone, PDA… • There are many similar names – Microprocessor-based system, controller, MCU, MPU, CPU… • They can be grouped into two classification  MCU - Micro Controller Unit  MPU - Micro Processor Unit • In general, these microcontroller are the brain of the embedded system 2
  • 3. MCU and MPU Classification MCU MPU Chip Embedded A CPU core, memory, Contain only the main processor (CPU peripherals, IO … into a single chip. core) Block Diagram of a MCU system Memory Memory IO CPU Core Peripheral MPU Peripheral IO General Application - Self contained to complete a task. -Need external memory, peripheral to Area - Targeted for small, compact, and accomplish a task low cost system - Targeted for complex, high performance and expandable system Processor (CPU) Core 4, 8, 16 bit 32 bit or above Examples 8051,pic16f887a,M16, H8, SH1/2 SH3/4,8085 Application Washing machine, car side mirror, Handphone, PDA air con 3
  • 4. Components within MCU Clock -sub Processor Core i. Processor core Clock -main RAM ii. Clock ROM PWM iii. Low power mode iv. Memory(ROM/RAM) Timer PWM v. Input/Output Port Timer Timer vi. Timer / Counter/ WDT Serial vii. PWM Timer Port Interface viii. ADC/DAC Timer WDT ix. Serial Interface ADC LCD x. On chip Debug xi. Bus Controller Example of H8/38024 xii. Other 4
  • 5. i. Processor core • Function – Fetch and execute machine code from memory – Efficiency & Effectiveness are determine by its architecture • Architecture Type – Word Size: 4, 8, 16, 32 Bit – Contains ALU (Arithmetic Logic Unit) for decision process – Contains General Registers for temporary storage and data manipulation – Contains Special Registers (PC, Condition, Stack) to assist in program control – Instruction Sets – RISC /CISC – Running Frequency / Voltage • Possible Measurement – MIPS (Million Instruction Per Instruction) • Number of machine instructions that a computer can execute in one second • Provide only a rough indication for comparison 5
  • 6. ii. Clock OSC1 OSC2 • MCU needs a clock input to operate • It can have two clock sources – A. Main processor clock input • This clock may be divided or multiply to allow the processor to run at a slower speed (lower power consumption) or higher speed – B. Sub clock input • 32.768KHz is the usual clock used as this allow accurate generation of a second via a 16 bit counter. • These clocks are normally fed via a crystal and two capacitors to the MCU. 6
  • 7. iii. Low power mode • Low Power is achieved via various mean – Running at slower speed, such as sub clock(32.768KHz) • Sleep mode, sub-active, standby… – Shutting off unused peripherals • Module stop mode… Standby mode consume only 1uA 7
  • 8. iv. Memory (ROM/RAM) • ROM (Read Only Memory) – For program and fixed data storage – Size: as low as 1 KByte to as high as 512 KByte – Example 1. Masked ROM 2. Flash 3. PROM - Programmable Read-Only Memory 1. OTP - One-Time Programmable • RAM (Random Access Memory) – For data storage – Size: as low as 256 Byte to as high as 4 KByte – Example 1. SRAM 8
  • 9. v. Input / Output Port • Basic interface to control (output) and monitor (Input) external events. – High current port • (20mA), so as to drive LED directly. – Open-collector/drain port • Interface to higher supply circuitry • Wired-Nor condition 9
  • 10. vi. Timer / Counter / WDT • Timer (8 or 16 bit) are used to generate or measure timing for events. – External event trigger the count – Compare match to perform a task – … • WDT (WatchDog Timer) – Every time before the counter reach the predefined value, the working MCU will clear the counter. – Thus, if the counter is not clear within the specified timing, the WDT will reset the whole MCU as this signify that the MCU has run wild. 10
  • 11. vii. PWM • PWM (Pulse Width Modulation) – Generate continue pulse of preset duty cycle • This can be used to drive motor. 11
  • 12. viii. ADC/DAC • ADC (Analog-to-Digital Conversion) – The basic peripheral to interface to the real analog world. – Characteristic • Accuracy is determine by number of bits (10,12,14…) • Sampling frequency • Conversion technology ( Resistive ladder, Sigma delta…) Analog Digital – AVCC, Data -> and eachTransducer input pins AVSS Real World analog ADC CPU Temperature Pressure Sound… • DAC (Digital-to-Analog Conversion) – This operate in another way. It output the signal in analog form to the outside world 12
  • 13. ix. Serial Interface • There are different serial interfaces – Asynchronous mode (2400 BaudRate…) – Synchronous mode (at higher transfer rate) – USB, I2C, SPI, CAN…(different communication standard) • Use for: – Communication with other devices, such as external RF module, PC… • Generally used only 3 pins – Serial In, Serial Out, and Clock 13
  • 14. x. On Chip Debug • Circuitry Incorporated for development and debugging purposes • Usually few pins are required for the PC to control the MCU, via a “JTAG-like” emulator – Mode pin – Data In/Out – Clock pin PC USB I/F Target Board 14
  • 15. xi. Bus Controller • In the higher performance MCU, a bus controller is incorporated to manage internal and external memory bus. • The external bus may be split into different areas, so that each area can be assigned with different setting – Refresh controller for DRAM – Longer wait cycles for slower devices 15
  • 16. xii. Other • There are many possible peripherals that can be integrated into each MCU, to perform specific tasks, such as: – LCD controller – PLC – Ethernet MAC • Other components are: – Interrupts – LVD (Low Voltage Detection) – POR (Power On Reset) 16
  • 17. MCU Connection Flashing Supply via battery or wall plug /Debugging (Optional) VCC Clock Output Control Motor, LED, Mode MCU Reset Input Monitor Temperature, Switches… GND 17
  • 18. Choosing MCU 1. Reliability - good 2. Performance – speed, number of bits, architectures 3. Power consumption - low 4. Peripherals – require 5. Number of I/O pins - enough 6. ROM/RAM size – enough 7. Package and Size – manufacturing ease 8. Development Tool – available and ease of Use 9. Roadmap – for next expansion 10. Cost - low 11. Availability – short lead time 12. Support – technical team, application notes… 18
  • 19. For more Tutorials • www.pantechsolutions.net • http://www.slideshare.net/pantechsolutions • http://www.scribd.com/pantechsolutions • http://www.youtube.com/pantechsolutions 5/24/2011 9:38:29 © Pantech Solutions Pvt Ltd. | All rights reserved www.pantechsolutions.net PM