Home › Forums › Microcontrollers › PIC Microcontroller › timer in pic18f › Reply To: timer in pic18f
October 3, 2014 at 1:11 pm
#9359
Keymaster
You may solve it by incrementing a variable as above…. but the best solution is to use PIC’s internal timer module..
eg :
//Start Timer
for(a=read_timer;a< a_value;)
{
//Do Something
}
//Stop Timer
You can use Timer0 module… Read the Timer0 section in the datasheet.
