Hello -
I would like to measure timing on rising edges of an cc2640 input signal which may span more than one split-timer maximum measurement period (691ms w/prescaler extension). I've currently set up GPT0 Timer_A in edge-time mode, and it is triggering and capturing correctly. However, I'm stuck on the best way to detect and handle the rollover of GPT0 Timer_A. Once in edge-time mode, the periodic timeout and match interrupts don't fire. I'd think that I would prefer to have the timeout event (which doesn't seem to happen in edge-time mode) trigger GPT0 Timer_B in daisy-chain mode, with Timer_B in edge-count mode. This way Timer_B would simply count the rollover events for me. The reference manual offers this small tidbit of advice:
"If there is a possibility the edge could take longer than the count, another timer can be used to ensure detection of the missed edge."
But, does not give more information on the best way to do it. Perhaps I could synchronize Timer_B with Timer_A, and put Timer_B in periodic mode, but then I'm handling two interrupt calls with potential collisions of edge events on Timer_A and timeout events on Timer_B...
What's the best way to get this done?
Thanks!