Hereβs the minimal code to make timer 1 (a 16 bit timer) work using PICBasic. General descriptions of PIC timer variables used to control the timer: (you should be able to use these no matter what programming language you use): T1CON.0 is the first bit of the timer configuration byte, this bit is used to start and stop the timer. βsoβ T1CON.0=1, starts the timer T1CON.0=0, stops the timer TMR1H is the timer valueβs high byte (bits 8-15) TMR1L is the timer valueβs low byte (bits 0-7) βsoβ TMR1H = 0 βresets the timer valueβs high byte TMR1L = 0 βresets the timer valueβs low byte βandβ MyTime.Lowbyte = TMR1L βputs the timerβs low byte in MyTimeβs lower 8 bits MyTime.Highbyte = TMR1H βputs the timerβs high byte in MyTimeβs upper 8 bits NOTE: the MyTime should be declared as a word, not a byte since it has to be 16 bits long to hold the whole 16 bit timer1 value NOTE: When writing to or reading from the timer, it is very important in which order it is done. When reading the timer values you have to read first the LOW then the HIGH byte. When writing the timer values write first the HIGH then the LOW, this is due to complications in how the timer works. Β For more detail: PIC micro Timer Code