Timers of less than 1 ms

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

Timers of less than 1 ms

Jump to solution
996 Views
feraro
Contributor IV

Hello.

 

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

 

Thanks

0 Kudos
1 Solution
641 Views
konrada
Contributor IV

You can use the PIT, programmable interval timer.

View solution in original post

0 Kudos
4 Replies
642 Views
konrada
Contributor IV

You can use the PIT, programmable interval timer.

0 Kudos
641 Views
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 Kudos
641 Views
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 Kudos
641 Views
feraro
Contributor IV

Hey.

I've definitely got it working with the PIT.

Thank you very much for everything.

0 Kudos