Timers of less than 1 ms

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Timers of less than 1 ms

ソリューションへジャンプ
1,037件の閲覧回数
feraro
Contributor IV

Hello.

 

How could obtain Timers less than 1 millisecond and MQX TWR60N512 7.1?.

 

Thanks

0 件の賞賛
1 解決策
682件の閲覧回数
konrada
Contributor IV

You can use the PIT, programmable interval timer.

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
683件の閲覧回数
konrada
Contributor IV

You can use the PIT, programmable interval timer.

0 件の賞賛
682件の閲覧回数
feraro
Contributor IV

Thank you very much for the idea, but I'm new to MQX and can not understand how to use a PIT. What I need is to create a pulse train by pin PORTE PIN10 of 0.1 msec period.

Thanks for everything.

0 件の賞賛
682件の閲覧回数
konrada
Contributor IV

If you want to toggle an output pin that fast, try the FTM, which does PWM.

 

The Reference Manual for your chip will tell you if port E10 can be connected to some FTM channel. If not, you can toggle a GPIO pin in software from a PIT interrupt, but that incurs jitter.

0 件の賞賛
682件の閲覧回数
feraro
Contributor IV

Hey.

I've definitely got it working with the PIT.

Thank you very much for everything.

0 件の賞賛