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

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

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

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 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

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

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

For reference only Refer to the latest documents for details

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

Dual FOC Servo Motor Control on i.mx RT

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

dspic30f Quadrature Encoder Interface Module

RL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group.

VORAGO Timer (TIM) subsystem application note

Temperature Monitoring and Fan Control with Platform Manager 2

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

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

Using FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC

KV4x Family Product Brief Supports 150 MHz devices with 64 KB to 256 KB Flash

Three-Phase BLDC Sensorless Motor Control Using the MKV4x In Quadcopter Application

Microprocessor & Interfacing Lecture Programmable Interval Timer

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers

µtasker Document µtasker Hardware Timers

Using the Z8 Encore! XP Timer

Motor Control using NXP s LPC2900

High-speed and High-precision Motion Controller

Using the HCS08 TPM Module In Motor Control Applications

Temperature Monitoring and Fan Control with Platform Manager 2

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

MC9S08MP16 High Speed BLDC Sensorless Drive Petr Staszko Freescale Czech System Laboratories Roznov pod Radhostem, Czech Republic

Lab 5 Timer Module PWM ReadMeFirst

Design of Joint Controller Circuit for PA10 Robot Arm

TXZ Family. Reference Manual Advanced Programmable Motor Control Circuit (A-PMD-B) 32-bit RISC Microcontroller. Revision 2.

Module: Arduino as Signal Generator

FlexTimer and ADC Synchronization

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

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

Using Z8 Encore! XP MCU for RMS Calculation

Low Cost Motor Control Family

Microcontroller: Timers, ADC

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

MICROCONTROLLER TUTORIAL II TIMERS

Generating DTMF Tones Using Z8 Encore! MCU

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview

LV-Link 3.0 Software Interface for LabVIEW

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK

Exercise 5: PWM and Control Theory

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

3-phase Sensorless PMSM Motor Control Kit with S32K144

Designing with STM32F3x

Using the HT46R12 in an Induction Cooker

Application Note. Brushless DC Motor Control AN-1114

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

Micro Controller Based Ac Power Controller

MDM5253 DC Motor Driver Module with Position and Current Feedback User Manual

32-bit Microcontroller for Home

Project Name Here CSEE 4840 Project Design Document. Thomas Chau Ben Sack Peter Tsonev

Timer A (0 and 1) and PWM EE3376

PIC Analog Voltage to PWM Duty Cycle

Freescale Semiconductor, I

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

3-in-1 Air Condition Solution

Implementation of Digital Signal Processor to Control Three-Phase Voltage-Source Inverter

DRM100 Designer Reference Manual. Devices Supported: 56F801X

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

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

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

PWM Demonstration System Document

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

PIC ADC to PWM and Mosfet Low-Side Driver

Hybrid Controller. 3-Phase SR Motor Control with Hall Sensors Reference Design. Designer Reference Manual. Freescale Semiconductor, I

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

High-Torque/High-Power Bipolar Stepper Motor Driver Using 8-bit PIC Microcontroller. Over Temperature Detection COG1 COG1C COG2

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Training Schedule. Robotic System Design using Arduino Platform

Lab 5: Inverted Pendulum PID Control

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

Topics Introduction to Microprocessors

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

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

M0518. M0518 Board Supporting Package Directory Introduction. Rev M of 11 Rev Nuvoton Technology Corp.

ELCT 912: Advanced Embedded Systems

Chapter 6 PROGRAMMING THE TIMERS

16-Bit Hardware Pulse Width Modulator Data Sheet

DC Brushed Motor Controller Module EDP-AM-MC1

icwaves Inspector Data Sheet

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

MCU Product Selection Guide

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

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

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

3-Phase Switched Reluctance Motor Control with Encoder Using DSP56F80x. 1. Introduction. Contents. Freescale Semiconductor, I

APPENDIX B. TMS320LF2407 PERIPHERAL GUIDE for EE757 Control Systems Laboratory

Digital Controller Chip Set for Isolated DC Power Supplies

Reaction Module 2 for Peak&Hold Injection Control on the MPC5746R Using REACM2 Utility Functions

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

Motor control using FPGA

Peripheral Link Driver for ADSP In Embedded Control Application

Transcription:

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 this function. 0

In this presentation we ll cover: An overview of the FTM module itself The on-chip interconnections and inter-module dependencies Software configurations An example use case And some frequently asked questions 1

First, let s start with an overview of the module. 2

FTM Features and Application Benefits The FTM module features include: Complementary pulse width modulation (or PWM) outputs with dead-time insertion Quadrature decoder (Please refer to the device reference manual for the decoder availability) Multiple channels with input capture, output compare and PWM capabilities And the FTM module provides external triggering to some peripherals, like the programmable delay block or PDB to synchronize ADC sampling Application benefits include: Reduced CPU intervention in handling PWM for motor control applications Advanced waveform generation for motor control and external sensors 3

FTM Module Block Diagram The 16-bit FTM counter outlined at the top of the block diagram in orange has multiple clock sources. The FTM module can be nested with other FTM modules to create a 32-bit counter. Outlined in green are the fault inputs and control with programmable polarity that allow the halting of PWM outputs whenever a fault is detected. Outlined in brown is the quadrature decoder, which is present for speed and position measurement in motor control applications. Outlined in purple are all PWM channels that are input capture or output compare capable. Please refer to the device reference manual for the exact number of channels. 4

Now, let s talk about on-chip interconnection and inter-module dependencies. 5

FTM Interconnections The following diagram displays the FTM and it s relationship with other peripherals: The FTM module allows synchronization hardware triggers from different modules like the comparator, the programmable delay block, or from other FTM modules. The analog comparator and FTM pins can be used for fault detection. The comparator or FTM dedicated pins can be used for input capture functionality. The FTM module can trigger a DMA transaction or a PDB timer for ADC sampling. This is useful for the feedback loop of motor control algorithms. 6

In this next section we ll discuss software configuration. 7

FTM Kinetis SDK Initialization Example The Kinetis SDK integrates a FTM peripheral driver that can be used to enable PWM output. First, a configuration structure must be filled with: The FTM behavior when the MCU is in debug mode The sync method used for writing the registers, and The write protected registers which can be modified after initial configuration Once the structure is filled, the API should be called to initialize the module and set the FTM clock with the desired prescaler. In this FTM initialization example, the structure is configured for PWM generation with a 100Hz period and 50% duty cycle. Next, the API should be called to configure the PWM channel in this case, we use channel 6. A trigger is required to get the previous configuration loaded into the FTM registers. In this example, we use a software trigger. 8

Let s review an example use case. 9

Motor Control Applications The FTM module eases the development of motor control applications. The control algorithm updates the different PWM channels to match the speed and torque requirements. These PWM channels are connected to external analog circuitry that controls the motor. The FTM and PDB with ADC synchronization can be used to measure the current used by the motor. For certain motor control applications, position feedback is required. The quadrature decoder on the FTM module can provide this information. This information is processed and then sent to the control algorithm to adjust the PWM. 10

Finally, let s discuss some frequently asked questions. 11

FTM FAQs Question: What is the FTM behavior in debug mode? Answer: The FTM module behavior during BDM mode or debug mode is configurable as specified in this table. 12

FTM FAQs Continued What is the FTM Fault? The FTM fault is a feature on the FTM module that will automatically shutdown PWM outputs when the fault pins are asserted, based on the configured polarity. This feature is important in control applications such as motor control where in the case of over current, the outputs can be automatically and quickly disabled to avoid hardware damage. 13

References For more information, please visit the FTM application notes listed here. We also invite you to visit us on the web at Freescale.com/Kinetis and check out our community page. 14

15