i know how to set a timer
but now i need to start the timer from some middle value like 100h
how can i store 100h in the timer register
and i am using ultrasonic so i am planning to use a timer
how can i read the time count present in the timer after i receive the signals
i am using pic 16f877 or pic 18f4550
if anyone has the code do mail it too me plzzzzzzzz
plzz do help me i want to join engineering so preparing by building projects
you can load value you wish (0x100) to timer registers TMRxH and TMRxL, don't forget to set interrupt related registers and create ISR for the timer.
just the syntax will be, suppose you are using timer 0:
TMR0H = 0x01; //you will load to the timer register 0x0100
TMR0L = 0x00;