S32k322_MCAL_GPT

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

S32k322_MCAL_GPT

1,159件の閲覧回数
BalasubramaniyanS
Contributor II

I am using s32k322 board ,and EB tresos version 29.0

I am using MCAL Package SW32K3_S32M27x_RTD_4.4_4.0.0_P24

I want to create a 20 ms delay. The STM Input clock frequency is 80 MHz, and the tick count is 1,600,000 with a prescaler of 1. I need to validate the GPT (General Purpose Timer) functionality.

BalasubramaniyanS_2-1726833349798.png

 

But when I checked the logic analyzer, I was getting the correct 20 ms. 

BalasubramaniyanS_1-1726833313852.png

 

However, the interrupt is occurring twice and hitting with a delay, but it’s not triggering continuously.

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

1,116件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

so you measure periodic signal with desired period, so you must toggle pin in your code at that rate based on GPT notification. But then you wrote it is not triggering continuously. How does that relates?
Can you share full code you have?
Within RTD there is GPT demo using PIT timer, this would be better for periodic interrupt functionality, I think.

BR, Petr 

0 件の賞賛
返信