how to improve S32k3 interrupt callback execute speed?

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

how to improve S32k3 interrupt callback execute speed?

ソリューションへジャンプ
662件の閲覧回数
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 解決策
636件の閲覧回数
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 返信
637件の閲覧回数
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 件の賞賛
返信