Course Introduction. Purpose: Objectives: Content: 24 pages 3 questions. Learning Time: 35 minutes

Size: px
Start display at page:

Download "Course Introduction. Purpose: Objectives: Content: 24 pages 3 questions. Learning Time: 35 minutes"

Transcription

1 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 Objectives: Gain a basic knowledge of the capabilities, modes and applications of the multifunction timer pulse unit (MTU) Learn about the enhanced capabilities of the MTU2 and MTU2S peripherals in newer SH-2 and SH-2A devices Get details on the motor management timer, watchdog timer and compare-match timer Content: 24 pages 3 questions Learning Time: 35 minutes 1

2 SuperH Peripheral Functions SH7047 SuperH Series Microcontroller SH-2 SuperH 32-bit RISC CPU MAC32/DSP Function Multi-function Timer Pulse Unit Motor Management Timer Watchdog Timer Compare-Match Timer A/D Converter Advanced User Debugger Bus Interface I/O Ports FLASH Data Transfer Controller Bus State Controller High-performance User Debug Interface Clock Pulse Generator RAM Interrupt Controller User Break Controller Controller Area Network Function Serial Communication Interface Microcontrollers for embedded system applications require extensive on-chip peripherals to Minimize system chip count Reduce overall system cost Facilitate small system size, etc. Built-in peripheral functions must Provide required capabilities Deliver needed performance levels Offer design flexibility Maintain a basic commonality within product family, if possible Offer an acceptable cost-benefit compromise, etc.

3 Multi-function Timer Pulse Unit MTU: Provides multiple 16-bit timer channels Processes 16 pulse inputs/outputs Provides 8 clock inputs for each channel Offers standard and application-specific functions (input capture, output compare sets/toggles output, counter clearing, etc.) Has 8 operating modes Provides 2-phase encoder up/down count Delivers 15mA output current (can drive opto isolators directly) Is supported by a port-outputenable function Has an A/D converter trigger (with optional delay) Supports Module Stop mode SH704x MCU MTU Output Pin I OL =15mA Vcc Opto Isolator MTU Driving Opto Isolator

4 MTU Operating Modes Ordinary Timer mode Each channel uses a counter and general register to create timing events or measure timing signals Synchronized Timer mode Counters for multiple channels are synchronously preset Buffer mode For output-compare, next compare value is buffered For input-capture, previous capture value is buffered Two values can be captured or loaded in quick succession Cascade mode Channels 1 and 2 are combined in a cascade connection to form a 32-bit counter - Overflow for channel 1 serves as the clock for channel 2

5 MTU Operating Modes (cont d) Phase Counting TCNT operates as up/down counter, depending on phase of the external clock inputs for channels 1 and 2 PWM (mode 1) Output of PWM signal can vary between 0% and 100% duty cycle Reset Synchronized PWM (mode 2) Outputs up to 8 PWM signals Waveforms share transition point on one side of signal repetition Complementary PWM Outputs three positive and three negative PWM waveforms Waveforms are centered and have no overlap - Deadtime is inserted between signal switching operations

6 MTU Block Diagram

7 Buffer Mode Output-compare operation Comparator generates signal when match occurs Buffer Register Timer General Register Comparator TCNT Input-capture operation Input-capture signal Buffer Register Timer General Register TCNT

8 Phase Counting Mode TCLKA (channel 1) TCLKC (channel 2) TCLKB (channel 1) TCLKD (channel 2) TCNT value Increment Decrement Time Performs quadrature encoding Used to measure rotary displacement of motor armature, etc. Phase Count Mode 1 Up/Down Counting Conditions TCLKA (channel 1) TCLKB (channel 1) Operation TCLKC (channel 2) TCLKD (channel 2) Increment 1 (high level) Rising edge 0 (low level) Falling edge Rising edge 0 (low level) Falling edge 1 (high level) Decrement 1 (high level) Falling edge 0 (low level) Rising edge Rising edge 1 (high level) Falling edge 0 (low level)

9 PWM Modes Basic PWM (Mode 1) Each edge defined by a compare-match 1 output per pair of general registers TCNT Value 0xFFFF TGRA TGRB 0x0000 TIOCA Counter clear by TGRA compare match Freerunning Counter Reset synchronized (Mode 2) 1 output per general register 7 PWMs from only 3 channels! Channels 0, 1, 2: MTU2 only TCNT Value 0xFFFF TGR1B TGR1A TGR0D TGR0C TGR0B TGR0A 0x0000 TIOC0A Counter clear by TGR1B compare match Freerunning Counter MTU MTU can can generate up up to to a 12-channel PWM PWM TIOC0B TIOC0C TIOC0D TIOC1A

10 Complementary PWM Mode TGR3A TCDR TCNT value TGR4A TGR4C TCNT3 TCNT4 TDDR 0x0000 Output Deadtime Deadtime /Output

11 Data Updates Data update timing: counter crest and trough Counter value Transfers from temporary register to compare register TGR3A Buffer register TGR4C TGR4A Compare register TCNTS H 0000 BR data1 data2 data3 data4 data5 data6 Temp_R data1 data2 data3 data4 data5 data6 GR data1 data2 data3 data4 data6

12 PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Next Slide At any time After passing quiz Unlimited times

13 MTU2: 6-channel Timer Extra timer (channel 5) supports: External pulse width measurement of 3 inputs Using input-capture capabilities, the actual delay between the complementary outputs can be measured in real time Deadtime compensation Channel 5 maintains safety margin by adding extra delay if normal deadtime won t accommodate slow response of switching devices 13

14 The MTU2S Peripheral SH7206 MTU2 MTU2S M1 M2 Multi-function Timer pulse Unit 2S: Provides three 16-bit timers: duplicates of MTU2 channels 3, 4 and 5 Can operate at up to 100MHz when generating complimentary PWM waveforms, and at up to 33MHz when being used for other functions Allows a microcontroller that also has a MTU2 peripheral to control two 3-phase motors simultaneously 14

15 MTU Interrupts Interrupts can be generated at crests and troughs of the triangular counting waveform MTU2 offers an interrupt skipping feature: Interrupts TGI3A (crest) and TCI4 (trough) in channels 3 and 4 can be skipped up to 7 times Transfers from a buffer register to a temporary register or compare register can also be skipped A/D converter start requests can be skipped, as well 15

16 Sources of MTU Interrupts Interrupt Sources Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5* 7 sources 4 sources 4 sources 5 sources 5 sources 3 sources Input capture 0A Input capture 1A Input capture 2A Input capture 3A Input capture 4A Compare match 5U Input capture 0B Input capture 1B Input capture 2B Input capture 3B Input capture 4B Compare match 5V Input capture 0C Overflow Overflow Input capture 3C Input capture 4C Compare match 5W Input capture 0D Underflow Underflow Input capture 3D Input capture 4D Compare match 0E Overflow Overflow or underflow Compare match 0F Overflow * MTU2

17 Output Shutdown by POE2 Port Output Enable circuit (POE2): Provides a key safety feature, eliminates some external components Implements a protection circuit for inverters that shuts down the power drive Is triggered by an external input signal (9 channels available) Accepts a falling-edge or low-level signal an an input Places the high-current pins in a high-impedance state (tri-state condition) when their output levels are compared and a simultaneous lowlevel output continues for one cycle or more Provides detection flags on each input pin Can request an interrupt to alert the application Operates independent of the main clock (works even when clock fails)

18 3-Phase AC Motor Control Typical Motor Drive Application SH-2 or SH-2A CPU Ch 4 15mA Sink Drive H Bridge MTU or MTU2 Ch 3 Ch 2 Ch 1 M 3-Phase Output Ch 0 Watchdog Timer 10-bit A/D SCI SCI I/O Amp Current Detect (U and V phases) Control Panel EEPROM Quadrature Encoder Inputs ROM RAM

19 Motor Management Timer TPBR MMT_TDDR TDCNT0 TPDR Comparators Comparators MMT_TCNT Magnitude Comparators Control Circuit PCIO Clock PUOA PUOB PVOA PVOB PWOA PWOB TGRUU TGRUU TBRU TGRUU TGRUU TGRUU TGRUU MMT: Is a dedicated peripheral for driving motors included in some SH-2 series devices (SH7047, etc.) Outputs 6-phase PWM waveforms with non-overlap times TGRUU 19 TGRUU TGRUU MMT_TMDR TCNR TBRV TBRW MMT_TSR A/D start conversion

20 PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Next Slide At any time After passing quiz Unlimited times

21 Watchdog: Key Safety Feature Internal Reset Signal ITI (interrupt request signal) Internal Clock Sources Interrupt Control Clock Select Clock Reset Control WDTOVF Internal bus WTSCR Bus I/F WTCNT WDT: Can be used to detect/correct internal problems by restarting device and applications if software runaways, etc., occur Must be periodically tickled (set back to zero) to prevent an overflow that would generate an inadvertent reset signal Outputs a signal useful for resetting external devices Is driven by a choice of clocks Can also be used as an interval timer to generate a periodic interrupt to ensure clock settling times are met when changing CPG frequency of SH-2A device in CPG and when leaving software standby mode 21 Overflow Module bus WRCSR

22 Compare-Match Timer CMT: Provides 2 channels of 16-bit compare-match timers and operates from 4 selectable internal clock sources Can generate interrupts at programmed intervals (software schedulers, etc.) and trigger DMAC Can be stopped when not needed to reduce power CMI0 Counter Value 0x0000 CMI1 Counter cleared by compare-match, status / interrupt set. Compare constant register value Control Circuit Clock Selection Control Circuit Clock Selection CMSTR CMCSR_0 CMCOR_0 Comparator CMCNT_0 Channel 0 CMCSR_1 CMCOR_1 Comparator CMCNT_1 Channel 1 Module bus Bus I/F Internal bus

23 PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Next Slide At any time After passing quiz Unlimited times

24 Course Summary MTU features and modes MTU2 and MTU2S Motor control application MMT WDT CMT 24

Pulse period. Pulse low width. Pulse high width. Pulse high width. Pulse high width Pulse period

Pulse period. Pulse low width. Pulse high width. Pulse high width. Pulse high width Pulse period APPLICATION NOTE SH7046 Group 1. Specifications Positive-phase and negative-phase 3-phase pulse (duty pulse) output is performed that allows the pulse high width and duty to be varied, as shown in figure

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

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

ID 620C: Complete Motor Control Integration with Rx62T

ID 620C: Complete Motor Control Integration with Rx62T ID 620C: Complete Motor Control Integration with Rx62T Renesas Electronics America Inc. Yashvant Jani Ph. D. Director, Applications Engineering 13 October 2010 Version 2.0 Yashvant Jani, Ph. D. Director,

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

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

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

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

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

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

More information

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

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

More information

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

Design and build a prototype digital motor controller with the following features:

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

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

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

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

More information

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

Oct 30 Announcements. Bonus marked will be posted today Will provide 270 style feedback on multiple-choice questions. [3.E]-1

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

RX23T inverter ref. kit

RX23T inverter ref. kit RX23T inverter ref. kit Deep Dive October 2015 YROTATE-IT-RX23T kit content Page 2 YROTATE-IT-RX23T kit: 3-ph. Brushless Motor Specs Page 3 Motors & driving methods supported Brushless DC Permanent Magnet

More information

System Design Guide for Master

System Design Guide for Master System Design Guide for Master Motor Business Unit Appliances Company 2012/1/31 Rev. 2 Page 1 Revision History Revision Date Change Description 1 2005/7/14 Initial Release 2 2012/1/31 P1 Changed title

More information

Using the HCS08 TPM Module In Motor Control Applications

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 information

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

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

More information

Sensorless Vector Control with RL78G14

Sensorless Vector Control with RL78G14 Sensorless Vector Control with RL78G14 Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit 1200 DMIPS, Superscalar

More information

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

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

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

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

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

ZKit-51-RD2, 8051 Development Kit

ZKit-51-RD2, 8051 Development Kit ZKit-51-RD2, 8051 Development Kit User Manual 1.1, June 2011 This work is licensed under the Creative Commons Attribution-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/in/

More information

32-bit Microcontroller for Home

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

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

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

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

More information

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

Sensorless Vector Control and Implementation: Why and How

Sensorless Vector Control and Implementation: Why and How Sensorless Vector Control and Implementation: Why and How Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit

More information

Analog Inputs and Outputs

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

TMS320F241 DSP Boards for Power-electronics Applications

TMS320F241 DSP Boards for Power-electronics Applications TMS320F241 DSP Boards for Power-electronics Applications Kittiphan Techakittiroj, Narong Aphiratsakun, Wuttikorn Threevithayanon and Soemoe Nyun Faculty of Engineering, Assumption University Bangkok, Thailand

More information

Implementation of Multiquadrant D.C. Drive Using Microcontroller

Implementation of Multiquadrant D.C. Drive Using Microcontroller Implementation of Multiquadrant D.C. Drive Using Microcontroller Author Seema Telang M.Tech. (IV Sem.) Department of Electrical Engineering Shri Ramdeobaba College of Engineering and Management Abstract

More information

HC900 Hybrid Controller

HC900 Hybrid Controller Honeywell HC900 Hybrid Controller When you need more than just discrete control Product Note - Pulse/Frequency/Quadrature (PFQ) Module Model 900TCK-0001 The PFQ Module for the HC900 controller is a multi-function

More information

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

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

More information

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN) Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN) 217-3367 Ordering Information Product Number Description 217-3367 Stellaris Brushed DC Motor Control Module with CAN (217-3367)

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

PSoC 4 Timer Counter Pulse Width Modulator (TCPWM)

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

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

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

More information

Sensorless Vector Control with RL78G14

Sensorless Vector Control with RL78G14 Sensorless Vector Control with RL78G14 John Pocs, Applications Engineering Manager Class ID: 7L02I Renesas Electronics America Inc. John Pocs Sr. Application Engineering Manager Application focus: motor

More information

Datasheet. RX24T Group Renesas MCUs. Features

Datasheet. RX24T Group Renesas MCUs. Features Renesas MCUs Datasheet R01DS0257EJ0200 Rev.2.00 80-MHz 32-bit RX MCUs, on-chip FPU, 153.6 DMIPS, power supply 5 V, 12-bit ADC (equipped with 3-channel synchronous S/H circuits, double data registers, operating

More information

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

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

More information

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER A Thesis Submitted in partial Fulfillment Of the Requirements of the Degree of Bachelor of Technology In Electronics

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

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

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

More information

DASL 120 Introduction to Microcontrollers

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

More information

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

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

Using Z8 Encore! XP MCU for RMS Calculation

Using Z8 Encore! XP MCU for RMS Calculation Application te Using Z8 Encore! XP MCU for RMS Calculation Abstract This application note discusses an algorithm for computing the Root Mean Square (RMS) value of a sinusoidal AC input signal using the

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices

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

Standard single-purpose processors: Peripherals

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

More information

HD44102D. (Dot Matrix Liquid Crystal Graphic Display Column Driver) Features. Description. Ordering Information

HD44102D. (Dot Matrix Liquid Crystal Graphic Display Column Driver) Features. Description. Ordering Information HD442 (Dot Matrix Liquid Crystal Graphic Display Column Driver) Description The HD442 is a column (segment) driver for dot matrix liquid crystal graphic display systems, storing the display data transferred

More information

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE 113 CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE 5.1 INTRODUCTION This chapter describes hardware design and implementation of direct torque controlled induction motor drive with

More information

1.1 Overview Overview Product Summary

1.1 Overview Overview Product Summary 1.1 Overview 1.1.1 Overview The MN103S is a 32-bit microcontroller combining ease of use intended for programs development in the C language with a simple, high-performance architecture made possible through

More information

MCU Product Selection Guide

MCU Product Selection Guide MCU Product Selection Guide Feature/Product 8-bit 8051 CPU Core/32-bit RISC Core CS8969, IS32CS8969** 1T 8051, 25MHz, /w IS31CS8973, IS32CS8973** 1T 8051, 25MHz, /w General Purpose MCU CS8967A CS8964 CS6257

More information

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

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

More information

EE 308 Lab Spring 2009

EE 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

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM 74 CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM 4.1 LABORATARY SETUP OF STATCOM The laboratory setup of the STATCOM consists of the following hardware components: Three phase auto transformer used as a 3

More information

TKT-3500 Microcontroller systems

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

Designing with STM32F3x

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

More information

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

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS

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

Counter/Timers in the Mega8

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

More information

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

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier 1 Mr. Gangul M.R PG Student WIT, Solapur 2 Mr. G.P Jain Assistant Professor WIT,

More information

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction Inverter Board, A/D, D/A, PWM, Filters, Encoders and Dimmer introduction 20181004 Gunnar Lindstedt Serial communication inverter Lund University, Sweden Lab bench scenario Inverter board PC 9pole Dsub

More information

LAX016 Series Logic Analyzer User Guide

LAX016 Series Logic Analyzer User Guide LAX016 Series Logic Analyzer User Guide QQ: 415942827 1 Contents I Overview... 4 1 Basic knowledge... 4 2 Product series... 4 3 Technical specification... 5 II Brief introduction to JkiSuite software...

More information

CQM1H-MAB42 Analog I/O Board Connector CN1: Analog inputs 1 to 4. Name Specifications Model number Slot 1 (left slot) High-speed Counter Board

CQM1H-MAB42 Analog I/O Board Connector CN1: Analog inputs 1 to 4. Name Specifications Model number Slot 1 (left slot) High-speed Counter Board Inner Boards The six available Inner Boards are shown below. Inner Boards can be mounted in slot 1 or slot 2 of a CQM1H-CPU51 or CQM1H- CPU61 CPU Unit. (Some Inner Boards must be mounted in either slot

More information

LM12L Bit + Sign Data Acquisition System with Self-Calibration

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

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5 devices

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

DATASHEET. RX62T Group, RX62G Group Renesas MCUs. Features

DATASHEET. RX62T Group, RX62G Group Renesas MCUs. Features Renesas MCUs 100-MHz 32-bit RX MCUs, FPU, 165 DMIPS, 12-bit ADC (3 S/H circuits, double data register, amplifier, comparator): two units, 10-bit ADC one unit, the three ADC units are capable of simultaneous

More information

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device

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

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata STELLARIS ERRATA Stellaris LM3S8962 RevA2 Errata This document contains known errata at the time of publication for the Stellaris LM3S8962 microcontroller. The table below summarizes the errata and lists

More information

High-speed and High-precision Motion Controller

High-speed and High-precision Motion Controller High-speed and High-precision Motion Controller - KSMC - Definition High-Speed Axes move fast Execute the controller ( position/velocity loop, current loop ) at high frequency High-Precision High positioning

More information

APPENDIX B. TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory

APPENDIX B. TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory APPENDIX B TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory Winter Quarter 2002 The Ohio State University Department of Electrical Engineering About This Appendix embedded real-time software

More information

Section 1. Fundamentals of DDS Technology

Section 1. Fundamentals of DDS Technology Section 1. Fundamentals of DDS Technology Overview Direct digital synthesis (DDS) is a technique for using digital data processing blocks as a means to generate a frequency- and phase-tunable output signal

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 5: AVR timers Timers AVR timers 8 bit timers/counters 16 bit timers/counters Characteristics Input clock prescaler Read / write

More information

Datasheet. RX24U Group Renesas MCUs. Features

Datasheet. RX24U Group Renesas MCUs. Features Renesas MCUs Datasheet R01DS0278EJ0100 Rev.1.00 80-MHz 32-bit RX MCUs, on-chip FPU, 153.6 DMIPS, power supply 5V, 12-bit ADC (equipped with 3-channel synchronous S/H circuits, double data registers, operating

More information

Data Logger Subsystems Mark Buccini February 2012

Data Logger Subsystems Mark Buccini February 2012 Data Logger Subsystems Mark Buccini February 2012 Full Disclosure Mark E. Buccini ULP Staff at TI 25+ years strategy, applications, marketing, sales, and management experience Lead MSP430 worldwide introduction

More information

Motor Control Demonstration Lab

Motor Control Demonstration Lab Motor Control Demonstration Lab JIM SIBIGTROTH and EDUARDO MONTAÑEZ Freescale Semiconductor launched by Motorola, 8/16 Bit MCU Division, Austin, TX 78735, USA. Email: j.sibigtroth@freescale.com eduardo.montanez@freescale.com

More information

Power Factor Correction Why and How?

Power Factor Correction Why and How? Power Factor Correction Why and How? Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit 1200 DMIPS, Superscalar

More information

Triscend E5 Support. Configurable System-on-Chip (CSoC) Triscend Development Tools Update TM

Triscend E5 Support.   Configurable System-on-Chip (CSoC) Triscend Development Tools Update TM www.keil.com Triscend Development Tools Update TM Triscend E5 Support The Triscend E5 family of Configurable System-on-Chip (CSoC) devices is based on a performance accelerated 8-bit 8051 microcontroller.

More information

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

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

More information

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny20

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny20 Features High Performance, Low Power AVR 8-bit Microcontroller Advanced RISC Architecture 112 Powerful Instructions Most Single Clock Cycle Execution 16 x 8 General Purpose Working Registers Fully Static

More information

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

B Robo Claw 2 Channel 25A Motor Controller Data Sheet B0098 - Robo Claw 2 Channel 25A Motor Controller Feature Overview: 2 Channel at 25A, Peak 30A Hobby RC Radio Compatible Serial Mode TTL Input Analog Mode 2 Channel Quadrature Decoding Thermal Protection

More information

General-Purpose OTP MCU with 14 I/O LInes

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

AP08022 C504 / C508. Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit

AP08022 C504 / C508. Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit C504 / C508 Application te, V 1.1, Feb. 2004 Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit. AP08022 Microcontrollers Never

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

International Journal of Advance Engineering and Research Development. Wireless Control of Dc Motor Using RF Communication

International Journal of Advance Engineering and Research Development. Wireless Control of Dc Motor Using RF Communication International Journal of Advance Engineering and Research Development Scientific Journal of Impact Factor (SJIF): 4.72 Special Issue SIEICON-2017,April -2017 e-issn : 2348-4470 p-issn : 2348-6406 Wireless

More information

Peripheral Link Driver for ADSP In Embedded Control Application

Peripheral Link Driver for ADSP In Embedded Control Application Peripheral Link Driver for ADSP-21992 In Embedded Control Application Hany Ferdinando Jurusan Teknik Elektro Universitas Kristen Petra Siwalankerto 121-131 Surabaya 60236 Phone: +62 31 8494830, fax: +62

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

I-7088, I-7088D, M-7088 and M-7088D User Manual

I-7088, I-7088D, M-7088 and M-7088D User Manual I-7088, I-7088D, M-7088 and M-7088D User Manual I-7000 New Features 1. Internal Self Tuner 2. Multiple Baud Rates 3. Multiple Data Formats 4. Internal Dual WatchDog 5. True Distributed Control 6. High

More information

Programming and Interfacing

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

More information

Control of a DC/DC Converter Using FlexPWM s Force-Out Logic

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

L13: (25%), (20%), (5%) ECTE333

L13: (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 information

DS1267B Dual Digital Potentiometer

DS1267B Dual Digital Potentiometer Dual Digital Potentiometer FEATURES Two digitally controlled, 256-position potentiometers Serial port provides means for setting and reading both potentiometers Resistors can be connected in series to

More information