Tick Period & not disabling a interrupt

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

Tick Period & not disabling a interrupt

ソリューションへジャンプ
1,383件の閲覧回数
srikar
Contributor I

Can the value of 1 tick = 5msec, changed, i.e. increase or decrease its value?

 

Also is there a way in MQX, where no one can disable a particular interrupt, because I have a periodic PIT1 interrupt at 500usec, which always needs to happen, it should never be missed,

 

After some analysis, I realized that I miss PIT1 interrupt, every 5 msec, which is the tick period.

I would assume that the scheduler runs every tick, and it will disable all interrupts to see if it has to scheudle or run a task.

 

Does anyone have any inputs on this issue?

0 件の賞賛
返信
1 解決策
1,128件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Srikar,

Just thinking out loud without much thought into the subject.

You could raise the PIT1 interrupt level to be the highest in the system.  And use it as the incrementer for the RTOS TICK.

Ex: Every 10 PIT1 interrupts, increment the TICK and let its code run.

 

I haven't tried chaning the tick period but you should be able to do that.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,129件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Srikar,

Just thinking out loud without much thought into the subject.

You could raise the PIT1 interrupt level to be the highest in the system.  And use it as the incrementer for the RTOS TICK.

Ex: Every 10 PIT1 interrupts, increment the TICK and let its code run.

 

I haven't tried chaning the tick period but you should be able to do that.

Regards,

David

0 件の賞賛
返信