1) I am using a precision pwm signal from another microcontroller to generate a digital input interrupt.
2) I am using wide timer 1, set for periodic mode and counting up. I load the value of the timer to 0xFFFFFFFFFFFFFFFF.
3) I am running the TM4C at 80mhz
4) Inside the digital interrupt routine I have tested reading the actual values of the timer using both driverlib calls and direct register calls. Most of the time my values are +8/-8 counts, interrupt to interrupt, which is what I expect. Periodically, my values are off by hundreds of counts and I cannot figure out why!
5) I have spent days testing my code for correctness and have even set up 3 timers the same way. All 3 timers exhibit this problem at the same instant in time so I suspect there is something occurring in the TM4C background that is causing this.
6) I am fully aware of the low value to high value transition and how to properly read using direct register calls.
7) I am using usb to send data out and have set the usb interrupt priority to higher than the digital input interrupt.
Does anyone know of any reported problems with reading actual timer values or what could be occurring in the background to affect reading timer values?