Tick Period & not disabling a interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tick Period & not disabling a interrupt

Jump to solution
583 Views
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 Kudos
1 Solution
328 Views
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

View solution in original post

0 Kudos
1 Reply
329 Views
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 Kudos