Related to timer problem.

Hello team Renesas,

                  We are currently using RL78/F13 - R5F10BFC for our automotive purpose. We are planning to calculate the algorithm execution time. Here we have configured the timer (1us) for calculating execution time for our algorithm by starting the timer before algorithm and stopped using software breakpoint. A variable is incrementing in the respective timer callback function, and we have got 184 counts after the software breakpoint. For confirming that we have configured another timer as (2us) and executed the same process with same algorithm. As per our expectation it should be around 90 to 92 but the actual count was 9. Further increasing the timer to 3us got 4 as a count, 4us got 2 as a count and so on. Need to confirm whether the issue is related with our process or the timer.



Parents
  • I might suggest that to measure execution time of code in the software would be to use a free-running timer and simply read the timer at the start and end of the code block of interest.  Take the delta from the measurements as the interval time.  You get much better precision and have a lot less overhead.

Reply
  • I might suggest that to measure execution time of code in the software would be to use a free-running timer and simply read the timer at the start and end of the code block of interest.  Take the delta from the measurements as the interval time.  You get much better precision and have a lot less overhead.

Children
No Data