how to improve S32k3 interrupt callback execute speed?

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

how to improve S32k3 interrupt callback execute speed?

跳至解决方案
666 次查看
Vandarkholme
Contributor III

hello! I'm migrate project from microchip's PIC series to S32K312.

In PIC chips, set 1us timer -> start timer -> hit timer interrupt  -> toggle pin, can see 1us toggle wave in scope. 

But in S32k3, it's not worked. the minimal toggle time is 6.2us,  I'm confused that why mcu running 120Mhz, but can't interrupt in 1us.

here's scope's 6.2us wave(set pit 1us interrupt) and test project(modified by pit example)

Vandarkholme_0-1731980968290.jpeg

Vandarkholme_1-1731981064195.png

 

 

0 项奖励
回复
1 解答
640 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Vandarkholme,

Some SW overhead is always expected, but especially with the RTD.

Have a look at Pit_Ip_ProcessCommonInterrupt() in Pit_Ip.c.

This function is called from the PIT interrupt handler before the callback notification is called where you toggle the pin.

 

Regards,

Daniel

 

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
641 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Vandarkholme,

Some SW overhead is always expected, but especially with the RTD.

Have a look at Pit_Ip_ProcessCommonInterrupt() in Pit_Ip.c.

This function is called from the PIT interrupt handler before the callback notification is called where you toggle the pin.

 

Regards,

Daniel

 

 

 

0 项奖励
回复