How to use EXTCLK_MODE in timer?
The EXTCLK_MODE is also referred to as counter mode to count external events (signal edges) on either the TIMER_TMR[n]or TIMER_ACI[n]input pin. The timer works as a counter clocked by an external source (the signal at the pin), which can be asynchronous to SCLK.
We need to provide input to the TMR Pin (if TMR0_CFG.TINSEL =0) or TMR Alternate Capture Input pin (if TMR0_CFG.TINSEL =1). Also please note that for EXTCLK mode, the width and delay registers are not valid