Log in

View Full Version : timer1 sleep



yettie
- 4th August 2005, 08:37
good day to all

im just a newbie here.

anyone tried to use sleep and be interrupted once timer1 overflows? im using a simple PIC16F628 configured in 1:8 prescale, (T1CON.TMR1CS=0) as internal clock running at 8MHz crystal clock. I will appreciate anyone to share their knowledge. thanks!

regards,
yettie

Bruce
- 4th August 2005, 16:48
Timer1 will not operate in sleep mode when running on Fosc/4. You would need an external oscillator tied to RB7/T1OSI & RB6/T1OSO/T1CKI, and have it setup appropriately.

yettie
- 5th August 2005, 01:01
bruce,

i had just read the data book again reviewing some of the considerations. i just found out that the oscillator stops while in sleep mode giving up no chance to have the counter incremented. i will take note your info. thanks!

regards,
paul