How to introduce a 20ms timer configuration in GPT in S32K344

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

How to introduce a 20ms timer configuration in GPT in S32K344

978件の閲覧回数
yash_bhatnagar9
Contributor II

Hi,

I am using S32K344 and I want to introduce a timer for 20ms task in my code. How to I add the configuration for that in EB Tresos. If possible can anyone share the Tresos configuration for the same.

タグ(2)
0 件の賞賛
1 返信

964件の閲覧回数
cuongnguyenphu
NXP Employee
NXP Employee

Hi @yash_bhatnagar9 ,
There's an example in S32K3 RTD package, which config timer for GPT "Gpt_Example_S32K344".
You need to check the GptChannelTickFrequency of that config:

cuongnguyenphu_0-1669193056884.png


For example, the TickFrequency is 24Mhz (means 1 second has 24Mhz ticks), then you need to have 480000 ticks for 20ms.

In your source code, you need to start a timer with this tick value, then you just need to modify this value in the example code:

cuongnguyenphu_1-1669193284668.png

 

0 件の賞賛