Is it possible ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible ?

635 Views
ec0359
Contributor II

Hello,

 

I would like to generate a pulse of 250 us every 500 us (interrupt) on FTM2 Ch0, but i need to keep the FTM2 counter count

from 0 to FFFF because i have to read the input capture (if occure) on FTM2 Ch1 each FTM2 interrupt (500 us).

Is it possible to do that ?

 

  Thank you,

 

      Elio

0 Kudos
2 Replies

468 Views
konrada
Contributor IV

if you want PWM with 500us cycle time on FTM2, then you'll have to program FTM2_MOD for 500us worth of FTM cycles, I'm afraid. Are you already out of FTM modules in your design?

 

If you want to capture an edge which occurs in every 500us cycle, you could still capture times relative to the beginning of the cycle.

468 Views
ec0359
Contributor II

      Hi Konrada,

 

Thank you for your response, i will try to use the FTM2 in PWM mode.

 

   bye,

 

      Elio

0 Kudos