-
timer1 sleep
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
-
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.
-
thanks bruce!
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