Is it possible ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Is it possible ?

671 次查看
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 项奖励
2 回复数

504 次查看
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.

504 次查看
ec0359
Contributor II

      Hi Konrada,

 

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

 

   bye,

 

      Elio

0 项奖励