Part Number: AM4376
We are using the TimerP_ getTimeInUsecs function several times in our interrupt which is called every 1ms. The interrupt calls TimerP_ getTimeInUsecs, performs a few operations, calls TimerP_ getTimeInUsecs again, then starts the timer again by calling TimerP_start(). We are currently running a test where we measure the number of microseconds before and after 64 calls to this interrupt. When running this test for an hour we see that the number of microseconds it takes for the interrupt to run 64 times continues to increase over time. We have found that by commenting out the calls to the TimerP_getTimeInUsecs function, that the time it takes for 64 interrupts no longer continuously increases. This seems to indicate that the TimerP_getTimeInUsecs function, or functions called by it, take longer to run over time. I realize that by performing operations before the call to TimerP_start() we will not have a consistent/accurate time, however that would not explain a continuously increasing time to complete 64 interrupts, especially when considering that removing calls to TimerP_getTimeInUsecs() resolves the issue.