Pumpkin, Inc.

Pumpkin User Forums


If you can't make Salvo do what you want it to do, post it here.


Postby kilaparthy » Thu Jun 16, 2005 3:48 am

I am working on the PIC18f2620, and I have a problem ...I need to shut down the oscillator once my battery charge finishes(which registers need to be changed for this). If later if power comes back how to detect and what are the settings I need to do.

Please give me suggesion.


Posts: 1
Joined: Thu Jun 09, 2005 11:00 pm
Location: India

Re: pic-18f2620-oscillator

Postby aek » Thu Jun 16, 2005 6:11 am

Anybody have an answer?

This is a PIC-specific question that has little or nothing to do with Salvo per se, as best I can tell ...


Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: pic-18f2620-oscillator

Postby DFx_Tech » Wed Jun 29, 2005 4:24 am

Hi kilaparthy,

I have never used the internal low-speed oscillator myself but the datasheet section "Oscillator Configuration" has information about changing oscillator configurations while running.

Unfortunately your second question requires knowledge about your hardware.
I am inferring you have some sort of 'power sense' input to a port pin, in which case either connect the sense line to a pin that supports 'wake on change' or use the watchdog timeout to wake yourself up periodically to check the sense line status and then either power the main oscillator back up or go back to sleep...repeat ad infinitum.

If you need more help the official Microchip forums are very quick and friendly:

e: oops, that'll teach me not to check the post date before replying, maybe the forums link will be helpfull to somebody else anyway.

[This message has been edited by DFx_Tech (edited June 29, 2005).]

Posts: 14
Joined: Tue Sep 07, 2004 11:00 pm
Location: Witney, Oxfordshire, England

Return to Coding

Who is online

Users browsing this forum: No registered users and 0 guests