S32k322_MCAL_GPT

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

S32k322_MCAL_GPT

1,160 Views
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.

Tags (1)
0 Kudos
Reply
1 Reply

1,117 Views
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 Kudos
Reply