Timers of less than 1 ms

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

Timers of less than 1 ms

跳至解决方案
1,305 次查看
feraro
Contributor IV

Hello.

 

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

 

Thanks

0 项奖励
回复
1 解答
950 次查看
konrada
Contributor IV

You can use the PIT, programmable interval timer.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
951 次查看
konrada
Contributor IV

You can use the PIT, programmable interval timer.

0 项奖励
回复
950 次查看
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 项奖励
回复
950 次查看
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 项奖励
回复
950 次查看
feraro
Contributor IV

Hey.

I've definitely got it working with the PIT.

Thank you very much for everything.

0 项奖励
回复