i want to use an if statment to start a timer n then i want it to tell me how long it been going for and then i want it to reset when it get to a lower value. where do i start.
As it says.
Turn on the power to the timer.
Configure the PCLK you want.
Then configure the timer prescaler and match values.
Configure any potential interrupt handler.
Activate the timer.
Start processing interrupts, or start polling the running timer.
All steps are covered in both the user manual and in existing sample programs.