- 打卡等级:初来乍到
- 打卡总天数:4
- 最近打卡:2025-05-01 06:58:22
金牌会员
- 积分
- 1333
|
发表于 2024-7-4 04:26:54
|
显示全部楼层
If interrupts are enabled, the common 0xFFFF -> 0x0000 interrupt can be expected.
- but Quad can count both ways, so what happens on 0x000 -> 0xFFFF case ?
A rough extension is possible by checking timer HIGH byte, but that has a flaw if the counter overflows, and then immediately another pulse in the other direction reverses all bits, the correct action is no overflow at all, but the sticky interrupt flag says 'do 65k overflow' action.
To work properly, this needs two overflow flags, one for each direction.
|
|