use of timer in s32k

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

use of timer in s32k

527 Views
saurabhkulkarni123
Contributor II

Hello,

I want to use the timer in s32k mbd, where I have to count the time for convert the axis raw value into angle in gyroscope. How can I use it in mbd?

0 Kudos
Reply
1 Reply

473 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123,

If my understanding is correct, you would like to execute some code (which integrates the raw data coming from your gyroscope) at a fixed period of time. You could use for example the Periodic Interrupt Timer, to set the desired frequency. Such an example, for setting a timer is delivered within the MBDT for S32K1xx Toolbox and it is called lpit_s32k14x.

mariuslucianand_0-1681248600020.png

Hope this helps,

Marius

 

0 Kudos
Reply