The timers generate an event (AUX_TIMERn_EV) at the end of each counter period. The counter period is determined by the following:
- Counter clock source selection:
- AUX_TIMER01:TnCFG.MODE selects the peripheral clock or a configurable event as counter clock source. Hence, it sets the counter clock source base frequency.
- Counter clock source prescaling:
- AUX_TIMER01:TnCFG.PRE divides the counter clock source base frequency. The result is the counter frequency. Division by one is default.
- Counter target value:
- The counter increments for each counter period as long as AUX_TIMER01:TnCNTR is less than AUX_TIMER01:TnTARGET.
The counter period ends when AUX_TIMER01:TnCNTR is equal to or greater than AUX_TIMER01:TnTARGET. The value of AUX_TIMER01:TnCFG.RELOAD decides if the counter restarts or idles.