1996700_en-US

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

1996700_en-US

1996700_en-US

how to improve S32k3 interrupt callback execute speed?

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.jpegVandarkholme_0-1731980968290.jpeg

Vandarkholme_1-1731981064195.pngVandarkholme_1-1731981064195.png



Re: how to improve S32k3 interrupt callback execute speed?

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




タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 02:56 PM
更新者: