For reference only Refer to the latest documents for details
|
|
- Dustin Bates
- 5 years ago
- Views:
Transcription
1 STM32F3 Technical Training For reference only Refer to the latest documents for details
2 General Purpose Timers (TIM2/3/4/5 - TIM12/13/14 - TIM15/16/17 - TIM6/7/18)
3 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 TIM6/7/18 STM32F30x Timer features overview 3 Counter resolution Counter Type Prescaler factor DMA Capture Compare channels Synchronization Master config Slave config General purpose TIM2 General purpose TIM3 and TIM4 32 bit 16 bit Up, Down and Up/Down Up, Down and Up/Down YES 4 YES YES YES 4 YES YES Basic TIM6 and TIM7 16 bit Up YES 0 YES NO 1 channel, 1 complementary output TIM16 and TIM17 2 channels, 1 complementary output TIM15 16 bit Up NO 1 YES (1) NO 16 bit Up NO 2 YES YES (1) TIM16 and TIM17 have no TRGO output, instead OC output is used
4 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 TIM6/7/18 STM32F37x Timer features overview 4 Counter resolution Counter Type Prescaler factor DMA Capture Compare channels Synchronization Master config Slave config General purpose TIM2 and TIM5 32 bit Up, Down and Up/Down YES 4 YES YES General purpose TIM3, TIM4 and TIM19 16 bit Up, Down and Up/Down YES 4 YES YES Basic TIM6, TIM7 and TIM18 1 channel, 1 complementary output TIM16 and TIM17 2 channels, 1 complementary output TIM15 16 bit Up YES 0 YES NO 16 bit Up NO 1 YES (1) NO 16 bit Up NO 2 YES YES 1 channel TIM13 and TIM14 16 bit Up NO 1 YES (2) NO 2 channels TIM12 16 bit Up NO 2 NO YES (1) TIM16 and TIM17 have no TRGO output, instead OC output is used (2) TIM13 and TIM14 have no TRGO output, instead OC output is used
5 TIM2/5 TIM3/4/19 Features overview (1/3) 5 Up to 4 16-bit resolution Capture Compare channels (TIM3/4/19) ETR Clock ITR 1 ITR 2 ITR 3 ITR 4 Trigger/Clock Controller Trigger Output Up to 4 32-bit resolution Capture Compare channels (TIM2/5) Inter-timers synchronization 16-Bit Prescaler +/- 16/32-Bit Counter Auto Reload REG Up to 6 IT/DMA Requests Encoder Interface Hall sensor Interface CH1 CH2 CH3 Capture Compare Capture Compare Capture Compare Capture Compare CH1 CH2 CH3 CH4 CH4
6 TIM12 TIM15 Features overview (2/3) 6 Up to 2 16-bit resolution Capture Compare channels ETR Clock ITR 1 ITR 2 ITR 3 ITR 4 Trigger/Clock Controller Trigger Output Inter-timers synchronization 16-Bit Prescaler Encoder Interface Auto Reload REG Only TIM15 has complementery output on channel1 CH1 +/- 16/32-Bit Counter CH1 Capture Compare Capture Compare CH1 Comp CH2 CH2
7 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 TIM6/7/18 Features overview (3/3) 7 One 16-bit resolution Capture Compare channels ETR Clock ITR 1 ITR 2 ITR 3 ITR 4 Trigger/Clock Controller Trigger Output Only TIM16/17 has complementary output on channel 1 16-Bit Prescaler +/- 16/32-Bit Counter Auto Reload REG CH1 CH1 Capture Compare CH1 Comp
8 TIM2/5 TIM3/4/19 Counting Modes (1/2) 8 There are three counter modes: Up counting mode Down counting mode Center-aligned mode Center Aligned Up counting Down counting Update Event
9 TIM12 TIM15 TIM13/14 TIM16/17 TIM6/7/18 Counting Modes (2/2) 9 There is only one counting mode: Up counting mode Up counting Update Event
10 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 Update Event 10 The content of the preload register is transferred into the shadow register depends on the Auto-reload Preload feature if enabled or not If enabled, at each Update Event the transfer occurs If not enabled, the transfer occurs Immediately The Update Event is generated For each counter overflow/underflow Through software, by setting the UG bit (Update Generation) The Update Event (UEV) request source can be configured to be Next to counter overflow/underflow event Nest to Counter overflow/underflow event plus the following events Setting the UG bit by software Trigger active edge detection (through the slave mode controller)
11 TIM2/5 TIM3/4/19 TIM12 TIM15 Counter Clock Selection 11 Clock can be selected out of 8 sources Internal clock TIMxCLK provided by the RCC Internal trigger input 1 to 4: ITR1 / ITR2 / ITR3 / ITR4 Using one timer as prescaler for another timer External Capture Compare pins Pin 1: TI1FP1 or TI1F_ED Pin 2: TI2FP2 External pin ETR TIMxCLK ETR Polarity selection & Edge Detector & Prescaler & Filter Trigger Controller Enable/Disable bit Programable polarity 4 Bits External Trigger Filter External Trigger Prescaler: ITR1 ITR2 ITR3 ITR4 TI1F_ED Controller TRGO Prescaler off Division by 2 Division by 4 TI1FP1 TI2FP2 Division by 8
12 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 Capture Compare Array presentation 12 Up to 4 channels TIM2/3/4/5/19 have 4 channels TIM12/15 have 2 channels TIM13/14/16/17 have one channel TIM6/7/18 have no channels Programmable bidirectional channels Input direction: channel configured in Capture mode Output direction: Channel configured in Compare mode Channel s main functional blocs Capture/Compare register Input stage for capture 4-bit digital filter Input Capture Prescaler: Output stage for Compare Output control bloc
13 TIM2/5 TIM3/4/19 Capture stage architecture Input Capture Mode (1/2) 13 TI1 Input Filter & Edge detector TRC IC1 Prescaler 16 bit Capture/Compare 1 Register TI2 Input Filter & Edge detector TRC IC2 Prescaler 16 bit Capture/Compare 2 Register TI3 Input Filter & Edge detector TRC IC3 Prescaler 16 bit Capture/Compare 3 Register TI4 Input Filter & Edge detector TRC IC4 Prescaler 16 bit Capture/Compare 4 Register
14 TIM2/5 TIM3/4/19 Input Capture Mode (2/2) 14 Flexible mapping of TIx inputs to channels inputs ICx {TI1->IC1}, {TI1->IC2}, {TI2->IC1} and {TI2->IC2} are possible When an active Edge is detected on ICx input, the counter value is latched in the corresponding CCR register. When a Capture Event occurs, the corresponding CCXIF flag is set and an interrupt or a DMA request can be sent if they are enabled. An over-capture flag for over-capture signaling Takes place when a Capture Event occurs while the CCxIF flag was already high
15 TIM2/5 TIM3/4/19 TIM12 TIM15 PWM Input Mode 15 Timer Clock IC1 and IC2 must be configured to be connected together to the PWM signal: PWM IC1 and IC2 are redirected internally to be mapped to the same external pin TI1 or TI2. PWM IC1 Counter IC2 IC1 and IC2 active edges must have opposite polarity. IC1 - DUTY CYCLE IC2 - PERIOD IC1 or IC2 is selected as trigger input and the slave mode controller is configured in reset mode. The PWM Input functionality enables the measurement of the period and the pulse width of an external waveform. 6 10
16 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 Output Compare Mode 16 The Output Compare is used to control an output waveform or indicate when a period of time has elapsed. When a match is found between the capture/compare register and the counter: The corresponding output pin is assigned to the programmable Mode, it can be: Set Reset Timer Clock OC1 Interrupt Interrupt Toggle Remain unchanged Set a flag in the interrupt status register New CCR1 Generates an interrupt if the corresponding interrupt mask is set CCR1 Send a DMA request if the corresponding enable bit is set The CCRx registers can be programmed with or without preload registers
17 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 PWM Mode 17 Available on all channels Two PWM mode available PWM mode 1 PWM mode 2 Each PWM mode behavior (waveform shape) depends on the counting direction Edge-aligned Mode Center-aligned Mode Timer Clock AutoReload Capture Compare Update Event Timer Clock AutoReload Capture Compare Update Event OCx OCx
18 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 One Pulse Mode (1/2) 18 TI2 One Pulse Mode (OPM) is a particular case of Output Compare mode It allows the counter to be started in response to a stimulus and to generate a pulse With a programmable length After a programmable delay There are two One Pulse Mode waveforms selectable by software: Single Pulse Repetitive Pulse TIM_ARR TIM_CCR1 OC1REF OC1 t Delay t Pulse t
19 TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14 TIM16/17 One Pulse Mode (2/2) 19 Exercise: How to configure One Pulse Mode to generate a repetitive Pulse in response to a stimulus? One Pulse Mode configuration steps 1. Input Capture Module Configuration: i. Map TIxFPx on the corresponding TIx. ii. iii. iv. TIxFPx Polarity configuration. TIxFPx Configuration as trigger input. TIxFPx configuration to start the counter (Trigger mode) 2. Output Compare Module Configuration: i. OCx configuration to generate the corresponding waveform. ii. iii. OCx Polarity configuration. t Delay and t Pulse definition. 3. One Pulse Module Selection: Set or Reset the corresponding bit (OPM) in the Configuration register (CR1).
20 TIM2/5 TIM3/4/19 TIM12 TIM15 Encoders are used to measure position and speed of mobile systems (either linear or angular) Encoder Interface (1/2) 20 The encoder interface mode acts as an external clock with direction selection Encoders and Microcontroller connection example: A can be connected directly to the MCU without external interface logic. The third encoder output which indicates the mechanical zero position, may be connected to an external interrupt and trigger a counter reset. Trigger Controller Controller Encoder Interface Encoder enhancement A copy of the Update Interrupt Flag (UIF) is copied into bit 31 of the counter register Simultaneous read of the Counter value and the UIF flag : Simplify the position determination TI1 TI2 Polarity Select & Edge Controller Polarity Select & Edge Controller
21 TIM2/5 TIM3/4/19 TIM12 TIM15 Exercise: Encoder Interface (2/2) 21 How to configure the Encoder interface to detect the rotation direction of a motion system? Encoder interface configuration steps: 1. Select the active edges: example counting on TI1 and TI2. 2. Select the polarity of each input: example TI1 and TI2 polarity not inverted. 3. Select the corresponding Encoder Mode. 4. Enable the counter.
22 TIM2/5 TIM3/4/19 Hall sensor Interface (1/2) 22 Hall A TI1F_ED Trigger & Slave Mode Controller Hall B Hall C TI1 XOR Input Filter & Edge detector IC1 Prescaler 16 bit Capture/Compare 1 Register TRC TI2 Input Filter & Edge detector TRC IC2 Prescaler 16 bit Capture/Compare 2 Register TI3 Input Filter & Edge detector IC3 Prescaler 16 bit Capture/Compare 3 Register TRC TI4 Input Filter & Edge detector TRC IC4 Prescaler 16 bit Capture/Compare 4 Register
23 TIM2/5 TIM3/4/19 Hall sensor Interface (2/2) 23 Hall sensors are used for: Speed detection Position sensor Brushless DC Motor Sensor How to configure the TIM to interface with a Hall sensor? Select the hall inputs for TI1: TI1S bit in the CR2 register The slave mode controller is configured in reset mode TI1F_ED is used as input trigger To measure a motor speed: Use the Capture/Compare Channel 1 in Input Capture Mode The Capture Signal is the TRC signal The captured value which correspond to the time elapsed between 2 changes on the inputs, gives an information about the motor speed
24 Gated Mode Triggered Mode TIM2/5 TIM3/4/19 TIM12 TIM15 Synchronization Mode Configuration 24 The Trigger Output can be controlled on: Counter reset Counter enable Update event OC1 / OC1Ref / OC2Ref / OC3Ref / OC4Ref signals Clock Master ARR Master CNT Master Trigger Out The slave timer can be controlled in two modes: Triggered mode : only the start of the counter is controlled Gated Mode: Both start and stop of the counter are controlled Reset Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter Slave CNT Clock New Master CCR1 Master CCR1 Master CNT Master CC1 Slave CNT
25 TIM2/5 TIM3/4/19 TIM12 TIM15 Synchronization: Configuration examples (1/3) 25 Cascade mode: TIM3 used as master timer for TIM2 TIM2 configured as TIM3 slave, and master for TIM15 MASTER CLOCK prescaler Timer 3 Trigger Controller TRG 1 counter Update SLAVE / MASTER ITR 1 ITR 3 ITR 4 Timer 2 prescaler Trigger Controller TRG 2 SLAVE counter Update ITR0 Timer 15 ITR2 ITR 4 prescaler counter
26 TIM2/5 TIM3/4/19 TIM12 TIM15 Synchronization: Configuration examples (2/3) 26 One Master several slaves: TIM2 used as master for TIM3, TIM4 and TIM15 CLOCK prescaler counter MASTER Timer 2 Update Trigger Controller TRG1 ITR1 ITR 3 ITR 4 SLAVE 1 Timer 3 prescaler counter SLAVE 2 ITR 3 ITR 2 ITR 4 Timer 4 prescaler counter ITR3 ITR 2 ITR 4 SLAVE 3 TIM15 prescaler counter
27 TIM2/5 TIM3/4/19 TIM12 TIM15 Synchronization: Configuration examples (3/3) 27 Timers and external trigger synchronization TIM2, TIM3 and TIM4 are slaves for an external signal connected to respective Timers inputs TIM2 TIM3 TIM4 Trigger Controller TRGO Trigger Controller TRGO Trigger Controller TRGO External Trigger
28 28
ELEC 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 informationAN2581 Application note
AN2581 Application note STM32F10xxx TIM application examples Introduction This application note is intended to provide practical application examples of the STM32F10xxx TIMx peripheral use. This document,
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 informationSTM32 for Motor Control. Applications. Features and benefits. MCU Division. Applications
STM32 for Motor Control Applications MCU Division Applications Features and benefits Plan PWM generation Speed / position feedback Multi timer configuration Analog to Digital converter Current sensing
More informationECE 271 Microcomputer Architecture and Applications University of Maine
ECE Microcomputer Architecture and Applications Lab : Pulse Width Modulation Instructor: Prof. Yifeng Zhu Spring Goals. Understand the concept of Pulse Width Modulation (PWM). Use PWM to control the LED
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 informationCourse 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 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 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 informationDesigning 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 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 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 informationUsing 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 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 informationMicromouse Meeting #3 Lecture #2. Power Motors Encoders
Micromouse Meeting #3 Lecture #2 Power Motors Encoders Previous Stuff Microcontroller pick one yet? Meet your team Some teams were changed High Level Diagram Power Everything needs power Batteries Supply
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 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 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 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 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 informationAN4507 Application note
Application note PWM resolution enhancement through a dithering technique for STM32 advanced-configuration, general-purpose and lite timers Introduction Nowadays power-switching electronics exhibit remarkable
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 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 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 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 informationAN4062 Application note
Application note STM32F0DISCOVERY peripheral firmware examples Introduction This application note describes the peripheral firmware examples provided for the STM32F0DISCOVERY Kit. These ready-to-run examples
More informationHello, 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 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 information32-bit Microcontroller for Home
32-bit Microcontroller for Home Appliances This is a FUJITSU microcontroller adopting a 5V interface and a 32-bit RISC CPU as the core for application in high-function home appliances. MB91F479, the first
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 informationUnit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION
M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION Microcomputer system design requires
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 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 informationECE 271 Microcomputer Architecture and Applications University of Maine. Lab 7: Pulse Width Modulation Instructor: Prof. Yifeng Zhu Spring 2016
Lab : Pulse Width Modulation Instructor: Prof. Yifeng Zhu pring Goals. Understand the concept of Pulse Width Modulation (PWM). Use PWM to control the LED brightness Pre-Lab Assignment. Read Chapter. PWM
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 information1X6610 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 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 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 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 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 informationControl of a DC/DC Converter Using FlexPWM s Force-Out Logic
NXP Semiconductors Document Number: AN4794 Application Note Rev. 2, 06/2016 Control of a DC/DC Converter Using FlexPWM s Force-Out Logic Implemented with MPC564xL By: Yves Briant 1. Introduction The MPC560xP
More informationGenerating DTMF Tones Using Z8 Encore! MCU
Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate
More informationa8259 Features General Description Programmable Interrupt Controller
a8259 Programmable Interrupt Controller July 1997, ver. 1 Data Sheet Features Optimized for FLEX and MAX architectures Offers eight levels of individually maskable interrupts Expandable to 64 interrupts
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 informationProduct Information Using the SENT Communications Output Protocol with A1341 and A1343 Devices
Product Information Using the SENT Communications Output Protocol with A1341 and A1343 Devices By Nevenka Kozomora Allegro MicroSystems supports the Single-Edge Nibble Transmission (SENT) protocol in certain
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 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 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 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 informationRV-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 informationHigh Speed Counter (HSC) Self-Help Guide
SUP0776-02 26 JAN 2005 KEEP WITH USER MANUAL. High Speed Counter (HSC) Self-Help Guide This guide covers: HE800HSC600/601 and HE820HSC600/601 SmartStack modules. HE500OCS033/063 and HE500OCS034/064 MiniOCS
More informationExercise 1: EXCLUSIVE OR/NOR Gate Functions
EXCLUSIVE-OR/NOR Gates Digital Logic Fundamentals Exercise 1: EXCLUSIVE OR/NOR Gate Functions EXERCISE OBJECTIVE When you have completed this exercise, you will be able to demonstrate the operation of
More informationECE 271 Microcomputer Architecture and Applications University of Maine
Lab 11: Digital to Analog Converter (DAC) Instructor: Prof. Yifeng Zhu Spring 2016 Goals 1. Understand basic concepts of DAC conversions 2. Configure DAC resolution and sampling rate 3. Use a timer to
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 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 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 informationLaboratory Manual CS (P) Digital Systems Lab
Laboratory Manual CS 09 408 (P) Digital Systems Lab INDEX CYCLE I A. Familiarization of digital ICs and digital IC trainer kit 1 Verification of truth tables B. Study of combinational circuits 2. Verification
More informationDigital Logic Circuits
Digital Logic Circuits Let s look at the essential features of digital logic circuits, which are at the heart of digital computers. Learning Objectives Understand the concepts of analog and digital signals
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 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 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 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 informationRL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group.
RL78 Motor Control YRMCKITRL78G14 Starter Kit Renesas Electronics Europe David Parsons Application Engineering Industrial Business Group July 2012 Renesas MCU for 3-phase Motor Control Control Method Brushless
More informationApplication Note. Brushless DC Motor Control AN-1114
Application Note AN-1114 Abstract In this application note a GreenPAK configuration applicable for a single-phase BLDC motor is introduced. This application note comes complete with design files which
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 informationSmall DC Motor Control
APPLICATION NOTE Small DC Motor Control JAFAR MODARES ECO APPLICATIONS September 1988 Order Number 270622-001 Information in this document is provided in connection with Intel products Intel assumes no
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 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 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 informationMigrate PWM from MC56F8013 to MC How to set up the PWM peripheral on the MC56F8247 using the setting of the PWM on the MC56F8013
Freescale Semiconductor Application Note Document Number: AN4319 Rev. 0, 06/2011 Migrate PWM from MC56F8013 to MC568247 How to set up the PWM peripheral on the MC56F8247 using the setting of the PWM on
More informationFR FAMILY MB91460 PULSE FREQUENCY MODULATOR 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note
Fujitsu Microelectronics Europe Application Note MCU-AN-300065-E-V10 FR FAMILY 32-BIT MICROCONTROLLER MB91460 PULSE FREQUENCY MODULATOR APPLICATION NOTE Revision History Revision History Date 2008-06-05
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 informationDead-Time Generation on the TMS320C24x. Application Report SPRA371
Dead-Time Generation on the TMSCx Application Report SPRA7 IMPORTANT NOTICE Texas Instruments (TI) reserves the right to make changes to its products or to discontinue any semiconductor product or service
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 informationI 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 informationExercise 1: AND/NAND Logic Functions
Exercise 1: AND/NAND Logic Functions EXERCISE OBJECTIVE When you have completed this exercise, you will be able to determine the operation of an AND and a NAND logic gate. You will verify your results
More informationDIGITAL UTILITY SUB- SYSTEMS
DIGITAL UTILITY SUB- SYSTEMS INTRODUCTION... 138 bandpass filters... 138 digital delay... 139 digital divide-by-1, 2, 4, or 8... 140 digital divide-by-2, 3, 4... 140 digital divide-by-4... 141 digital
More informationAN4277 Application note
Application note Using STM32 device PWM shut-down features for motor control and digital power conversion Introduction The purpose of this application note is to describe the STM32 device timer break feature
More informationUniversal Driver Software User Guide FP-GPIO96 FeaturePak 96-bit digital I/O module For Version and later
Universal Driver Software User Guide FP-GPIO96 FeaturePak 96-bit digital I/O module For Version 7.0.0 and later Copyright 2015 Diamond Systems Corporation www.diamondsystems.com 1.0 Table of Contents 1.0
More informationHow to configure trigger output signals
How to configure trigger output signals This material shows how to configure the instrument to output the trigger signals at the specified timing using Agilent B2961A/B2962A Power Source, through an example
More informationSafety Mechanism Implementation for Motor Applications in Automotive Microcontroller
Safety Mechanism Implementation for Motor Applications in Automotive Microcontroller Chethan Murarishetty, Guddeti Jayakrishna, Saujal Vaishnav Automotive Microcontroller Development Post Silicon Validation
More informationHello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control
Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control protocols will be presented. 1 The Infrared Timer peripheral
More informationMotor Control using NXP s LPC2900
Motor Control using NXP s LPC2900 Agenda LPC2900 Overview and Development tools Control of BLDC Motors using the LPC2900 CPU Load of BLDCM and PMSM Enhancing performance LPC2900 Demo BLDC motor 2 LPC2900
More informationMapping 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 informationSection 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 informationME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview
ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair Overview For this assignment, you will be controlling the light emitted from and received by an LED/phototransistor pair. There are many
More informationF²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG
Fujitsu Microelectronics Europe Application Note MCU-AN-300020-E-V10 F²MC-8FX/16LX/16FX/FR FAMILY 8/16/32-BIT MICROCONTROLLER ALL SERIES BLDC DRIVE WITH THE PPG APPLICATION NOTE Revision History Revision
More informationCapture/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 informationDigital Electronics Course Objectives
Digital Electronics Course Objectives In this course, we learning is reported using Standards Referenced Reporting (SRR). SRR seeks to provide students with grades that are consistent, are accurate, and
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 informationHIGH 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 informationUsing the HT46R12 in an Induction Cooker
D/N:HA0101E Introduction The HT46R12 and HT46R14 are two devices from Holtek s A/D series of MCUs. These two MCUs each include an integrated PPG (Programmable Pulse Generator) function. By having this
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 informationSTM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China
STM32 PMSM FOC SDK v3.2 蒋建国 MCU Application Great China Agenda 2 1 st day Morning Overview Key message Basics Feature Performance Hardware support Tools STM32 MC Workbench SDK components Architectural
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 informationinstabus EIB product documentation
Page: 1 of 39 Push button interface 4-gang Sensor Product name: Push button interface 4-gang Design: UP (flush-mounting type) Item no.: 2076-4T-01 ETS search path: Input / Binary Input, 4-gang / Push button
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 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 informationCastle Creations, INC.
Castle Link Live Communication Protocol Castle Creations, INC. 6-Feb-2012 Version 2.0 Subject to change at any time without notice or warning. Castle Link Live Communication Protocol - Page 1 1) Standard
More information