Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi, I am using TIMA1 to start TIMA0 via cross-triggering. Both timers are set to one-shot down counting, and it works well. I toggle a GPIO at the Zero events of TIMA1 and at the Zero interrupt of TIMA0, so I can see the timer periods. I also use the TIMA0 Zero interrupt to restart TIMA1. So it's a continuous loop.
I would now like to use TIMA0 in up counting mode, so I can more easily use it to measure the elapsed time for something else. So I set it to one-shot up counting, and use the Load interrupt instead to toggle the GPIO and restart TIMA1. To ensure the count starts from 0, I also set the CVAE bit to 2 manually, since there is an issue with the dl_timer.c. Now, the TIMA0 interrupt triggers within 2us no matter what LOAD value I choose.
Interestingly, I can use TIMA1 in up counting mode and the behaviour is as expected.
Is there something else I'm missing?