Timer A. Last updated 8/7/18

Size: px
Start display at page:

Download "Timer A. Last updated 8/7/18"

Transcription

1 Last updated 8/7/18

2 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 counter value when a trigger event occurs Sets a flag and/or creates an interrupt Pulse Width Modulation (PWM) Creates an automated PWM signal 2 tj

3 Advanced Timer Function Output Compare Sets a flag and/or creates an interrupt when the counter value matches a value programmed into a separate register Delay Counter in Periodic Mode Count up or down - to or from the Max Value Compare Register Holds the value to compare with the counter value When matched create a flag/interrupt 3 tj

4 count Advanced Timer Function Output Compare Compare Register up/down clock Programmable Up/Down Counter Overflow Flag Action Interrupt (Max Value) Flag Flag Flag compare value time 4 tj

5 Advanced Timer Function Input Capture Captures the timer count when an input event occurs Sets a flag and/or creates an interrupt Delay Counter in Periodic Mode Count up or down - to or from the Max Value Capture Register Holds the value of the counter when an input event occurs 5 tj

6 count Advanced Timer Function Input Capture event Capture Register up/down clock Programmable Up/Down Counter Overflow Flag Action Interrupt (Max Value) Input Event Flag/Interrupt Count stored in register time 6 tj

7 Advanced Timer Function Pulse Width Modulation (PWM) Create an output waveform based on two counter values Many variations Delay Counter in Periodic Mode Count up or down - to or from the Max Value Compare Register(s) Holds the value to compare with the counter value When matched create a flag/interrupt Waveform Generator Creates output transitions based on timer events 7 tj

8 output count Advanced Timer Function PWM Compare Register up/down clock Programmable Up/Down Counter Overflow Flag Event Interrupt (Max Value) Waveform Generator Output Signal Flag Flag Flag compare value set on wrap many variations clear on flag 8 tj

9 MSP432 9 tj

10 MSP432 ARM (AMBA Compliant) timer 4 16 bit timers 3 Timer Modes Up Continuous Up/Down 4 Capture/Compare Modes Timer Capture Compare PWM 10 tj

11 MSP432 4 Timers - each with 5 capture/compare blocks Timer 1 of 5 Capture/Compare Blocks 11 tj

12 count MSP432 Timer - Up mode Max count value is 2 16 TAxCCR0 register holds the upper limit for the count 2 Flags CCIFG set when counter reaches TAxCCR0value TAIFG set when the counter wraps around to 0 TAxCCR0 value CCIFG Flag CCIFG Flag CCIFG Flag 1 clock separation between the two flags TAIFG Flag TAIFG Flag TAIFG Flag 12 tj

13 count MSP432 Timer - Continuous mode Count value is 2 16 TAIFG set when the counter wraps around to 0 Count Value 2 16 TAIFG Flag TAIFG Flag TAIFG Flag 13 tj

14 count MSP432 Timer - Up/Down mode Max count value is 2 16 Allows for 2x period TAxCCR0 register holds the upper limit for the count 2 Flags CCIFG set when counter reaches TAxCCR0value TAIFG set when the counter reaches 0 TAxCCR0 value CCIFG Flag CCIFG Flag TAIFG Flag TAIFG Flag 14 tj

15 MSP432 Capture/Compare Block Capture Mode 5 Capture blocks in each timer 2 trigger inputs CCIxA, CCIxB Can be tied to internal or external signals (pins) Can select rising edge trigger, falling edge trigger or both Captured timer value stored in TAxCCRn CCIFG flag is set Input value is visible as the CCI bit Overflow bit (COV) to indicate a second trigger has been received prior to clearing the first trigger 15 tj

16 MSP432 Capture/Compare Block Compare Mode/PWM Mode 5 Compare blocks in each timer Desired Compare values stored in TAxCCRn (n = 0:4) CCIFG flag is set Internal signal EQUn is set modifies output modes Input signal CCI is latched into SCCI Used to create periodic interrupts or PWM signals 16 tj

17 MSP432 Timer Output Block Automatically create output signals 8 modes set by OUTMODx bits Outputs based on EQU0 (count matches CCR0) and EQUn (count matches CCRn) 17 tj

18 MSP432 n Timer in UP mode 18 tj

19 MSP432 n Timer in Continuous mode 19 tj

20 MSP432 n Timer in Up/Down mode 20 tj

21 MSP432 Interrupts 2 interrupt vectors TAxCCR0 vector Used for the CCIFG flag for TAxCCR0 only TAxIV vector CCIFG flag set in capture mode on TAxCCRn CCIFG flag set in compare mode on TAxCCRn TAIFG flag 21 tj

22 MSP432 Interrupts TAxIV vector generator CCIFG and TAIFG flags are combined into a single interrupt vector The highest priority enabled interrupt generator is stored in the TAxIV register Can be evaluated or added to PC to execute the ISR Reading TAxIV clears the current interrupt flag and activates the next highest pending interrupt 22 tj

23 MSP432 Calculation examples Desire a 1KHz 50% duty cycle square wave Timer in UP mode Tclk = 12MHz 12MHz clk 83.33ns/clk 1KHz 1ms period 12,000 12MHz clks / 1KHz period for a square wave MHz clks low, MHz clks high 12,000 clks is well within our 65,536 maximum limit 23 tj

24 MSP432 Calculation examples for a square wave MHz clks low, MHz clks high Choose set/reset mode Max = 12,000 clks Target = 6000 clks n Up mode Fcounter = 12MHz TA0CCR0 = TA0CCR1 = KHz Square wave 24 tj

25 MSP432 Calculation examples Timer in UP mode Tclk = 12MHz Desire a 1KHz 25% duty cycle square wave Solution 25 tj

26 MSP432 Calculation examples Timer in UP mode Tclk = 12MHz Desire a 100Hz 75% duty cycle square wave Solution 26 tj

27 MSP432 Registers 27 tj

28 MSP432 Control Register 28 tj

29 MSP432 Control Register Fclk = CLK src / 2 ID / TAIDEX 29 tj

30 MSP432 Counter Register 30 tj

31 MSP432 Capture/Compare Control Register tj

32 MSP432 Capture/Compare Control Register 32 tj

33 MSP432 Capture/Compare Control Register 33 tj

34 MSP432 Capture/Compare Register tj

35 MSP432 Interrupt Register 35 tj

36 MSP432 Clock Divider Register Fclk = CLK src / 2 ID / TAIDEX 36 tj

Lab 5 Timer Module PWM ReadMeFirst

Lab 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 information

This section describes the basic functions of a the general purpose 16-bit Timer_A in MSP430 based system.

This section describes the basic functions of a the general purpose 16-bit Timer_A in MSP430 based system. MSP43 Family _A _A This section describes the basic functions of a the general purpose 6-bit _A in MSP43 based system. Topic Page. Operation of _A -3. Registers of _A -7.3 _A in Applications -8.4 _A special

More information

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -3 1 UNIT 3

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -3 1 UNIT 3 IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -3 1 UNIT 3 Timers of MSP430 3.1. Basic Timer1 3.2. Timer_A 3.3. Edge aligned PWM output 3.4. Measurement in Capture mode ( Time period, duration, frequency)

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

University of Texas at El Paso Electrical and Computer Engineering Department

University of Texas at El Paso Electrical and Computer Engineering Department University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 05 Pulse Width Modulation Goals: Bonus: Pre Lab Questions: Use Port

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

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

Timer A (0 and 1) and PWM EE3376

Timer 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 information

Chapter 6 PROGRAMMING THE TIMERS

Chapter 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 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

ATmega16A Microcontroller

ATmega16A 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 information

For reference only Refer to the latest documents for details

For 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 information

Lecture 6: More on Timers and PWM

Lecture 6: More on Timers and PWM ECE342 Digital II Lecture 6: More on Timers and PWM Ying Tang Electrical and Computer Engineering Rowan University 1 Timer in Capture Mode What Does a Timer Really Do? Capture a selected input from either

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

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

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

EE 308 Apr. 24, 2002 Review for Final Exam

EE 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 information

EEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li

EEL 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 information

Reading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications

Reading 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 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

ELEC 3040/3050 Lab #7

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 information

8253 functions ( General overview )

8253 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 information

ME 461 Laboratory #2 Timers and Pulse-Width Modulation

ME 461 Laboratory #2 Timers and Pulse-Width Modulation ME 461 Laboratory #2 Timers and Pulse-Width Modulation Goals: 1. Understand how to use timers to control the frequency at which events occur. 2. Generate PWM signals using Timer A. 3. Explore the frequency

More information

1 Contents 2 2 Overview 3 3 Hardware Interface 4 4 Software Interface Register Map Interrupts 7

1 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 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

Timing System. Timing & PWM System. Timing System components. Usage of Timing System

Timing 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 information

VORAGO Timer (TIM) subsystem application note

VORAGO 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 information

Lab 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) 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 information

Review for Final Exam

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 information

LM4: The timer unit of the MC9S12DP256B/C

LM4: 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 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

Switch/ Jumper Table 1-1: Factory Settings Factory Settings (Jumpers Installed) Function Controlled Activates pull-up/ pull-down resistors on Port 0 digital P7 I/O lines Activates pull-up/ pull-down resistors

More information

EE251: Thursday October 25

EE251: 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 information

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

Lazy Clock Electronics and Software

Lazy Clock Electronics and Software Lazy Clock Electronics and Software Introduction The Lazy Clock is a wood gear mechanical clock driven by a low-power solenoid that fires only once per minute. An MSP430 microcontroller, clocked with a

More information

Graphical Control Panel User Manual

Graphical 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 information

Review for Final Exam

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 information

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10 uc Crash Course Joshua Childs Joshua Hartman A. A. Arroyo Whats is covered in this lecture ESD Choosing A Processor GPIO USARTS o RS232 o SPI Timers o Prescalers o OCR o ICR o PWM ADC Interupts 1 ESD KILLS!

More information

The MC9S12 Pulse Width Modulation System. Pulse Width Modulation

The 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 information

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION

CHAPTER 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 information

Utilizing the Trigger Routing Unit for System Level Synchronization

Utilizing the Trigger Routing Unit for System Level Synchronization Engineer-to-Engineer Note EE-360 Technical notes on using Analog Devices DSPs, processors and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors

More information

Using the Timer/Event Counter in the HT47R20A-1

Using the Timer/Event Counter in the HT47R20A-1 Using the Timer/Event Counter in the HT47R20A-1 D/N HA0031E Introduction The following notes introduce the usage of the HT47R20A-1 Timer/Event Counter. The HT47R20A-1 has a 16 bit continuous counting timer/counter

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

Page 1. So Far. Usage Examples. Input Capture Basics. Familiar with CS/ECE 6780/5780. Al Davis. Trigger interrupts on rising/falling/both edges

Page 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 information

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

USB4. 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 information

Measuring Distance Using Sound

Measuring Distance Using Sound Measuring Distance Using Sound Distance can be measured in various ways: directly, using a ruler or measuring tape, or indirectly, using radio or sound waves. The indirect method measures another variable

More information

EE 308 Spring 2013 The MC9S12 Pulse Width Modulation System

EE 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 information

Using the Z8 Encore! XP Timer

Using 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 information

SPI Slave to PWM Generation

SPI Slave to PWM Generation April 2011 Introduction Reference Design RD1107 Pulse-width modulation (PWM) uses a rectangular pulse wave whose pulse width is modulated resulting in the variation of the average value of the waveform.

More information

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK Team Members: Andrew Blanford Matthew Drummond Krishnaveni Das Dheeraj Reddy 1 Abstract: The goal of the project was to build an interactive and mobile

More information

Timer/Counter with PWM

Timer/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 information

MBI5031 Application Note

MBI5031 Application Note MBI5031 Application Note Foreword MBI5031 is specifically designed for D video applications using internal Pulse Width Modulation (PWM) control, unlike the traditional D drivers with external PWM control,

More information

F²MC-16FX FAMILY ALL SERIES PROGRAMMABLE PULSE GENERATOR 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²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 information

ECE251: Tuesday October 3 0

ECE251: Tuesday October 3 0 ECE251: Tuesday October 3 0 Timer Module Continued Review Pulse Input Characterization Output Pulses Pulse Count Capture Homework #6 due Thursday Lab 7 (Maskable Interrupts/ SysTick Timer) this week. Significant

More information

EECS 373 Design of Microprocessor-Based Systems

EECS 373 Design of Microprocessor-Based Systems EECS 373 Design of Microprocessor-Based Systems Thomas Schmid University of Michigan Lecture 8: Timers: count, compare, capture, PWM September 28, 2010 http://home.netcom.com/~swansont/science.html 1 Minute

More information

CS/ECE/EEE/INSTR F241 MICROPROCESSOR PROGRAMMING & INTERFACING MODULE 8: I/O INTERFACING QUESTIONS ANUPAMA KR BITS, PILANI KK BIRLA GOA CAMPUS

CS/ECE/EEE/INSTR F241 MICROPROCESSOR PROGRAMMING & INTERFACING MODULE 8: I/O INTERFACING QUESTIONS ANUPAMA KR BITS, PILANI KK BIRLA GOA CAMPUS CS/ECE/EEE/INSTR F241 MICROPROCESSOR PROGRAMMING & INTERFACING MODULE 8: I/O INTERFACING QUESTIONS ANUPAMA KR BITS, PILANI KK BIRLA GOA CAMPUS Q1. Distinguish between vectored and non-vectored interrupts

More information

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

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 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 information

OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin

OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin OBSTACLE EVADING ULTRASONIC ROBOT Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin ECE 511 - Fall 2011 1 Abstract The purpose of this project is to demonstrate how simple algorithms can produce

More information

Contents. ZT530PCI & PXI Specifications. Arbitrary Waveform Generator. 16-bit, 400 MS/s, 2 Ch

Contents. 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 information

MICROCONTROLLER TUTORIAL II TIMERS

MICROCONTROLLER 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 information

EE445L Fall 2012 Final Version B Page 1 of 7

EE445L Fall 2012 Final Version B Page 1 of 7 EE445L Fall 2012 Final Version B Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are done, you turn in

More information

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing UNIVERSIDADE TÉCNICA DE LISBOA INSTITUTO SUPERIOR TÉCNICO Departamento de Engenharia Informática Architectures for Embedded Computing MEIC-A, MEIC-T, MERC Lecture Slides Version 3.0 - English Lecture 23

More information

AN2581 Application note

AN2581 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 information

F²MC-16FX FAMILY ALL SERIES PROGRAMMABLE PULSE GENERATOR 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²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 information

High Resolution Pulse Generation

High Resolution Pulse Generation High Resolution Pulse Generation An Application Note for the NS9360 Processor www.digi.com 90001138 2009 Digi International Inc. All Rights Reserved. Digi, Digi International, and the Digi logo are trademarks

More information

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Unit-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 information

Single Chip Velocity Measurement System for Incremental Optical Encoders

Single Chip Velocity Measurement System for Incremental Optical Encoders Single Chip Velocity Measurement System for Incremental Optical Encoders Pamela Bhatti, Blake Hannaford* Department of Electrical Engineering University of Washington, Seattle, WA 98195-2500 * corresponding

More information

EE445L Fall 2015 Quiz 2 Page 1 of 5

EE445L Fall 2015 Quiz 2 Page 1 of 5 EE445L Fall 2015 Quiz 2 Page 1 of 5 Jonathan W. Valvano First: Last: November 20, 2015, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

Freescale Semiconductor, I SECTION 11 TIME PROCESSOR UNIT

Freescale 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 information

AN4062 Application note

AN4062 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 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

NIFGEN Functions Supported by Device

NIFGEN Functions Supported by Device IFGE Functions Supported by Device The following table shows a comparison of the IFGE functions between the I 5431 and the I 5421. Function I 5431 I 5421 Convert to I Possible 5421 Task Error ote Digital

More information

a8259 Features General Description Programmable Interrupt Controller

a8259 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 information

Energy Monitoring System (EMS) Abstract

Energy Monitoring System (EMS) Abstract Energy Monitoring System (EMS) Abstract Dean J. Boman Project ID: 74315 Rev - March 22, 2012 Prepared for: DesignSpark chipkit TM Challenge Abstract The Energy Monitoring System (EMS) provides real-time

More information

DM74ALS169B Synchronous Four-Bit Up/Down Counters

DM74ALS169B 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 information

EE445L Fall 2015 Quiz 2A Solution Page 1

EE445L Fall 2015 Quiz 2A Solution Page 1 EE445L Fall 2015 Quiz 2A Solution Page 1 Jonathan W. Valvano First: Last: Solution November 20, 2015, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than

More information

PCL-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 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 information

ME 461 Laboratory #3 Analog-to-Digital Conversion

ME 461 Laboratory #3 Analog-to-Digital Conversion ME 461 Laboratory #3 Analog-to-Digital Conversion Goals: 1. Learn how to configure and use the MSP430 s 10-bit SAR ADC. 2. Measure the output voltage of your home-made DAC and compare it to the expected

More information

8XC51FA FB FC PCA Cookbook

8XC51FA FB FC PCA Cookbook APPLICATION NOTE 8XC51FAFBFC PCA Cookbook February 1990 Order Number 270851-001 Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including

More information

Motor Control using NXP s LPC2900

Motor 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 information

µtasker Document µtasker Hardware Timers

µ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 information

FR FAMILY MB91460 PROGRAMMABLE PULSE GENERATOR 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

FR 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 information

DM74AS169A Synchronous 4-Bit Binary Up/Down Counter

DM74AS169A 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 information

Lecture 12 Timer Functions

Lecture 12 Timer Functions CPE 390: Microprocessor Systems Spring 2018 Lecture 12 Timer Functions Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ 07030 Adapted from HCS12/9S12

More information

Practical Exercise. STM32F4 Discovery. Alessandro Palla

Practical Exercise. STM32F4 Discovery. Alessandro Palla Practical Exercise STM32F4 Discovery Alessandro Palla alessandro.palla@for.unipi.it Outline STM32F4 Discovery Application: USB Mouse with accelerometer Hardware Configuration o o o o o Requirements Peripherals

More information

ABSTRACT. Table 1. ADS125x Family Features POWER NUMBER RESOLUTION SPEED REGISTER (BITS) (KSPS) PROGRAMMABLE CONSUMPTION INPUTS

ABSTRACT. Table 1. ADS125x Family Features POWER NUMBER RESOLUTION SPEED REGISTER (BITS) (KSPS) PROGRAMMABLE CONSUMPTION INPUTS Application Report SLAA242 May 25 INTERFACING THE ADS25/52 TO THE MSP43F449 Joe Purvis... Data Acquisition Digital Analog Converters ABSTRACT This application report demonstrates an effective method to

More information

READ THIS FIRST: *One physical piece of 8.5x11 paper (you may use both sides). Notes must be handwritten.

READ THIS FIRST: *One physical piece of 8.5x11 paper (you may use both sides). Notes must be handwritten. READ THIS FIRST: We recommend first trying this assignment in a single sitting. The midterm exam time period is 80 minutes long. Find a quiet place, grab your cheat sheet* and a pencil, and set a timer.

More information

HT8 MCU Integrated STM Timer Mode Application Note

HT8 MCU Integrated STM Timer Mode Application Note HT8 MCU Integrated STM Timer Mode Application Note HT8 MCU Integrated STM Timer Mode Application Note D/N: AN0424E Introduction One of the most fundamental functions in any microcontroller device is the

More information

FILTER_0/Prog. Delay Combination Function Macrocells Pin 3 GPIO RC Oscillator. 2-bit LUT2_0 or DFF0. 3bit LUT3_0 or DFF2

FILTER_0/Prog. Delay Combination Function Macrocells Pin 3 GPIO RC Oscillator. 2-bit LUT2_0 or DFF0. 3bit LUT3_0 or DFF2 GreenPAK Ultra-small Programmable Mixed-signal Matrix Features Pin Configuration Logic & Mixed Signal Circuits Highly Versatile Macro Cells 1.8 V (±5%) to 5 V (±10%) Supply Operating Temperature Range:

More information

MSP430 microcontroller basics: Solutions to odd-numbered examples. John H. Davies

MSP430 microcontroller basics: Solutions to odd-numbered examples. John H. Davies MSP430 microcontroller basics: Solutions to odd-numbered examples John H. Davies June 25, 2008 CHAPTER 1 Embedded electronic systems and microcontrollers Example 1.1 I counted: remote controls (4), digital

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

Course Introduction. Purpose. Objectives. Content 26 pages 4 questions. Learning Time 40 minutes

Course Introduction. Purpose. Objectives. Content 26 pages 4 questions. Learning Time 40 minutes Course Introduction Purpose This module provides an overview of sophisticated peripheral functions provided by the MCUs in the M32C series, devices at the top end of the M16C family. Objectives Gain a

More information

MODEL AND MODEL PULSE/PATTERN GENERATORS

MODEL AND MODEL PULSE/PATTERN GENERATORS AS TEE MODEL 12010 AND MODEL 12020 PULSE/PATTERN GENERATORS Features: 1.6GHz or 800MHz Models Full Pulse and Pattern Generator Capabilities Programmable Patterns o User Defined o 16Mbit per channel o PRBS

More information

Counters/Delay Generators. FILTER_0/Prog. Delay Combination Function Macrocells Pin 3. Preliminary

Counters/Delay Generators. FILTER_0/Prog. Delay Combination Function Macrocells Pin 3. Preliminary GreenPAK Programmable Mixed Signal Array Features Logic & Mixed Signal Circuits Highly Versatile Macro Cells 1.8 V (±5%) to 5 V (±10%) Supply Operating Temperature Range: -40 C to 85 C RoHS Compliant /

More information

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board IXDP610 Digital PWM Controller IC Evaluation Board General Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device, which accepts digital pulse width data from a

More information

CSCI1600 Lab 4: Sound

CSCI1600 Lab 4: Sound CSCI1600 Lab 4: Sound November 1, 2017 1 Objectives By the end of this lab, you will: Connect a speaker and play a tone Use the speaker to play a simple melody Materials: We will be providing the parts

More information

Select the single most appropriate response for each question.

Select 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 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

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006.

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006. UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING SENG 466 Software for Embedded and Mechatronic Systems Project 1 Report May 25, 2006 Group 3 Carl Spani Abe Friesen Lianne Cheng 03-24523 01-27747 01-28963

More information

MiniProg Users Guide and Example Projects

MiniProg Users Guide and Example Projects MiniProg Users Guide and Example Projects Cypress MicroSystems, Inc. 2700 162 nd Street SW, Building D Lynnwood, WA 98037 Phone: 800.669.0557 Fax: 425.787.4641 1 TABLE OF CONTENTS Introduction to MiniProg...

More information