use of timer in s32k

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

use of timer in s32k

428 次查看
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 项奖励
1 回复

374 次查看
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 项奖励