electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

PIC18LF4525 needs to conserve power for 15 minute increments


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> PIC18LF4525 needs to conserve power for 15 minute increments
Author Message
robbycon



Joined: 31 May 2009
Posts: 2


Post07 Nov 2009 3:52   

PIC18LF4525 needs to conserve power for 15 minute increments


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.
Back to top
Google
AdSense
Google Adsense




Post07 Nov 2009 3:52   

Ads




Back to top
robbycon



Joined: 31 May 2009
Posts: 2


Post17 Nov 2009 0:05   

Re: PIC18LF4525 needs to conserve power for 15 minute increm


Can anybody help me or lead me in a good direction?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> PIC18LF4525 needs to conserve power for 15 minute increments
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
power dissipation and cooling needs (2)
Battery suggestions - robotic system that needs power (1)
1 minute count (4)
20 minute timer (13)
speaker needs envelope detector for AM? (3)
Needs BJT for simulation in Cadence (7)
Second & Minute Plus (2)
1 minute plus from PCF8583 (1)
Needs Tanner design kit for learnning (3)
Why a giantic resistance needs for simulation? (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS