CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC18F4580 low power mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vikraml



Joined: 24 Apr 2007
Posts: 7

View user's profile Send private message

PIC18F4580 low power mode
PostPosted: Wed Oct 10, 2007 9:18 am     Reply with quote

Hi all,

I am using the PIC18F4580 in a battery powered application, to basically implement a timer circuit. I am using timer1 (external oscillator running at 32.768khz) on the PIC to wake the microcontroller from sleep mode.

My circuit at present consumes around 7mA of current, 3mA for an led and the remaining 3-4mA is cosumed by the microcontroller when the Timer1 circuit is turned on. When the microcontroller is in sleep mode and timer1 is turned off it consumes roughly 1mA.

Is there some way I can reduce the amount of current cosumed by timer1 circuit.

Any other suggestions on how I can reduce the amount of current will be appreciated.

Thanks
Ttelmah
Guest







PostPosted: Wed Oct 10, 2007 9:35 am     Reply with quote

1mA, is a lot more than it should be drawing.
What are you using for a voltage regulator (lots of these, have quiescent currents dozens of times that of the PIC). Are you making sure that no pins are 'floating' when in sleep mode (either run them as outputs, or ensure there is a large resistor providing a tiny bias current)?. Have you switched off the peripherals (ADC etc.)?. Are you using the watchdog?.
What clock rate are you running when awake?. Seriously, I have battery powered systems, using the same device, and my _running_ current is below 1mA. The sleep current is typically under 1/100th of this...
The timer, should not use 3mA.
What voltage are you running?. What clock rate when 'awake'?.

Best Wishes
vikraml



Joined: 24 Apr 2007
Posts: 7

View user's profile Send private message

PostPosted: Wed Oct 10, 2007 10:12 am     Reply with quote

Thanks for your response. I am using a MAX603 LDO 5V regulator . The primary oscillator is a 4MHZ crystal. Before the PIC goes into sleep mode I turn off all the peripherals except timer1 and I am not using the watchdog timer.
Timer1 clk is configured to be device clk when the PIC wakes up from sleep mode. (T1CON = 0xCF).

what do you suggest for the I/O's during sleep mode. Should they be setup as inputs or outputs (high or low).

Thks
vikraml



Joined: 24 Apr 2007
Posts: 7

View user's profile Send private message

PostPosted: Mon Oct 22, 2007 2:29 pm     Reply with quote

Hi all,

After trying everything possible to reduce the extra 8mA my board is consuming, I stumbled upon something that I was overlooking. On my board I have eight 7-segment Common cathode displays that are driven by a MAX6951 (LED driver). When the microcontroller is in low-power/sleep mode all the external peripherals(i.e led-driver,displays)are in shutdown mode. But for some reason these displays still cosume current around 1mA each (which adds up to 8mA).

Can anyone shed some light on this, I don't completely understand why it would do that.

Thanks
Ttelmah
Guest







PostPosted: Wed Oct 24, 2007 7:19 am     Reply with quote

One thing leaps to mind. The shutdown consumption of the driver, is only warranted if all it's logic inputs are pulled to 0v, or up to 5v. You might want to try turning off the SPI peripheral, and manually driving these lines high, before sleeping.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group