博文

目前显示的是标签为“Firmware”的博文

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 ...

JL JieLi AC696N Development Board Tutorial – Low Power Basics: Reset and Wake-up Source Configuration for the AC6966B Chip

图片
  Introduction In battery-powered products, poor low-power performance renders all other features useless. The JL JieLi AC696N chip is widely used in Bluetooth headphone and speaker solutions—its power control fundamentals are solid. However, if you can't clearly identify the reset cause or configure the wake-up I/O correctly, you'll still encounter unexplained reboots or devices that won't wake up from sleep. When I was debugging low power on the AC696N development board, I found that while reset source printing and I/O wake-up configuration aren't complicated, the details are easy to miss. Here's a consolidated guide to the common configurations, so you can reference them directly when troubleshooting. I. How to Check the Reset Cause? Call the power_reset_source_dump() function, and the serial port will print the last reset cause, for example: • VDDIO POR: Power-on reset • WDT: Watchdog timer reset • SOFT RESET: Software reset This is extremely useful fo...