This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Minimum value of the timeout_ticks parameter

SDK 14.2

This question pertains to the app_timer library.

Hi,

I am using the app_timer library for creating/starting timeouts.I had a question about the APP_TIMER_MIN_TIMEOUT_TICKS parameter defined in the app_timer.h fie. My question is why is this parameter defined as 5. Can it be defined as 1? or 2? If so, what would happen if it was defined as a lower number? Timing issues? 

The reason I ask is if I use a prescaler of 255, the minimum timeout length that I can request is then around 35 ms. Unless I choose a lower prescaler, I cannot request a lower timeout length, because the minimum tics it can support is 5 and each tic is 7812.5 us when the prescaler is 255.

Parents Reply Children
Related