AnsweredAssumed Answered

How to trigger ADC using PDB and FTM?

Question asked by VIGNESHKUMAR P on Sep 26, 2016
Latest reply on Sep 30, 2016 by VIGNESHKUMAR P

Hi, I'm using my own board of MKV10Z32VLC7 for motor control applications. I'm using center aligned PWM generated from FTM0.  And I just want to measure the current at the center of PWM and referred some application notes(AN4410, AN5142) and processed as such but the trigger is not happens correctly.

For example, I need to generate a PWM of 10KHz, I used the following configurations in FTM(FTM0 is used) and PDB.


Configurations for PDB as follows:


The output waveform for the above configurations as below:

Channel 1(yellow) is FTM0_CH0 output and channel 2(green) is for LED toggle(450KHz as measured); the code shown below.


void PDB_ISR(void)



I need to trigger at the center of PWM, so for that what should be the configurations. Due to this PDB_ISR the other interrupts(such as periodic interrupts) are disabled. Martin Mienkina Pavel Rech Barry Kuban Barry Kuban Vicente Gomez Salazar Kirk Humphries Mandar Joshi Dhaval Shah


Thank you in advance .....