Reply To: timer in pic18f

Home Forums Microcontrollers PIC Microcontroller timer in pic18f Reply To: timer in pic18f

Ligo George

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.