Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes
|
|
- Susan Hines
- 5 years ago
- Views:
Transcription
1 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 List the main features of the TPM module. Identify how to set up and implement an input capture function. Identify how set up and implement an output compare function. Identify how to set up and implement an edge-aligned PWM function. Identify how to set up and implement a center-aligned PWM function. Content 20 pages 3 questions Learning Time 30 minutes Course Introduction This course will provide you with information about the S08 Timer/PWM (TPM) interface module. First, you will examine the main features of the TPM module. Then, you will look at the configuration and usage of the TPM in detail. By the end of this course, you should be able to set up and implement an output compare function, an input capture function, and both edge-aligned and center-aligned PWM functions.
2 TPM Module Features Multiple channels on timer Each channel may be input capture, output compare, or buffered edge-aligned PWM Rising-edge, falling-edge, or any-edge input capture trigger Set, clear, or toggle output compare option Selectable polarity on PWM outputs Each TPM may be configured for buffered, center-aligned pulse-width modulation (CPWM) on all channels Clock source options: bus clock, fixed system clock, or a clock connected to an external pin 16-bit free-running counter with an up/down counting option 16-bit modulus register to control counter range Timer system enable One interrupt per channel plus a terminal count interrupt Here you can see the main features of the TPM module. They include various configurations for the multiple channels on each timer: input capture, output compare, or buffered edge-aligned PWM. The input capture trigger can be risingedge, falling-edge, or any-edge. The output compare function has set, clear, and toggle options. PWM outputs have selectable polarity. Each TPM can also be configured for buffered, center-aligned PWM (CPWM) for all channels on a timer. The TPM has several clock source options: bus clock, fixed system clock, or a clock connected to an external pin. The clock source to prescaler for each TPM is independently selectable. Finally, the TPM module has these key features: a 16-bit free running counter with an up/down counting option, a 16-bit modulus register to control counter range, the ability to enable the timer system, and one interrupt per channel plus a terminal count interrupt.
3 Block Diagram Uses one I/O pin per channel Shares its I/O pins with general-purpose I/O port pins Has a single time reference Obtains interrupts from counter overflow and input/output timer channel activity Let s begin with a structural overview of the TPM module. Some S08 derivatives include more than one TPM with varying channel numbers, but this block diagram is a TPM module with two channels. The TPM uses one I/O pin per channel and shares its I/O pins with general-purpose I/O port pins. The central component of the TPM is the single time reference. Interrupts can be obtained from the counter overflow and either input or output timer channel activity.
4 Time Reference Normal Center-aligned PWM 0 In order to set up the TPM module for an input capture, output compare, or PWM function, you need to understand how to configure the time reference. Normally, the 16-bit counter is an up-counter that runs from 0 to 0xFFFF or to the value in the modulo registers. If it is configured for center-aligned PWM by setting the CPWMS bit, then the counter becomes an up-/down-counter that counts from 0 up to the value in the modulo registers and then counts back down to 0. The counter can be reset by writing any value to the timer count registers. An interrupt flag and enable are associated with the main 16-bit counter. The timer overflow flag (TOF) is a software-accessible indicator that the timer counter has overflowed. The conditions that cause the TOF to be set depend on the counting mode. In up-counting mode, the TOF is set at the 0xFFFF to 0 transition. If there is a limit value in the modulus registers, then the TOF is set at the transition from the value set to 0. When the counter is in up-/down- counting mode, the TOF flag gets set as the counter changes direction at the transition from the value set in the modulus register and the next lower count value.
5 Clock Source Select & Prescaler Clock Select B and Clock Select A control the clock source select. You can select the clock source for each TPM module to be off (TPM Disabled), the bus rate clock (BUSCLK), the fixed system clock (XCLK), or an external source (TPMCLK). By default, the bus clock drives the timer counter. The fixed system clock is useful for stable and accurate timing. The TPMCLK is an external input through a timer channel pin, and it can be used for pulse accumulator function and timer calibration. The prescaler provides the 16-bit counter with a clock value derived from the selected clock source and a divide-by ratio. Using PS0, PS1, and PS2, you can set the divide-by ratio to any binary value between 1 and 128. In its highest resolution mode (divide-by-1), the TPM supports a resolution of 50 ns at the maximum possible bus frequency of 20 MHz on certain parts such as the GB60.
6 Question Match each configuration of the 16-bit counter with its description by dragging the letters on the left to the correct description on the right. Click Done when you are finished. A B Input capture, output compare, or edge-aligned PWM mode Center-aligned PWM mode by setting the CPWMS bit configuration B A An up-/down-counter that counts from 0 up to the value in the modulo registers and then counts back down to 0. An up-counter that runs from 0 to 0xFFFF or to the value in the modulo registers. In order to set up the TPM module for an input capture, output compare, or PWM function, you need to understand how to configure the time reference. Let s review. Correct. In input capture, output compare, or edge-aligned PWM mode, the 16-bit counter is an up-counter that runs from 0 to 0xFFFF or to the value in the modulo registers. If it is configured for center-aligned PWM by setting the CPWMS bit, then the counter becomes an up-/down-counter that counts from 0 up to the value in the modulo registers and then counts back down to 0.
7 Input Capture 1. Active edge occurs on the pin 2. TPM latches the contents of the TPM counter into the channel value registers 3. Flag is set When the CPWMS bit is set to 0, the 16-bit counter is in up-counting mode and the TPM module can be configured for input capture. Let s take a closer look at this function. The input capture function captures the time at which an external event occurs on an associated I/O pin selected by the user. When an active edge (selectable as rising only, falling only, or any edge) occurs on the pin of an input capture channel, the TPM latches the contents of the TPM counter into the channel value registers, saving the time at which the input capture occurred. This event sets a flag that can optionally generate an interrupt request.
8 Example CPWMS in TPMCnSC = 1 Applications: Performing absolute timer reference to an external even Measuring the width of an input pulse Providing additional external interrupts One application for the input capture function is measuring an input period. First, you set the Mode Select B and A bits in the TPM channel status and control register (TPMCnSC) to 00 to set the channel and its corresponding pin to input capture mode. Second, you configure the input pin to look for rising edges or falling edges using Edge/Lvl select bits B and A in the TPM channel status and control register. In this example, the input pin is looking for rising edges. The input capture interrupt on the channel is enabled, and when the service routine receives an interrupt, it can save a copy of the input capture latch before returning to normal processing until the next edge is detected. At the next interrupt, the service routine subtracts the old saved value from the new value in the latch to determine the period. Finally, always remember to clear the interrupt flag in the service routine by first reading the flag and then writing a 0 to it. If you want to capture a very fine pulse accurately, you can use two timers: one to capture the rising edge, and the other to capture the falling edge. Other input capture applications include performing absolute timer reference to an external event, measuring the width of an input pulse, and providing additional external interrupts.
9 Output Compare Next, let s look at the output compare TPM function. When the CPWMS bit is set to 0, the 16-bit counter is in up-counting mode and the TPM module can be configured for output compare. The output compare function allows the TPM to generate timed pulses with programmable position, polarity, duration, and frequency. When the counter reaches the value in the channel value registers of an output compare channel, the TPM can set, clear, or toggle the channel pin. When an output compare event occurs, a flag bit is set which can optionally generate a CPU interrupt request. An interrupt service routine allows you to very accurately time and create external events using the output compare pins.
10 Example CPWMS in TPMSC = 0 Applications: Performing a single timed event, Performing a periodic interrupt event Implementing a single pulse with variable width One application for the output compare function is generating a variable output frequency. First, you set the Mode Select B and A bits in the TPM channel status and control register to 01 to set the channel and its I/O pin to output compare mode. You can then configure the output pin to toggle output on compare, clear output on compare, set output on compare, or allow for a software compare only using Edge/Lvl select bits B and A in the TPM channel status and control register. This example uses the toggle option to simplify the generation of pulses. The user enables the output compare interrupt on the channel, and when the value in the 16- bit counter equals the timer channel value set by the user in the interrupt service routine, the programmed output toggle is forced on the channel s corresponding pin. Typically, an interrupt service routine is used to schedule the next timer output signal transition. You read the value in the channel value register, add a time offset, and save the result back in the channel value register. A good programmer will read the 16-bit counter and check that it is not right at the transition point between the modulus value and 0 before writing to the timer channel value registers. As soon as the counter value catches up and equals the channel value register, the programmed activity occurs. Always remember to clear the interrupt flag in the service routine by first reading the flag and then writing a 0 to it. Other output compare applications include performing a single timed event, performing a periodic interrupt event, and implementing a single pulse with variable width.
11 Question Order the steps for using the input capture function when measuring an input period by dragging the numbers on the left to their matching steps on the right. Click Done when you are finished. Step 1 2 Configure the input pin to look for rising edges or falling edges using Edge/Lvl select bits B and A in the TPM channel status and control register Step 2 Step Set the Mode Select B and A bits in the TPM channel status and control register to 00 to set the channel and its corresponding pin to input capture mode. Clear the interrupt flag in the service routine by first reading the flag and then writing a 0 to it. Let s review the steps for the input capture function when measuring an input period. Correct. First, you set the Mode Select B and A bits in the TPM channel status and control register to 00 to set the channel and its corresponding pin to input capture mode. You can then configure the input pin to look for rising edges or falling edges using Edge/Lvl select bits B and A in the TPM channel status and control register. Always remember to clear the interrupt flag in the service routine by first reading the flag and then writing a 0 to it.
12 PWM PWM generates a waveform with a fixed period and variable duty cycle. The duty cycle is the relative time spent in the high and low portions of the signal period. A common use for PWMs is digital-to-analog conversions using some external filtering. The generated analog voltage is proportional to the duty cycle. Theoretically, a 50 percent duty cycle would generate approximately half of the maximum analog voltage, and a 25 percent duty cycle would generate a quarter of the maximum analog voltage. PWMs are also commonly used to control motors and to control battery charging current. There are two different PWM functions: edgealigned PWM and center-aligned PWM.
13 Buffered Edge-aligned PWM Edge-aligned PWM mode uses the normal up-counting mode of the 16-bit counter with the CPWMS set to 0. You can use it when other channels in the same TPM are configured for input capture or output compare functions. You can have duty cycle cases of 0 percent and 100 percent if you set the timer channel value registers to 0 and to values greater than the modulus setting respectively. The output compare value in the TPM channel registers determines the pulse width (or duty cycle) of the PWM signal. The time between the modulus overflow and the output compare is the pulse width.
14 Edge-aligned PWM Registers CPWMS in TPMSC = 0 Let s take a look at the TPM registers that affect edge-aligned PWM configuration. The settings in the modulus registers determine the period of the PWM signal. The timer channel value registers determine the duty cycle. The settings in the Edge/Lvl Select B and A control bits in the TPM channel status and control register determine the polarity of the signal. For now, let s set these bits to 10, which will clear the output signal on a compare and set it when the counter overflows.
15 Conceptual View Now that you have configured the TPM module for the edge-aligned PWM function, what happens next? When the value in the 16-bit counter equals that of the timer channel value register, the programmed output signal transition (in this case, a clear output on compare), is forced on the signal pin. If interrupts are enabled, an interrupt will occur every time this happens, and the user must clear the channel flag in the interrupt service routine by first reading the flag and then writing a 0 to it. Enabling interrupts allows the user to change the duty cycle within the service routine. When the value in the 16-bit counter equals that of the modulus registers, an overflow is forced, resetting the counter to zero and forcing the signal high.
16 Buffered Center-aligned PWM The only TPM function that requires the CPWMS bit in the TPM channel status and control register to be set is center-aligned PWM. This type of PWM output uses the up-/down-counting mode of the timer counter, which increments until it reaches the value in the timer channel modulus registers before it decrements back down to 0, where 0 is the middle of the period. To set the duty cycle to 0 percent, the timer channel value registers must equal a negative value or 0. For a 100 percent duty cycle setting, the value in the timer channel value registers must be greater than that in the timer channel modulus registers.
17 Center-aligned PWM Registers CPWMS in TPMSC = 1 Let s take a look at the TPM registers that affect center-aligned PWM configuration. The period of the PWM signal is equal to 2 times the setting in the modulus registers, effectively giving these registers a usable range of $0001 to $7FFE. Zero is a special case that should not be used in center-aligned PWM mode, and $7FFF can be used only if a 100 percent duty cycle is unnecessary. The duty cycle, or pulse width, is equal to two times the timer channel value registers. The polarity of the signal is determined by the setting in the Edge/Lvl Select B and A control bits in the TPM channel status and control register. For now, we will set these bits to 10, which will clear the output signal on a compare while the counter is counting up and set it on a compare while the counter is counting down. You should also note that you can enable interrupts in centeraligned PWM mode.
18 Conceptual View After configuring the TPM module for the center-aligned PWM function, when the value in the 16-bit counter equals that of the timer channel value register, if the counter was counting up, the programmed output signal transition (in this case, a clear output on compare counting up), is forced on the signal pin. If the counter was counting down, the opposite signal transition would occur. When the value in the 16- bit counter equals that of the modulus registers, an overflow is forced, and if interrupts are set, the user may change the duty cycle in the interrupt service routine and this change will be synchronized with the next counter overflow. Always remember to clear the interrupt flag in the service routine by first reading the flag and then writing a 0 to it.
19 Question Take a moment to examine the setting in the registers below. Select the function that they best represent and then click Done. a. Input capture b. Output compare c. Center-aligned PWM function d. Edge-aligned PWM CPWMS in TPMSC = 0 Consider this question concerning TPM register configurations. Correct. The settings in the Edge/Lvl Select B and A control bits in the TPM channel status and control register determine the polarity of the signal. In this example, these bits are set to 10, which will clear the output signal on a compare and set it when the counter overflows.
20 Course Summary TPM module features Configuration: Output compare Input capture Edge-aligned PWM Center-aligned PWM GB60 Data Sheet In this course, you learned about the S08 TPM interface module. First, you examined the main features of the TPM module. For example, you learned that each channel in the TPM module could be individually configured for input capture, output compare, or buffered edge-aligned PWM. Alternatively, all the channels in one of these modules could be configured for buffered centeraligned PWM. You then examined the configuration and usage of the TPM module in detail. You ve learned how to set up and perform output compare and input capture functions. You can use the input capture function to measure an input period, and you can use the output compare function to generate a variable output frequency. You also learned about the edge-aligned and center-aligned PWM functions. For each function, you learned how to set the bits in the TPM channel status and control register. Remember that the only TPM function that requires the CPWMS bit in the TPM channel status and control register to be set is center-aligned PWM. If you have more questions, please refer to the GB60 data sheet for a more detailed explanation.
Using the HCS08 TPM Module In Motor Control Applications
Pavel Grasblum Using the HCS08 TPM Module In Motor Control Applications Designers can choose from a wide range of microcontrollers to provide digital control for variable speed drives. Microcontrollers
More informationGrundlagen 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 informationFixed-function (FF) implementation for PSoC 3 and PSoC 5 devices
2.40 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill
More informationLM4: The timer unit of the MC9S12DP256B/C
Objectives - To explore the Enhanced Capture Timer unit (ECT) of the MC9S12DP256B/C - To program a real-time clock signal with a fixed period and display it using the onboard LEDs (flashing light) - To
More informationTimer A (0 and 1) and PWM EE3376
Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model l l l l Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in
More informationFixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices
3.30 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill
More informationChapter 6 PROGRAMMING THE TIMERS
Chapter 6 PROGRAMMING THE TIMERS Force Outputs on Outcompare Input Captures Programmabl e Prescaling Prescaling Internal clock inputs Timer-counter Device Free Running Outcompares Lesson 2 Free Running
More informationTiming System. Timing & PWM System. Timing System components. Usage of Timing System
Timing & PWM System Timing System Valvano s chapter 6 TIM Block User Guide, Chapter 15 PWM Block User Guide, Chapter 12 1 2 Timing System components Usage of Timing System 3 Counting mechanisms Input time
More informationGraphical Control Panel User Manual
Graphical Control Panel User Manual DS-MPE-DAQ0804 PCIe Minicard Data Acquisition Module For Universal Driver Version 7.0.0 and later Revision A.0 March 2015 Revision Date Comment A.0 3/18/2015 Initial
More informationLab 5 Timer Module PWM ReadMeFirst
Lab 5 Timer Module PWM ReadMeFirst Lab Folder Content 1) ReadMeFirst 2) Interrupt Vector Table 3) Pin out Summary 4) DriverLib API 5) SineTable Overview In this lab, we are going to use the output hardware
More informationCprE 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 informationATmega16A Microcontroller
ATmega16A Microcontroller Timers 1 Timers Timer 0,1,2 8 bits or 16 bits Clock sources: Internal clock, Internal clock with prescaler, External clock (timer 2), Special input pin 2 Features The choice of
More informationHardware 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 informationHello, 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µtasker Document µtasker Hardware Timers
Embedding it better... µtasker Document utaskerhwtimers.doc/0.07 Copyright 2016 M.J.Butcher Consulting Table of Contents 1. Introduction...3 2. Timer Control Interface...3 3. Configuring a Single-Shot
More informationHello 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 informationEEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li
EEL 4744C: Microprocessor Applications Lecture 8 Timer Reading Assignment Software and Hardware Engineering (new version): Chapter 14 SHE (old version): Chapter 10 HC12 Data Sheet: Chapters 12, 13, 11,
More informationReading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications
Reading Assignment EEL 4744C: Microprocessor Applications Lecture 8 Timer Software and Hardware Engineering (new version): Chapter 4 SHE (old version): Chapter 0 HC Data Sheet: Chapters,,, 0 Introduction
More informationFor reference only Refer to the latest documents for details
STM32F3 Technical Training For reference only Refer to the latest documents for details General Purpose Timers (TIM2/3/4/5 - TIM12/13/14 - TIM15/16/17 - TIM6/7/18) TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14
More informationTopics 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 informationMicrocontroller: 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 informationEIE/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 informationMICROCONTROLLER TUTORIAL II TIMERS
MICROCONTROLLER TUTORIAL II TIMERS WHAT IS A TIMER? We use timers every day - the simplest one can be found on your wrist A simple clock will time the seconds, minutes and hours elapsed in a given day
More informationUsing the Z8 Encore! XP Timer
Application Note Using the Z8 Encore! XP Timer AN013104-1207 Abstract Zilog s Z8 Encore! XP microcontroller consists of four 16-bit reloadable timers that can be used for timing, event counting or for
More informationVORAGO Timer (TIM) subsystem application note
AN1202 VORAGO Timer (TIM) subsystem application note Feb 24, 2017, Version 1.2 VA10800/VA10820 Abstract This application note reviews the Timer (TIM) subsystem on the VA108xx family of MCUs and provides
More informationHello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its
Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its main features and the application benefits of leveraging
More informationDM74ALS169B Synchronous Four-Bit Up/Down Counters
Synchronous Four-Bit Up/Down Counters General Description These synchronous presettable counters feature an internal carry look ahead for cascading in high speed counting applications. The DM74ALS169B
More informationPWM 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 informationMICROPROCESSOR TECHNICS II
AGH University of Science and Technology Faculty of Computer Science, Electronics and Telecommunication Department of Electronics MICROPROCESSOR TECHNICS II Tutorial 5 Combining ADC & PWM Mariusz Sokołowski
More informationCMOS 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 informationTimer A. Last updated 8/7/18
Last updated 8/7/18 Advanced Timer Functions Output Compare Sets a flag and/or creates an interrupt when the counter value matches a value programmed into a separate register Input Capture Captures the
More informationCourse Introduction. Purpose: Objectives: Content: 24 pages 3 questions. Learning Time: 35 minutes
Course Introduction Purpose: This course provides an overview of the timer peripherals built into popular SH-2 and SH-2A families of 32-bit RISC microcontrollers, which are members of the SuperH series
More informationUSB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features
USB4 Page 1 of 8 The USB4 is a data acquisition device designed to record data from 4 incremental encoders, 8 digital inputs and 4 analog input channels. In addition, the USB4 provides 8 digital outputs
More informationCMOS 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 informationFreescale Semiconductor, I SECTION 11 TIME PROCESSOR UNIT
nc. SECTION 11 TIME PROCESSOR UNIT The time processor unit (TPU) is an intelligent, semi-autonomous microcontroller designed for timing control. Operating simultaneously with the CPU32, the TPU schedules
More informationMicroprocessor & 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 informationFreescale Semiconductor Application Note. Document Number: AN3467 Rev. 0, 05/2007
Freescale Semiconductor Application Note Document Number: AN3467 Rev. 0, 05/2007 Using Processor Expert with Flexis TM Microcontrollers by: Bruno Castelucci / Paulo Knirsch Field Application Engineers
More informationdspic30f Quadrature Encoder Interface Module
DS Digital Signal Controller dspic30f Quadrature Encoder Interface Module 2005 Microchip Technology Incorporated. All Rights Reserved. dspic30f Quadrature Encoder Interface Module 1 Welcome to the dspic30f
More informationELCT 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 informationPSoC 4 Timer Counter Pulse Width Modulator (TCPWM)
2.10 Features 16-bit fixed-function implementation Timer/Counter functional mode Quadrature Decoder functional mode Pulse Width Modulation (PWM) mode PWM with configurable dead time insertion Pseudo random
More informationPIC 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 informationSpec. Instructor: Center
PDHonline Course E379 (5 PDH) Digital Logic Circuits Volume III Spec ial Logic Circuits Instructor: Lee Layton, P.E 2012 PDH Online PDH Center 5272 Meadow Estatess Drive Fairfax, VA 22030-6658 Phone &
More informationEE 308 Apr. 24, 2002 Review for Final Exam
Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,
More information8253 functions ( General overview )
What are these? The Intel 8253 and 8254 are Programmable Interval Timers (PITs), which perform timing and counting functions. They are found in all IBM PC compatibles. 82C54 which is a superset of the
More informationOct 30 Announcements. Bonus marked will be posted today Will provide 270 style feedback on multiple-choice questions. [3.E]-1
Oct 30 Announcements Code Marked and on Blackboard This week: Mon 2:30 to 3:00pm, Tues 2:30 to 3:30 and W-F 1:30 to 3:00pm opportunity to talk about code: earn 2 extra points on the coding part Bonus marked
More informationChapter 5 Timer Functions ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 5.1 The Timer System 5.2 Programming the Timer System 5.3 Examples and Applications The
More informationFreescale Semiconductor, I
nc. Application Note Rev. 0, 5/2003 DC Motor XOR version PU Function Set (DCmXor) By Milan Brejl, Ph.D. Functional Overview SW1_1 SW1_2 SW2_1 SW2_2 SW3_1 SW3_2 he DC Motor XOR version (DCmXor) PU function
More informationFreescale Semiconductor, I
Application Note Rev., 5/23 DC Motor 2 outputs version XOR version PU Function Set (DCm2Xor) By Milan Brejl, Ph.D. Functional Overview SW1_1 SW1_2 SW3_1 SW3_2 he DC Motor 2 outputs version XOR version
More informationTemperature Monitoring and Fan Control with Platform Manager 2
August 2013 Introduction Technical Note TN1278 The Platform Manager 2 is a fast-reacting, programmable logic based hardware management controller. Platform Manager 2 is an integrated solution combining
More informationLab 9. Speed Control of a D.C. motor. Sensing Motor Speed (Tachometer Frequency Method)
Lab 9. Speed Control of a D.C. motor Sensing Motor Speed (Tachometer Frequency Method) Motor Speed Control Project 1. Generate PWM waveform 2. Amplify the waveform to drive the motor 3. Measure motor speed
More informationF²MC-16FX FAMILY ALL SERIES PROGRAMMABLE PULSE GENERATOR 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note
Fujitsu Microelectronics Europe Application Note MCU-AN-300201-E-V16 F²MC-16FX FAMILY 16-BIT MICROCONTROLLER ALL SERIES PROGRAMMABLE PULSE GENERATOR APPLICATION NOTE Revision History Revision History Date
More informationChapter 10 Counter modules
Manual VIPA System 00V Chapter 0 Counter modules Chapter 0 Counter modules Overview This chapter contains information on the interfacing and configuration of the SSI-module FM 0 S. The different operating
More informationOBSOLETE. 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νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ
θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ
More informationAC Induction Motor (ACIM) Control using a Digital Signal Controller (DSC)
Research Journal of Applied Sciences, Engineering and Technology 4(19): 3740-3745, 2012 ISSN: 2040-7467 Maxwell Scientific Organization, 2012 Submitted: March 07, 2012 Accepted: March 30, 2012 Published:
More informationCounter/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 informationF²MC-16FX FAMILY ALL SERIES PROGRAMMABLE PULSE GENERATOR 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note
Fujitsu Microelectronics Europe Application Note MCU-AN-300201-E-V14 F²MC-16FX FAMILY 16-BIT MICROCONTROLLER ALL SERIES PROGRAMMABLE PULSE GENERATOR APPLICATION NOTE Revision History Revision History Date
More informationTKT-3500 Microcontroller systems
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 Sources Original slides
More informationHello, 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 informationReview for Final Exam
Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,
More informationTimer/Counter with PWM
Timer/Counter with PWM The AVR Microcontroller and Embedded Systems using Assembly and C) by Muhammad Ali Mazidi, Sarmad Naimi, and Sepehr Naimi ATMEL 8-bit AVR Microcontroller with 4/8/16/32K Bytes In-System
More informationThe 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 informationAnalog Inputs and Outputs
Analog Inputs and Outputs PLCs must also work with continuous or analog signals. Typical analog signals are 0-10 VDC or 4-20 ma. Analog signals are used to represent changing values such as speed, temperature,
More informationDM74AS169A Synchronous 4-Bit Binary Up/Down Counter
Synchronous 4-Bit Binary Up/Down Counter General Description These synchronous presettable counters feature an internal carry look ahead for cascading in high speed counting applications. The DM74AS169
More informationA MORON'S GUIDE TO TIMER/COUNTERS v2.2. by
A MORON'S GUIDE TO TIMER/COUNTERS v2.2 by RetroDan@GMail.com TABLE OF CONTENTS: 1. THE PAUSE ROUTINE 2. WAIT-FOR-TIMER "NORMAL" MODE 3. WAIT-FOR-TIMER "NORMAL" MODE (Modified) 4. THE TIMER-COMPARE METHOD
More informationMask Set Errata for Mask 4M77B
Mask Set Errata MSE9S08QG8_4M77B Rev. 1, 4/2008 Mask Set Errata for Mask 4M77B Introduction This report applies to mask 4M77B for these products: MC9S08QG8 MC9S08QG4 MCU device mask set identification
More informationELEC 3040/3050 Lab #7
ELEC 3040/3050 Lab #7 PWM Waveform Generation References: STM32L1xx Technical Reference Manual STM32L100RC Data Sheet Goals of this lab exercise Begin the primary design project for the semester Speed
More informationGeneral-Purpose OTP MCU with 14 I/O LInes
General-Purpose OTP MCU with 14 I/O LInes Product Specification PS004602-0401 PRELIMINARY ZiLOG Worldwide Headquarters 910 E. Hamilton Avenue Campbell, CA 95008 Telephone: 408.558.8500 Fax: 408.558.8300
More informationLow Energy Timer. AN Application Note. Introduction
...the world's most energy friendly microcontrollers Low Energy Timer AN0026 - Application Note Introduction This application note gives an overview of the Low Energy Timer (LETIMER) and demonstrates how
More informationCHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION
34 CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION 3.1 Introduction A number of PWM schemes are used to obtain variable voltage and frequency supply. The Pulse width of PWM pulsevaries with
More informationReview for Final Exam
Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,
More informationSelect the single most appropriate response for each question.
ECE 362 Final Lab Practical - 1 - Practice Exam / Solution PART 1: Multiple Choice Select the single most appropriate response for each question. Note that none of the above MAY be a VALID ANSWER. (Solution
More informationTimer 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 informationEXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS
BSc/BSc (HONS) MUSIC TECHNOLOGY AND AUDIO SYSTEM DESIGN BSc/BSc (HONS) LIVE PERFORMANCE TECHNOLOGY BSc/BSc (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS Instructions
More informationEE 308 Spring 2013 The MC9S12 Pulse Width Modulation System
The MC9S12 Pulse Width Modulation System o Introduction to PWM o Review of the Output Compare Function o Using Output Compare to generate a PWM signal o Registers used to enable the Output Capture Function
More informationPCL-836 Multifunction countertimer and digital I/O add-on card for PC/XT/ AT and compatibles
PCL-836 Multifunction countertimer and digital I/O add-on card for PC/XT/ AT and compatibles Copyright This documentation is copyrighted 1997 by Advantech Co., Ltd. All rights are reserved. Advantech Co.,
More information54645D. Mixed Signal Oscilloscope
54645D Mixed Signal Oscilloscope Page 1 of 42 Instructions for the use of the 54645D Mixed Signal Oscilloscope This pamphlet is intended to give you (the student) an overview on the use of the 54645D Mixed
More informationDesign and build a prototype digital motor controller with the following features:
Nov 3, 26 Project Digital Motor Controller Tom Kovacsi Andrew Rossbach Arnold Stadlin Start: Nov 7, 26 Project Scope Design and build a prototype digital motor controller with the following features:.
More informationFR FAMILY MB91460 PROGRAMMABLE PULSE GENERATOR 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note
Fujitsu Microelectronics Europe Application Note MCU-AN-300061-E-V11 FR FAMILY 32-BIT MICROCONTROLLER MB91460 PROGRAMMABLE PULSE GENERATOR APPLICATION NOTE Revision History Revision History Date Issue
More informationSection 16. Quadrature Encoder Interface (QEI)
M Section 16. Quadrature Encoder Interface (QEI) HIGHLIGHTS 16 Quadrature Encoder Interface (QEI) This section of the manual contains the following major topics: 16.1 Module Introduction... 16-2 16.2 Control
More informationProduct Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device
APPLICATION NOTE THIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICAL SUPPORT These documents are provided by our technical support department to assist others. We do not guarantee that the data
More informationDebouncing Switches. The non-ideal behavior of the contacts that creates multiple electrical transitions for a single user input.
Mechanical switches are one of the most common interfaces to a uc. Switch inputs are asynchronous to the uc and are not electrically clean. Asynchronous inputs can be handled with a synchronizer (2 FF
More informationPage 1. So Far. Usage Examples. Input Capture Basics. Familiar with CS/ECE 6780/5780. Al Davis. Trigger interrupts on rising/falling/both edges
So Far CS/ECE 6780/5780 Al Davis Today s topics: Input capture particular focus on timing measurements useful for 5780 Lab 7 Familiar with threads, semaphores, & interrupts Now move on to capturing edge
More informationTemperature Monitoring and Fan Control with Platform Manager 2
Temperature Monitoring and Fan Control September 2018 Technical Note FPGA-TN-02080 Introduction Platform Manager 2 devices are fast-reacting, programmable logic based hardware management controllers. Platform
More information8-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 informationThe MC9S12 Pulse Width Modulation System. Pulse Width Modulation
The MC9S12 Pulse Width Modulation System o Introduction to PWM o Review of the Output Compare Function o Using Output Compare to generate a PWM signal o Registers used to enable the Output Capture Function
More information1 Contents 2 2 Overview 3 3 Hardware Interface 4 4 Software Interface Register Map Interrupts 7
1 Contents 1 Contents 2 2 Overview 3 3 Hardware Interface 4 4 Software Interface 5 4.1 Register Map 5 4.2 Interrupts 7 Version 2.2 - Confidential 2 of 7 2010 EnSilica Ltd, All Rights Reserved 2 Overview
More informationEE251: Thursday October 25
EE251: Thursday October 25 Review SysTick (if needed) General-Purpose Timers A Major Topic in ECE251 An entire section (11) of the TM4C Data Sheet Basis for Lab #8, starting week after next Homework #5
More informationL13: (25%), (20%), (5%) ECTE333
ECTE333 s schedule ECTE333 Lecture 1 - Pulse Width Modulator School of Electrical, Computer and Telecommunications Engineering University of Wollongong Australia Week Lecture (2h) Tutorial (1h) Lab (2h)
More informationDM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control
August 1986 Revised February 1999 Synchronous 4-Bit Up/Down Counter with Mode Control General Description The circuit is a synchronous, reversible, up/ down counter. Synchronous operation is provided by
More informationA Sequencing LSI for Stepper Motors PCD4511/4521/4541
A Sequencing LSI for Stepper Motors PCD4511/4521/4541 The PCD4511/4521/4541 are excitation control LSIs designed for 2-phase stepper motors. With just one of these LSIs and a stepper motor driver IC (e.g.
More informationAnalog-to-Digital-Converter User Manual
7070 Analog-to-Digital-Converter User Manual copyright FAST ComTec GmbH Grünwalder Weg 28a, D-82041 Oberhaching Germany Version 2.0, July 7, 2005 Software Warranty FAST ComTec warrants proper operation
More informationUSB-CTR08-OEM. High-Speed Counter/Timer. User's Guide
USB-CTR08-OEM High-Speed Counter/Timer User's Guide Document Revision 2A June 2015 Copyright 2015 Trademark and Copyright Information Measurement Computing Corporation, InstaCal, Universal Library, and
More informationEE 308 Lab Spring 2009
9S12 Subsystems: Pulse Width Modulation, A/D Converter, and Synchronous Serial Interface In this sequence of three labs you will learn to use three of the MC9S12's hardware subsystems. WEEK 1 Pulse Width
More informationµchameleon 2 User s Manual
µchameleon 2 Firmware Rev 4.0 Copyright 2006-2011 Starting Point Systems. - Page 1 - firmware rev 4.0 1. General overview...4 1.1. Features summary... 4 1.2. USB CDC communication drivers... 4 1.3. Command
More informationMask Set Errata for Mask 4L11Y
Freescale Semiconductor MSE9S08GB60A_4L11Y Mask Set Errata Rev. 1, 9/2011 Mask Set Errata for Mask 4L11Y Introduction This report applies to mask 4L11Y for these products: MC9S08GB60A MC9S08GT60A MC9S08GB32A
More informationPWM_8B8C. Block User Guide V01.16
DOCUMENT NUMBER S12PWM8B8CV1/D PWM_8B8C Block User Guide V01.16 Original Release Date: 12 MAR 1998 Revised: 14 MAR 2002 Motorola Inc. Motorola reserves the right to make changes without further notice
More informationContents. ZT530PCI & PXI Specifications. Arbitrary Waveform Generator. 16-bit, 400 MS/s, 2 Ch
ZT530PCI & PXI Specifications Arbitrary Waveform Generator 16-bit, 400 MS/s, 2 Ch Contents Outputs... 2 Digital-to-Analog Converter (DAC)... 3 Internal DAC Clock... 3 Spectral Purity... 3 External DAC
More informationMicrocontrollers: 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 informationHOMANN DESIGNS. DigiSpeed. Instruction manual. Version 1.0. Copyright 2004 Homann Designs.
HOMANN DESIGNS DigiSpeed Instruction manual Version 1.0 Copyright 2004 Homann Designs http://www.homanndesigns.com Table of Contents Introduction...3 Features...3 DigiSpeed Operation Description...5 Overview...5
More information