Tick Period & not disabling a interrupt

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

Tick Period & not disabling a interrupt

跳至解决方案
601 次查看
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 解答
346 次查看
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 回复
347 次查看
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 项奖励