TKT-3500 Microcontroller systems

Size: px
Start display at page:

Download "TKT-3500 Microcontroller systems"

Transcription

1 TKT-3500 Microcontroller systems Lec 4 Timers and other peripherals, pulse-width modulation Ville Kaseva Department of Computer Systems Tampere University of Technology Fall 2010

2 Sources Original slides by Erno Salminen Robert Reese, Microprocessors: From Assembly to C with the PIC18Fxx2, Charles River Media, 2005 PIC18F8722 Family Data Sheet, Microchip Technology Inc. Tim Wilmshurst, Designing Embedded Systems with PIC Microcontrollers Principles and applications, Elsevier, Wikipedia TotalPhase Knowledge Base - Article #2/64

3 Contents Integrated peripherals of PIC18 Timers Structure Usage Accuracy Co-operation with capture/compare/pwm module Pulse-width modulation (PWM) Short notes about motor control #3/64

4 PIC18LF8722 integrated peripherals data bus Brown-out and hi/low voltage detectors 10-bit AD-converter Two enhanced USART modules (RS-232 or RS-485) Two master synchr. serial port modules (I2C+ SPI) Two 8-bit and three 16-bit timers Six capture/comparator/pwm modules Digital IO General-purpose, bidirectional pins User can select the direction: input/output Can be used for parallel communication and for controlling external devices #4/64

5 Brown-out reset (BOR) Vs + - Resets microcontroller when voltage is too low Power lines (wires) have some resistance R CPU draws current I and hence Vdd = Vs RI Current I depends on internal activity of CPU With large current I, the Vdd drops too much V > 0 R > 0 Vdd Logic gets slower resulting in malfunction Mem write may corrupt mem contents, better reset the CPU I CPU voltage Vs Vdd Achtung! Reset der CPU! time #5/64

6 BOR (2) Vdd is allowed to drop momentarily, i.e. for a duration less than threshold time theshold T BOR is, for example, 200 us To detect BOR, Reset POR to 1 immediately after any POR event Read both status bits BOR and POR (power-on reset) BOR==0 and POR==1 is indication of brown-out reset #6/64

7 High-Low voltage detect (HLVD) Informs when voltage is too high/low Interrupt flag is set Programmable circuit User sets Trip point (voltage level) Direction (rising/falling) Controlled shut-down can be performed before voltage drops critically low data bus #7/64

8 Battery HLVD structure and low-vdd detection select one trip point Voltage direction magnitude Minimum valid Vdd each node forms one trip point Start shutdown if Vdd drops here comparator: trip point vs. ref voltage Time margin for shutdown brown-out reset enable #8/64

9 HLVD operation Low voltage detect High voltage detect internal ref. voltage stable #9/64

10 HLVD cntd. When the module is enabled, the HLVD comparator and voltage divider are enabled and will consume static current To decrease the current requirements, the HLVD circuitry may only need to be enabled for short periods where the voltage is checked After doing the check, the HLVD module may be disabled For example, the HLVD module could be periodically enabled to detect Universal Serial Bus (USB) attach or detach High-voltage detect when device uses, say 3.3V and receives 5V from USB #10/64

11 Analog input/output Analog-to-digital conversion (ADC) Requires own reference voltage inputs 10-bit conversion means 1024 distinct signal levels 16 channels, at sample rate ~1 Mhz Depends on microcontrollers clock frequency Discussed in more detail in lecture 9 v analog signal digital signal data bus t #11/64

12 Serial ports 2*EUSART (Enchanced Universal Synchronous Asynchronous Receiver Transmitter) Module for eg. RS-232 or RS-485 transmissions Lecture 3 2xMSSP (Master Synchronous Serial Port) i2c and SPI in the same port Covered in lectures 3+5 data bus #12/64

13 Timers, Watchdog, real-time clock Timers 1. Measuring duration of tasks and waveforms of input signals 2. Generating timed events and output signals 3. Counting input events Usually several 8-bit and 16-bit timers, 5 in PIC18 The input clock may be selected Watchdog timer (WDT) Special purpose: reset the CPU unless regularly taken care off A program gone mad (stuck in infite loop etc) cannot service WDT and CPU will get rebooted Real-time clock Timer for implementing wall clock or calendar functionality Needs special power (battery) to keep the time data bus #13/64

14 (Enhanced) Capture/Compare/PWM Enhanced Capture/Compare/PWM (ECCPx) Capture Timer value is saved when event (rise, fall) is happened in the corresponding capture pin Compare Compares register value to the timer value. When they are same wanted event occurs PWM Module for creating Pulse Width Modulation signals ECCP includes eg. user selectable polarity etc. data bus #14/64

15 Structure of timers

16 Timer basics Timer is a counter usually count upwards when enabled, counter_r <= counter+1; The values are also called timer ticks Easily converted to wall-clock time when the period of tick is known In PIC, the counters are 8-bit and 16-bits wide The value ranges are [0,255] and [0, 65535] ticks ++ counter counter_r new value #16/64 Load Counter clk enable enable

17 Timer basics (2) Longest delay obtained directly is 2 n * (1/f) Assume f=40 MHz 8-bit: 2 8 * (1/40) = 255 * 25ns = us 16-bit: : 2 16 * 25 ns = us = ms Rather short time! use lower frequency by scaling down the CPU clk max delay becomes 2 n * (1/(f/i)) Scale-factor is typically power of 2 #17/64

18 Clock divider Simple chain of D flip-flops can divide the frequency Each stage by 2, together by 2 stages DFFs do not use the same clock! Each stage increases the phase difference between clk/i and clk Must synchronize the clocks... clk clk/2 clk/4 clk/8 #18/64

19 synhcronized, divided clocks Clock divider with synchronization... synchronizer clk clk/2 clk/4 clk/8 #19/64 clk

20 PIC s timers PIC18 has 5 timers both 8-bit and 16-bit all have readable register(s) for current value all have writable register(s) to set the new value all can generate interrupts Instruction clock ++ Value register Clock Edge Selection Clock Selection Pre-scaler setting Block diagram of Timer0 operating in 8-bit mode Pre-scaler assignment #20/64

21 PIC s timers Minor differences in their usage generate interrupt when a) overflow occurs b) value is equal to match register which clocks can be used what kind of frequency scaling is allowed some can be automatically reset due to special event trigger Timer2 allows optional use as the shift clock for the MSSPx module #21/64

22 Timer1 and 3 subsystems 16-bit susbsystems with identical capabilities Two 8-bit registers for value May be reset by CCP module TMR1L input for ext. clk/output pin of on-chip osc. input pin for on-chip osc. Timer1 oscillator #22/64

23 Timer1 Can act in three modes 1) Timer incremented on every instruction cycle 2,3) Synchronous/Asynchronous Counter incremented on every edge of external clk or Timer1 oscillator Reading from TMR1L (lower byte) will update the value of TMR1H buffer User gets all the 16-bits accurately Otherwise, TMR1H could have been incremented before it is read and hence become invalid Writing 1. Write the new high byte first into buffer 2. Write the TMR1L this will update also the counter s high byte from the buffer Both bytes are written at the same time #23/64

24 Timer1 Oscillator An on-chip crystal oscillator circuit between pins T1OSI (in) and T1OSO (amplifier output) Can be used as CPU s clk source Low-power circuit rated for khz crystal Continue to run during all power-managed modes Often used for implementing real-time clk (RTC) Preload 16-bit counter with 32K = 2 15 so that the overflow at 64K will occur with 1 second interval In ISR, increment the counter variables for seconds, minutes, hours and so on Asynchronous mode is more accurate #24/64

25 Timer1 Oscillator (2) Enabling the amplifier improves noise immunity but increases power Low-power nature makes the oscillator sensitive to rapidly changing signals in close proximity Oscillator circuit must be located very close to MCU No circuit should pass within the oscillator circuit boundaries other than VSS or VDD If a high-speed circuit must be located near the Timer1 oscillator, a grounded guard ring around the oscillator circuit may be helpful Capacitor values 27pF are a starting point Check the specs of your crystal/resonator Higher C increases the stability but also the start-up time Fig. External components for oscillator #25/64

26 Timer2 Always clocked with instruction cycle clock 8-bit counter with both pre- and post scalers Compares when counter reaches value of period register PR2 Matches are post-scaled before generating an interrupt #26/64

27 Timer2 (2) Counter is reset after each match Interrupt period becomes t TMR2_IF_per = ((t osc * 4) * PRE) * PR2) * POST (10.1) Common usage of (any) timer is periodic interrupt generation to accomplish certain action at fixed time intervals t TMR2_IF_per PR2 has largest range of the 3 adjustable parameters, solving it from (10.1) and rounding to integer gives t TMR2_IF_per PR2 = -1 ((t osc * 4) * PRE) * POST #27/64

28 Timer2 (2) Again, rounding causes errors in timing Similar to baud rate generation This is still way better than implementing delay with dummy SW loop #28/64

29 Usage of timers and capture/compare/pwm modules

30 Shape of things to come in this lecture Example use cases 1. Time keeping 2. Switch debounce 3. Pulse width measurement 4. Square wave generation 5. (Infrared decoding omitted, see the book) Accuracy considerations and usage of CCP modules Intertwined into examples Pulse-width modulation (PWM) #30/64

31 Example1: Time keeping - ISR Two seconds have passed when overflow occurs Variable secs is also a semaphore #31/64

32 Ex1: main Terminal SW on PC: #32/64

33 Example2: switch debounce Earlier example used SW delay to implement switch debounce Here, Timer2 is configured to generate periodic interrupts 5 interrupts with ~6 ms period yield appropriate delay 24ms 30 ms, since timer s start value is unknown when INT2 happens! Wait until RB2 high and then 30 ms more #33/64

34 Ex2: Switch debounce main() 1 #34/64

35 Ex2: Switch debounce - ISR 2 3 } { { } 4 #35/64

36 Ex3: Pulse width measurement Basic version of measuring time between two external events (fall/rise of signal) #36/64

37 Ex3: Pulse width measurement (2) Pulse width = TMR0 * (t OSC * 4 * PRE) Accuracy defined by t OSC and PRE There are few problems, however 1. Timer is reset and read in ISR and entering ISR takes many cycles 2. What happens if Timer overflows? RB0/INT0 Timer0 w/ PRE=1 1 latency ISR reset timer... latency ISR 4 get timer value TMR0 Timer0 w/ PRE= time #37/64

38 Ex3: min/max pulse widths Let s calculate minimum and maximum pulse widths that can be measured Pulse width = TMR0 * (t OSC * 4 * PRE) Assume t OSC = (1/40 MHz) = 25 ns and PRE=1 Maximum: set TMR0= w pulse,max = * (25 ns * 4 * 1) = ns = 6.6 ms Minimum: set TMR0=1 w pulse,min = 1 * (25 ns * 4 * 1) = 100 ns This is also the resolution the minimum difference between pulses that can be observed #38/64

39 Ex3: min/max pulse widths Changing interrupt sensitivity from falling to rising edge requires several instructions Min pulse width must be larger than 100 ns = 1 instrcution cycle We could increase prescaler: For example with PRE=256 min pulse becomes 256*100 ns = 25.6 us max pulse becomes 256*6.6 ms = 1.68 s Increasing the prescaler extends maximum pulse width but reduces precision #39/64

40 Ex3: min/max pulse widths Still, previous example is accurate enough for human-interface such as button Too inaccurate for sqaure-wave measurement in the range of ten to hundreds of khz Moreover, the time from falling edge to timer reset is not included the time after rising edge to timer read is included These times are likely the almost the same if interrupts are always enabled No matter which scheme, you should analyze the limitations Next we discuss using CCP modules to enahnce pulse measurement #40/64

41 (Enhanced) Capture/Compare/PWM Two Capture/Compare/PWM (CCP) modules Three Enhanced Capture/Compare/PWM (ECCP) modules: One, two or four PWM outputs per ECCP Enhancements: Selectable polarity, Programmable dead time, Auto-Shutdown and Auto-Restart, Half-Bridge and Full-Bridge Output modes Enhanced modes are not considered on this course User can of course select which timer is the source #41/64

42 Capture/Compare/PWM operation 1. Event (edge) occurs in CCCP4 2. Interrupt flag is set 3. Timer value is stored into register Benefit: value is captured immediately and not after interrupt latency #42/64

43 Enhanced Ex3: pulse width with capture Measured pulse is now fed into pin CCP1 Capture module reads the value of Timer1 There s no interrupt latency prior to reading Note that timer is not reset at any point It is always in operation We calculate the difference between tic samples #43/64

44 EEx3: handling timer overflows In no overflow occurs (short pulse), the difference between captured values defines the pulse width directly In general case, we must record how many overflows occurs between captures #44/64

45 EEx3: ISR #45/64

46 EEX1: main #46/64

47 Capture/Compare/PWM operation 1. Timer value matches the value of compare register 2. Interrupt flag is set 3. Event (edge) is generated into CCP4 Driven high/low, toggled, driven latched value 4. Special event trigger notifies other modules, e.g. to start AD converter or to reset the base timer Benefit: event is generated immediately and not after interrupt latency #47/64

48 Capture/Compare/PWM operation (2) Periodic interrupt generation In simple time keeping code, the timer overflowed once every 2 seconds To update secs variable every second load CCPR1 register with 0x8000 = 32K use special event register to reset Timer1 on match trigger interrupt with flag CCP1IF instead of overflow increment secs varibale by 1 instead of 2 #48/64

49 EEX3: main Very small changes to dummy version #49/64

50 Ex4: Square wave generation with compare mode 1. Let timer run for half period of the desired square wave 2. Toggle (invert) the output signal s value Done automagically by CCP! #50/64

51 Ex4: approach a) for ISR Action: Reset timer to zero and wait for new match Not too complicated but slightly wrong anyway Reset takes just few cycles but they decrease the wave freq anyway desired wave real wave #51/64

52 Ex4: approach a) for ISR Modify the compare register Increment it by half period (HPERIOD) Never alter Timer1 #52/64

53 Timer1 Ex4: about false match Approach b) updates the high byte of compare register before lower Why? First match value 0x010A Next match value 0x20B5 Updates in wrong order (i.e. lower byte first) Avoids false match if half period is at least 256 0x010A 0x010B 0x010C 0x010D... 0x10B4 0x10B5 time Compare reg 01 0A 01 B5 01 B5 20 B5 1 2 Match + interrupt Calculating new value and updating take a while 3 False match when compare reg is in intermediate state. oops #53/64

54 Pulse Width Modulation (PWM) Pulse width modulation is technique that varies the duty cycle of a square wave signal while keeping the period fixed Duty cycle refers to time when signal is 1 Duty cycle defines the average current delivered to external device Example usages brightness of a led controlling a motor poor man s digital-to-analog conversion #54/64

55 PWM as DAC since PIC s output pin can source only few milliamps. Shown RC network does low-pass filtering for signal. #55/64

56 PWM as DAC (2) External operational amplifier ( opari ) provides large current drive capability than PIC s output Series resistor + parallel capacitor slows down the changes in signal level Low-pass filtering - only the low frequency component are let pass Larger the time constant (RC product), lower the cut-off frequency RC defines the amount of ripple voltage variation #56/64

57 Capture/Compare/PWM operation Next duty cycle is written here to avoid glitches CCP module has built-in capability for constructing PWM modulated signals This register sets the duty cycle When duty cycle ends, new val is loaded from low reg into hi reg Period register defines the period #57/64

58 PWM for LED #58/64

59 PWM for DC motor PWM regulates the current through power- FET Diode protects FET against voltage spikes due large inductance of a motor #59/64 FET is voltage-controlled, practically no current flows into gate

60 H-bridge for DC motor Motor s rotation direction depends on the direction of electrical current FETs in opposite corners conduct at the same time Pulse ratio defines the direction The longer PWM phase defines directions Motor keeps rotating but slows down during the other phase 50%- 50% keeps the motor still Current I when PWM signal is 1 #60/64

61 #61/64

62 Servo motor A servo motor does revolve freely but between two extreme positions Here they are marked as CW - clock-wise CCW -counter clk-wise mid CCW CW #62/64

63 clock-wise counterclock-wise #63/64

64 Conclusions Timers are integral part of most microcontroller applications Timers are used for Measure external events (pulse-width, frequency) Trigger timed actions (task execution, wave generation, wakeup) Pulse-width modulation PIC has capture-compare-pwm modules that increases the accuracy and convenience of these tasks #64/64

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different

More information

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ

More information

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor

More information

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd. PR10 Controlling DC Brush Motor using MD10B or MD30B Version 1.2 Aug 2008 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended

More information

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model

More information

The rangefinder can be configured using an I2C machine interface. Settings control the

The rangefinder can be configured using an I2C machine interface. Settings control the Detailed Register Definitions The rangefinder can be configured using an I2C machine interface. Settings control the acquisition and processing of ranging data. The I2C interface supports a transfer rate

More information

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. 1 The purpose of this course is to provide an introduction to the RL78 timer Architecture.

More information

Design and Construction of PIC-based IR Remote Control Moving Robot

Design and Construction of PIC-based IR Remote Control Moving Robot Design and Construction of PIC-based IR Remote Control Moving Robot Sanda Win, Tin Shein, Khin Maung Latt Abstract This document describes an electronic speed control designed to drive two DC motors from

More information

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff PWM System 1 Pulse Width Modulation (PWM) Pulses are continuously generated which have different widths but the same period between leading edges Duty cycle (% high) controls the average analog voltage

More information

Building an Analog Communications System

Building an Analog Communications System Building an Analog Communications System Communicate between two PICs with analog signals. Analog signals have continous range. Analog signals must be discretized. Digital signal converted to analog Digital

More information

EIE/ENE 334 Microprocessors

EIE/ENE 334 Microprocessors EIE/ENE 334 Microprocessors Lecture 13: NuMicro NUC140 (cont.) Week #13 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. Page 2 Week #13 NuMicro

More information

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes Purpose The intent of this course is to provide you with information about the main features of the S08 Timer/PWM (TPM) interface module and how to configure and use it in common applications. Objectives

More information

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller

More information

Microcontroller: Timers, ADC

Microcontroller: Timers, ADC Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,

More information

MM58174A Microprocessor-Compatible Real-Time Clock

MM58174A Microprocessor-Compatible Real-Time Clock MM58174A Microprocessor-Compatible Real-Time Clock General Description The MM58174A is a low-threshold metal-gate CMOS circuit that functions as a real-time clock and calendar in bus-oriented microprocessor

More information

The Need. Reliable, repeatable, stable time base. Memory Access. Interval/Event timers ADC DAC

The Need. Reliable, repeatable, stable time base. Memory Access. Interval/Event timers ADC DAC Timers The Need Reliable, repeatable, stable time base Memory Access /Event timers ADC DAC Time Base: Crystal Oscillator Silicon Dioxide forms a piezoelectric crystal that can deform in eclectic field,

More information

Designing with STM32F3x

Designing with STM32F3x Designing with STM32F3x Course Description Designing with STM32F3x is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms based

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency

More information

MCU Reset and Oscillator Circuits Application Note

MCU Reset and Oscillator Circuits Application Note MCU Reset and Oscillator Circuits Application Note D/N: HA0075E System Oscillator Crystal/Ceramic Oscillator Crystal/Ceramic Oscillator Equivalent Circuit The following circuit combination of resistors,

More information

ASTABLE MULTIVIBRATOR

ASTABLE MULTIVIBRATOR 555 TIMER ASTABLE MULTIIBRATOR MONOSTABLE MULTIIBRATOR 555 TIMER PHYSICS (LAB MANUAL) PHYSICS (LAB MANUAL) 555 TIMER Introduction The 555 timer is an integrated circuit (chip) implementing a variety of

More information

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some application examples. 1 The two comparators inside STM32 microcontroller

More information

Roland Kammerer. 13. October 2010

Roland Kammerer. 13. October 2010 Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface

More information

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O PAT No. : 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto increment

More information

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable

More information

Laboration: Frequency measurements and PWM DC motor. Embedded Electronics IE1206

Laboration: Frequency measurements and PWM DC motor. Embedded Electronics IE1206 Laboration: Frequency measurements and PWM DC motor. Embedded Electronics IE1206 Attention! To access the laboratory experiment you must have: booked a lab time in the reservation system (Daisy). completed

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 328 LCD Controller for I/O C Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons, 32 segments Built-in internal

More information

Built-in LCD display RAM Built-in RC oscillator

Built-in LCD display RAM Built-in RC oscillator PAT No. : TW 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto

More information

CHAPTER 6 DIGITAL INSTRUMENTS

CHAPTER 6 DIGITAL INSTRUMENTS CHAPTER 6 DIGITAL INSTRUMENTS 1 LECTURE CONTENTS 6.1 Logic Gates 6.2 Digital Instruments 6.3 Analog to Digital Converter 6.4 Electronic Counter 6.6 Digital Multimeters 2 6.1 Logic Gates 3 AND Gate The

More information

DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER

DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER U.P.B. Sci. Bull., Series C, Vol. 80, Iss. 2, 2018 ISSN 2286-3540 DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER Monica-Anca CHITA

More information

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description. RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons,

More information

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM RAM Mapping 48 16 LCD Controller for I/O µc LCD Controller Product Line Selection Table HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM 4 4 8 8 8 81 16 16 16 SEG 32 32 32 32

More information

HIGH LOW Astable multivibrators HIGH LOW 1:1

HIGH LOW Astable multivibrators HIGH LOW 1:1 1. Multivibrators A multivibrator circuit oscillates between a HIGH state and a LOW state producing a continuous output. Astable multivibrators generally have an even 50% duty cycle, that is that 50% of

More information

Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan Timers and CCP Modules Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan chanhl@mail.cgu.edu.twcgu PIC18 Timers Timer2, Timer4 8-bit timers use instruction cycle clock as the

More information

IZ602 LCD DRIVER Main features: Table 1 Pad description Pad No Pad Name Function

IZ602 LCD DRIVER Main features: Table 1 Pad description Pad No Pad Name Function LCD DRIVER The IZ602 is universal LCD controller designed to drive LCD with image element up to 128 (32x4). Instruction set makes IZ602 universal and suitable for applications with different types of displays.

More information

PIC18F2X1X/4X1X. 28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanowatt Technology. Flexible Oscillator Structure: Power-Managed Modes:

PIC18F2X1X/4X1X. 28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanowatt Technology. Flexible Oscillator Structure: Power-Managed Modes: 28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanowatt Technology Power-Managed Modes: Run: CPU On, Peripherals On Idle: CPU Off, Peripherals On Sleep: CPU Off, Peripherals Off Idle mode Currents

More information

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Peripherals Summary When migrating from one PIC microcontroller (MCU) family to another, you get to stay within the same MPLAB

More information

ML4818 Phase Modulation/Soft Switching Controller

ML4818 Phase Modulation/Soft Switching Controller Phase Modulation/Soft Switching Controller www.fairchildsemi.com Features Full bridge phase modulation zero voltage switching circuit with programmable ZV transition times Constant frequency operation

More information

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation PC-OSCILLOSCOPE PCS500 Analog and digital circuit sections Description of the operation Operation of the analog section This description concerns only channel 1 (CH1) input stages. The operation of CH2

More information

LM12L Bit + Sign Data Acquisition System with Self-Calibration

LM12L Bit + Sign Data Acquisition System with Self-Calibration LM12L458 12-Bit + Sign Data Acquisition System with Self-Calibration General Description The LM12L458 is a highly integrated 3.3V Data Acquisition System. It combines a fully-differential self-calibrating

More information

Section 30. Capture/Compare/PWM/Timer (MCCP and SCCP)

Section 30. Capture/Compare/PWM/Timer (MCCP and SCCP) Section 30. Capture/Compare/PWM/Timer (MCCP and SCCP) HIGHLIGHTS This section of the manual contains the following major topics: 30.1 Introduction... 30-2 30.2 Registers... 30-3 30.3 Time Base Generator...

More information

Linear Integrated Circuits

Linear Integrated Circuits Linear Integrated Circuits Single Slope ADC Comparator checks input voltage with integrated reference voltage, V REF At the same time the number of clock cycles is being counted. When the integrator output

More information

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER css Custom Silicon Solutions, Inc. S68HC68W1 April 2003 CMOS Serial Digital Pulse Width Modulator Features Direct Replacement for Intersil CDP68HC68W1 Pinout (PDIP) TOP VIEW Programmable Frequency and

More information

Advanced Regulating Pulse Width Modulators

Advanced Regulating Pulse Width Modulators Advanced Regulating Pulse Width Modulators FEATURES Complete PWM Power Control Circuitry Uncommitted Outputs for Single-ended or Push-pull Applications Low Standby Current 8mA Typical Interchangeable with

More information

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974 PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974 DESIGN ANALYSIS: CLOCK As is shown in the block diagram of the sequencer (fig. 1) and the schematic (fig. 2), the clock

More information

R/W address auto increment External Crystal kHz oscillator

R/W address auto increment External Crystal kHz oscillator RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V R/W address auto increment External Crystal 32.768kHz oscillator Two selectable buzzer frequencies

More information

Timer 0 Modes of Operation. Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode

Timer 0 Modes of Operation. Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode Timer 0 Modes of Operation Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode PWM - Introduction Recall: PWM = Pulse Width Modulation We will mostly use it for controlling

More information

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER FEATURES: Speed control by Pulse Width Modulating (PWM) only the low-side drivers reduces switching losses in level converter circuitry for high voltage

More information

Microprocessor & Interfacing Lecture Programmable Interval Timer

Microprocessor & Interfacing Lecture Programmable Interval Timer Microprocessor & Interfacing Lecture 30 8254 Programmable Interval Timer P A R U L B A N S A L A S S T P R O F E S S O R E C S D E P A R T M E N T D R O N A C H A R Y A C O L L E G E O F E N G I N E E

More information

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610 Bus Compatible Digital PWM Controller, IXDP 610 Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device which accepts digital pulse width data from a microprocessor

More information

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description. RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons,

More information

Model 305 Synchronous Countdown System

Model 305 Synchronous Countdown System Model 305 Synchronous Countdown System Introduction: The Model 305 pre-settable countdown electronics is a high-speed synchronous divider that generates an electronic trigger pulse, locked in time with

More information

Built-in LCD display RAM Built-in RC oscillator

Built-in LCD display RAM Built-in RC oscillator PAT No. : TW 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto

More information

PRODUCT OVERVIEW OVERVIEW OTP

PRODUCT OVERVIEW OVERVIEW OTP PRODUCT OVERVIEW 1 PRODUCT OVERVIEW OVERVIEW The S3C7324 single-chip CMOS microcontroller has been designed for high performance using Samsung's newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers).

More information

Activity 4: Due before the lab during the week of Feb

Activity 4: Due before the lab during the week of Feb Today's Plan Announcements: Lecture Test 2 programming in C Activity 4 Serial interfaces Analog output Driving external loads Motors: dc motors, stepper motors, servos Lecture Test Activity 4: Due before

More information

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER css Custom Silicon Solutions, Inc. S68HC68W1 May 2003 CMOS Serial Digital Pulse Width Modulator Features Direct Replacement for Intersil CDP68HC68W1 Pinout PDIP / SOIC (Note #1) TOP VIEW Programmable Frequency

More information

Pulse Width Modulation

Pulse Width Modulation ECEn 621" Computer Arithmetic" Project Notes Week 1 Pulse Width Modulation 1 Pulse Width Modulation A method of regulating the amount of voltage delivered to a load. The average value of the voltage fed

More information

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab

More information

Experiment#6: Speaker Control

Experiment#6: Speaker Control Experiment#6: Speaker Control I. Objectives 1. Describe the operation of the driving circuit for SP1 speaker. II. Circuit Description The circuit of speaker and driver is shown in figure# 1 below. The

More information

Section 2. Oscillator

Section 2. Oscillator Section 2. HIGHLIGHTS This section of the manual contains the following major topics: 2 2.1 Introduction... 2-2 2.2 Control Register... 2-3 2.3 Configurations... 2-4 2.4 Crystal s/ceramic Resonators...

More information

RAM Mapping LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

RAM Mapping LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator PAT No. : 099352 RAM Mapping 4816 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto increment

More information

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU Application Note Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU AN026002-0608 Abstract This application note describes a controller for a 200 W, 24 V Brushless DC (BLDC) motor used to power

More information

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno Microcontrollers: Lecture 3 Interrupts, Timers Michele Magno 1 Calendar 07.04.2017: Power consumption; Low power States; Buses, Memory, GPIOs 20.04.2017 Serial Communications 21.04.2017 Programming STM32

More information

Counter/Timers in the Mega8

Counter/Timers in the Mega8 Counter/Timers in the Mega8 The mega8 incorporates three counter/timer devices. These can: Be used to count the number of events that have occurred (either external or internal) Act as a clock Trigger

More information

1 Second Time Base From Crystal Oscillator

1 Second Time Base From Crystal Oscillator 1 Second Time Base From Crystal Oscillator The schematic below illustrates dividing a crystal oscillator signal by the crystal frequency to obtain an accurate (0.01%) 1 second time base. Two cascaded 12

More information

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10 Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 54 Powerful Instructions Most Single Clock Cycle Execution 16 x 8 General Purpose Working Registers Fully Static

More information

Features. Slope Comp Reference & Isolation

Features. Slope Comp Reference & Isolation MIC388/389 Push-Pull PWM Controller General Description The MIC388 and MIC389 are a family of complementary output push-pull PWM control ICs that feature high speed and low power consumption. The MIC388/9

More information

DUAL STEPPER MOTOR DRIVER

DUAL STEPPER MOTOR DRIVER DUAL STEPPER MOTOR DRIVER GENERAL DESCRIPTION The is a switch-mode (chopper), constant-current driver with two channels: one for each winding of a two-phase stepper motor. is equipped with a Disable input

More information

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages which can interface with the external world. 1 The STM32G0

More information

JUMA-TRX2 DDS / Control Board description OH2NLT

JUMA-TRX2 DDS / Control Board description OH2NLT JUMA-TRX2 DDS / Control Board description OH2NLT 22.08.2007 General Key functions of the JUMA-TRX2 DDS / Control board are: - provide user interface functions with LCD display, buttons, potentiometers

More information

Programming and Interfacing

Programming and Interfacing AtmelAVR Microcontroller Primer: Programming and Interfacing Second Edition f^r**t>*-**n*c contents Preface xv AtmelAVRArchitecture Overview 1 1.1 ATmegal64 Architecture Overview 1 1.1.1 Reduced Instruction

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM RAM Mapping 328 LCD Controller for I/O C Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons, 32 segments Built-in internal

More information

HT1621. HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU

HT1621. HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU Features Operating voltage: 2.4V ~ 5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256 khz frequency source input Selection of 1/2 or

More information

Features. RAMP Feed Forward Ramp/ Volt Sec Clamp Reference & Isolation. Voltage-Mode Half-Bridge Converter CIrcuit

Features. RAMP Feed Forward Ramp/ Volt Sec Clamp Reference & Isolation. Voltage-Mode Half-Bridge Converter CIrcuit MIC3838/3839 Flexible Push-Pull PWM Controller General Description The MIC3838 and MIC3839 are a family of complementary output push-pull PWM control ICs that feature high speed and low power consumption.

More information

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller International Journal of Latest Tr ends in Engineering and Technology Vol.(7)Issue(3), pp. 263-270 DOI: http://dx.doi.org/10.21172/1.73.536 e-issn:2278-621x Design and Fabrication of High Frequency Linear

More information

Capture/Compare/PWM/Timer (MCCP and SCCP)

Capture/Compare/PWM/Timer (MCCP and SCCP) Capture/Compare/PWM/Timer (MCCP and SCCP) HIGHLIGHTS This section of the manual contains the following major topics: 1.0 Introduction... 2 2.0 Registers... 3 3.0 Register Map... 4 4.0 Time Base Generator...

More information

EE 314 Spring 2003 Microprocessor Systems

EE 314 Spring 2003 Microprocessor Systems EE 314 Spring 2003 Microprocessor Systems Laboratory Project #9 Closed Loop Control Overview and Introduction This project will bring together several pieces of software and draw on knowledge gained in

More information

I2C Demonstration Board I 2 C-bus Protocol

I2C Demonstration Board I 2 C-bus Protocol I2C 2005-1 Demonstration Board I 2 C-bus Protocol Oct, 2006 I 2 C Introduction I ² C-bus = Inter-Integrated Circuit bus Bus developed by Philips in the early 80s Simple bi-directional 2-wire bus: serial

More information

RayStar Microelectronics Technology Inc. Ver: 1.4

RayStar Microelectronics Technology Inc. Ver: 1.4 Features Description Product Datasheet Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) The serial real-time clock is a low-power clock/calendar with a programmable

More information

LSI/CSI LS7290 STEPPER MOTOR CONTROLLER. LSI Computer Systems, Inc Walt Whitman Road, Melville, NY (631) FAX (631)

LSI/CSI LS7290 STEPPER MOTOR CONTROLLER. LSI Computer Systems, Inc Walt Whitman Road, Melville, NY (631) FAX (631) LSI/CSI UL A800 FEATURES: LSI Computer Systems, Inc. 1 Walt Whitman Road, Melville, NY 114 (1) 1-0400 FAX (1) 1-040 STEPPER MOTOR CONTROLLER Controls Bipolar and Unipolar Motors Cost-effective replacement

More information

Macroblcok MBI5042 Application Note-VB.01-EN

Macroblcok MBI5042 Application Note-VB.01-EN MBI5042 Application Note (The article is suitable for the IC whose version code is B and datasheet version is VB.0X) Forward MBI5042 uses the embedded PWM signal to control grayscale output and LED current.

More information

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most

More information

RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator RAM Mapping 648 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address

More information

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1 Application Manual Application Manual Real-Time Clock Module with I 2 C-Bus Interface October 2017 1/62 Rev. 2.1 TABLE OF CONTENTS 1. OVERVIEW... 5 1.1. GENERAL DESCRIPTION... 5 1.2. APPLICATIONS... 5

More information

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers -bit ARM Cortex-, Cortex- and Cortex-MF microcontrollers Energy, gas, water and smart metering Alarm and security systems Health and fitness applications Industrial and home automation Smart accessories

More information

DASL 120 Introduction to Microcontrollers

DASL 120 Introduction to Microcontrollers DASL 120 Introduction to Microcontrollers Lecture 2 Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to Atmel Atmega328

More information

Lecture 7 ECEN 4517/5517

Lecture 7 ECEN 4517/5517 Lecture 7 ECEN 4517/5517 Experiments 4-5: inverter system Exp. 4: Step-up dc-dc converter (cascaded boost converters) Analog PWM and feedback controller to regulate HVDC Exp. 5: DC-AC inverter (H-bridge)

More information

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820 8-Bit, high-speed, µp-compatible A/D converter with DESCRIPTION By using a half-flash conversion technique, the 8-bit CMOS A/D offers a 1.5µs conversion time while dissipating a maximum 75mW of power.

More information

Topics Introduction to Microprocessors

Topics Introduction to Microprocessors Topics 2244 Introduction to Microprocessors Chapter 8253 Programmable Interval Timer/Counter Suree Pumrin,, Ph.D. Interfacing with 886/888 Programming Mode 2244 Introduction to Microprocessors 2 8253/54

More information

Analysis and Construction of a Robot controlled by a Universal Remote Control

Analysis and Construction of a Robot controlled by a Universal Remote Control International Journal of Engineering Research and Development e-issn: 2278-067X, p-issn: 2278-800X, www.ijerd.com Volume 10, Issue 11 (November 2014), PP.22-28 Analysis and Construction of a Robot controlled

More information

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load.

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load. Lab Experiments L Power diode V g C Power MOSFET Load Boost converter (Experiment 2) V ref PWM chip UC3525A Gate driver TSC427 Control circuit (Experiment 1) Adjust duty cycle D The UC3525 PWM Control

More information

Brian Hanna Meteor IP 2007 Microcontroller

Brian Hanna Meteor IP 2007 Microcontroller MSP430 Overview: The purpose of the microcontroller is to execute a series of commands in a loop while waiting for commands from ground control to do otherwise. While it has not received a command it populates

More information

1X6610 Signal/Power Management IC for Integrated Driver Module

1X6610 Signal/Power Management IC for Integrated Driver Module 1X6610 Signal/Power Management IC for Integrated Driver Module IXAN007501-1215 Introduction This application note describes the IX6610 device, a signal/power management IC creating a link between a microcontroller

More information

NJM3777 DUAL STEPPER MOTOR DRIVER NJM3777E3(SOP24)

NJM3777 DUAL STEPPER MOTOR DRIVER NJM3777E3(SOP24) DUAL STEPPER MOTOR DRIER GENERAL DESCRIPTION The NJM3777 is a switch-mode (chopper), constant-current driver with two channels: one for each winding of a two-phase stepper motor. The NJM3777 is equipped

More information

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1 5V/12V Synchronous Buck PWM Controller DESCRIPTION The is a high efficiency, fixed 300kHz frequency, voltage mode, synchronous PWM controller. The device drives two low cost N-channel MOSFETs and is designed

More information

JTAG pins do not have internal pull-ups enabled at power-on reset. JTAG INTEST instruction does not work

JTAG pins do not have internal pull-ups enabled at power-on reset. JTAG INTEST instruction does not work STELLARIS ERRATA Stellaris LM3S2110 RevA2 Errata This document contains known errata at the time of publication for the Stellaris LM3S2110 microcontroller. The table below summarizes the errata and lists

More information

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

I hope you have completed Part 2 of the Experiment and is ready for Part 3. I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You

More information

Training Schedule. Robotic System Design using Arduino Platform

Training Schedule. Robotic System Design using Arduino Platform Training Schedule Robotic System Design using Arduino Platform Session - 1 Embedded System Design Basics : Scope : To introduce Embedded Systems hardware design fundamentals to students. Processor Selection

More information

PID MOTOR CONTROLLER. Version 1.0. October Cytron Technologies Sdn. Bhd.

PID MOTOR CONTROLLER. Version 1.0. October Cytron Technologies Sdn. Bhd. PID MOTOR CONTROLLER PR24 Version 1.0 October 2009 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion only

More information

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers Freescale Semiconductor Application Note Document Number: AN4836 Rev. 1, 07/2014 Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers by Freescale

More information

Standard single-purpose processors: Peripherals

Standard single-purpose processors: Peripherals 3-1 Chapter 3 Standard single-purpose processors: Peripherals 3.1 Introduction A single-purpose processor is a digital system intended to solve a specific computation task. The processor may be a standard

More information