PDA

View Full Version : Accurate Sleep Mode



Peter1960
- 23rd April 2007, 04:57
Hi, Apart from NAP and SLEEP which use the watchdog as the counter,
is there a way of incrementing a counter based on the xtal clock and using as little power as possible ?
I am trying to maintain a reasonable accurate clock timer, whilts in low poer mode.
thnks

skimask
- 23rd April 2007, 05:00
Hi, Apart from NAP and SLEEP which use the watchdog as the counter, is there a way of incrementing a counter based on the xtal clock and using as little power as possible ? I am trying to maintain a reasonable accurate clock timer, whilts in low poer mode. thnks

32khz xtal on TMR1 with a prescale kicking an interrupt which increments a counter?
We don't know which PIC you got.

Peter1960
- 23rd April 2007, 07:12
Hi,

I am using a 16F676 with a 4mhz resonator.

Have to use resonator for serial port.

skimask
- 23rd April 2007, 13:31
Hi,
I am using a 16F676 with a 4mhz resonator.
Have to use resonator for serial port.

Datasheet section 5.5, using a 32khz crystal across OSC1 & OSC2 feeding TMR1 and incrementing your counters and sleeping in the meanwhile. Run the PIC off the internal 4mhz.