Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC18LF4525 needs to conserve power for 15 minute increments

Status
Not open for further replies.

robbycon

Newbie level 3
Joined
May 31, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
I am writing a program on this PIC18 that takes measurements, writes to flash, then waits around for 15 minutes (or some other user-defined time period) until it does it again. It is supposed to do this for 2 weeks, so I need to conserve battery.

What's in my mind is to put the PIC in sleep mode, then trigger an interrupt off an internal timer.

After some reading, I see that the sleep() function shuts off all timers, but I can keep Timer1 running if I can put the PIC in SEC_RUN mode. The OSCCON<1:0> bits (which are also known as SCS1:SCS0) need to be set to 01, and maybe some other bits need to be set as well.

What I don't know is what the actual code looks like to implement this. I don't know if this is some inserted assembly code (I don't know how to do that). Can somebody help me? Thank you.
 

Re: PIC18LF4525 needs to conserve power for 15 minute increm

Can anybody help me or lead me in a good direction?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top