Skip to content
RED SAGSkills
hard20 pts · first answer countsmicrocontrollerstimers

Elapsed ticks across a timer wrap

A free-running 16-bit timer is read at the start and end of an operation. start is 65000 and now is 500, after one wrap. What does the code below store in elapsed?

uint16_t start = 65000, now = 500;
uint16_t elapsed = (uint16_t)(now - start);
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions