medium10 pts · first answer countsconcurrencyinterrupts
Counter shared with an ISR
On a 32-bit MCU, main does counter++ on a volatile uint32_t that a timer ISR also increments. Why can counts be lost?
Discussion 0
Join free to post in the discussion.
Related questions
- Why use volatileEmbedded Systems Engineer
- Keeping ISRs shortEmbedded Systems Engineer
- The interrupt vector tableEmbedded Systems Engineer
- Heavy work in an interruptEmbedded Systems Engineer
- printf in an interruptEmbedded Systems Engineer
- Doing heavy work in an ISREmbedded Systems Engineer
- printf inside an interruptEmbedded Systems Engineer
- Polling versus interruptsEmbedded Systems Engineer