JL JieLi AC696N Series Chip Development – Timer Detailed Explanation: Differences and Selection Between sys_timer and usr_timer
Introduction Timers seem simple, but using them in the wrong place either increases power consumption or causes timing inaccuracies—and debugging can be quite troublesome. The JL JieLi AC696N SDK provides two sets of timers: sys_timer and usr_timer. When first getting started, it's easy to get confused—when to use which? Why does my timer become inaccurate after entering sleep? Can I perform work in the callback? I encountered all these issues while debugging low-power solutions on the AC696N development board. Here's a summary of the differences and selection logic, so you can directly reference it when writing code. Chip Product Introduction I. System Timer (sys_timer) – "Software Timer" Features: Managed by the systimer thread, synchronous interface. The callback executes in the same thread where the timer was added. Low Power: System can sleep; the timer will wake the system when it expires, without losing ticks. Use Case: Suitable for general tasks that ...