Ticker Resolution And Accuracy

15 Jun 2009

Hi,

Is it defined anywhere the minimum microseconds between ticker events?  Also, how much jitter is there on event to event timing?  We are trying to port a PID controller and we need a pretty accurate and stable periodic interrupt source.

Apologies if this is already written down somewhere!

Thanks

 

Mike Beach

 

15 Jun 2009

Hi,

The Ticker is virtualised around a 1us resolution timer, however it was designed to be flexible in how many events could be outstanding (as many as you want) rather than particulary quick/jitter-free. We've not benchmarked it at all, and it may well not be up to your needs.

You can of course use one of the LPC2368 timers directly if you want (we use 0, so 1,2 or 3). We'll aim to document the Ticker better during our next library spring-clean; it'd also be interesting to see what the interrupt requirements are to understand what could be provided as a practical API for your application.

Thanks,

Simon