Page 1 of 1

how to use the option_reg bit 2-0

Posted: Mon Feb 11, 2008 1:31 pm
by saravana_3
hi friends,
what is the purpose of the prescalar,
how to set the Option_reg bits 2 to 0 of the 16f84,
by seting this how can control the TMR0
thanks

Re: how to use the option_reg bit 2-0

Posted: Tue Feb 12, 2008 12:50 pm
by Benj
Hello Saran

The prescalar divides the clock speed to allow the hardware timers to run at different speeds with a fixed overall clock speed.

You can modify the prescalar by writing to the option register.

For more information please refer to the Timer0 portion of the device datasheet.