Is there a compelling reason you wake up every second? If your sampling rate is low (one sample every minute is where I start), why not use the Timer1 prescaler to only wake up every 4 seconds, and increment the time counter by 4 instead of by 1. Not only does it save battery, it's also easier to code, since you don't worry about writing to TMR1H. Mike H. >James NickSears wrote: > >I am using a 16F877 uC with a Maxim voltage reference IC to take samples >from an IC temp sensor in a stainless steel pipe nipple with both ends >capped buried in a large compost pile. The 877 sleeps most of the time, >waking up once per second to increment time and see if a sample needs to be >taken, etc. _________________________________________________________________ Don t worry if your Inbox will max out while you are enjoying the holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads