Robert Wey

Changing the MQX tick rate

Discussion created by Robert Wey on Apr 20, 2012
Latest reply on Jul 13, 2012 by Martin Kojtal

This is probably a simple question, but being new to MQX please find it in your hearts to forgive me.

 

I'm using MQX 3.8 along with Processor Expert and I'm having trouble changing the MQX tick rate.  It's easy enough to call the _time_set_ticks_per_second( 1000 ) function, and while querying with the associated "get" function shows the change, doing some timing tests shows the actual time is still at the default 200 tps.

 

If you look at the kernel function definition, the comment mentions:  "THIS MUST AGREE WITH THE ACTUAL INTERRUPT PERIOD...",  so the question is, how does one change the "actual interrupt period" so it agrees with the new 1mS tick rate ?

 

Thanks.

Outcomes