i want to achieve a microsecond gp timer. SYSCLK is 100MHz so the timer need to a 1:100 prescaler.
this should be achievable by using several timers and the TRU.
ii see two ways to do this:
a) if there is a way to make a trigger tick the microsecond timer, I can use another timer as prescaler. It would be very logical for a gp timer to be able to count trig events but I cannot figure out how to do this by reading the hw documentation or EE360.
b) use a single timer or two synchronised timers to start/stop the microsecond timer through the TRU to make it run 1% and be idle 99% of the time.
please advice what would be the best way to achieve this, preferably with a few lines of code how to setup the registers too.
thanks.