Reducing PIC current to as low as possible...


Closed Thread
Results 1 to 7 of 7
  1. #1

    Question Reducing PIC current to as low as possible...

    Reduce current consumption:
    Hello, I am trying to reduce the current consumption of my PIR transmitter program. I see 700uA on my digital multimeter while the PIC is sleep. Yes, this current is only for the PIC and no external circuitry included.
    I would like to ask if someone can suggest any changes to the code so the current can be reduced to as much as possible. Many Thanks

    Code:
    DEFINE NO_CLRWDT 
    
    '// For PIC12F635
               
    @ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_ON & _BOD_OFF & _CPD_ON & _IESO_OFF & _FCMEN_ON & _WUREN_OFF
    
      TRISIO = %1111110 
      OPTION_REG = 128 
      GPIO.0 = 0 
    transmit:
    ‘PIC does its job here
    goto rest
    
    rest:
    	while GPIO.0=1
    	goto encode
    	WEND
    	IOCA.0 = 1         ' int on change enabled for GPIO.0
        INTCON = %00001000 
        @ SLEEP
        INTCON.0 = 0       ' clear wake up on change int flag
    
    prepare:
    ‘PIC does its job here
    goto transmit
    return

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Anyone out there?

  3. #3
    Join Date
    Jan 2009
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    I would make sure the unused input pins are tied high or low.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Running it on 2V would reduce the current.
    Also, lower osc speed would reduce the current, too.

    Check the datasheet for low power features.

    ------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by sayzer View Post
    Also, lower osc speed would reduce the current, too.

    ------------
    Can this be a good & reliable option:
    Code:
    	OSCCON=48 ' reducing Osc speed before going to sleep
    	PAUSE 1
        INTCON = %00001000 ' global ints disabled, int on change enabled
        @ SLEEP            ' put PIC to sleep
    	OSCCON=96 ' back to normal speed

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Not much help there since the oscillator is disabled during sleep...;o)
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    I'd like to see your schematic to understand where you might be losing current. The PIC cannot consume so much in sleep mode.

Similar Threads

  1. Replies: 11
    Last Post: - 12th July 2008, 02:36
  2. Low voltage Pic
    By ruijc in forum General
    Replies: 7
    Last Post: - 23rd January 2008, 16:45
  3. low cost pc cams with a pic apposed to a cmu camera
    By Jhdgkss in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th October 2006, 11:08
  4. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14
  5. Help wanted..
    By thrix in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th February 2004, 23:44

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts