S32k322_MCAL_GPT

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

S32k322_MCAL_GPT

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