|
|
Information
| 说明: |
建议参照本版块置顶帖内容输入必要信息 |
| 芯片型号: |
tlsr8251 |
| 驱动SDK版本: |
V3.4.2.1_Patch_0005 |
Hello,
I'm implementing a millisecond counter using reg_system_tick on the TLSR8251.
The timer overflows every ~268 seconds (268000ms) due to its limited range.
Currently, I detect overflow in software by comparing consecutive readings:
- If (current_value < previous_value) → overflow occurred
However, I'm wondering if there's a more efficient approach using hardware
interrupts. Specifically:
1. Can I configure a timer (TIMER0?) to generate an interrupt just before
reg_system_tick overflows?
2. What's the recommended approach for maintaining a long-running millisecond
counter on TLSR8251?
3. Are there any SDK examples for handling system tick overflow?
My current implementation works but has overhead on every millis_get() call.
I'd prefer an interrupt-driven approach if the hardware supports it.
Thank you!
|
|