florijan japelj

ADC trigger with FTM1 module

Discussion created by florijan japelj on Apr 15, 2011
Latest reply on Apr 17, 2011 by TomE

I have the application in which I have to control the proportional valve with PWM signal. I have an analog voltage feedback from this valve about how much current flows through this valve. So my idea is to generate a PWM signal with FTM1 module and measure voltage with ADC. So my question is how can I set up the FTM1 and ADC to make a voltage measurement while PWM signal is on logic "1" not "0". Is this possible to use FTM1 
module to do both at the same time (generating PWM signal and generating a hardware trigger for ADC)? If yes, how? 
Best regard,