Xnyle
10 W
- Joined
- Sep 3, 2018
- Messages
- 76
ui16_time_ticks_between_pas_interrupt only gets updated when ui8_PAS_Flag == 1 otherwise it keeps it's initial value of 64000L.
ui8_PAS_Flag only gets to 1 if there was an interrupt on the PAS__PORT which is GPIOD which is address GPIOD_BaseAddress which is 0x500F
For what you describe to happen you PAS__PORT might be floating. Otherwise ui16_time_ticks_between_pas_interrupt_smoothed should be always 64000L>>3 which is also >timeout.
But what do I know, maybe someone else can debug :wink:
ui8_PAS_Flag only gets to 1 if there was an interrupt on the PAS__PORT which is GPIOD which is address GPIOD_BaseAddress which is 0x500F
For what you describe to happen you PAS__PORT might be floating. Otherwise ui16_time_ticks_between_pas_interrupt_smoothed should be always 64000L>>3 which is also >timeout.
But what do I know, maybe someone else can debug :wink: