Effects of Current Draw Using Internal VS External PullUps


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    9

    Post Effects of Current Draw Using Internal VS External PullUps

    I am currently writing a little bot of simple code for a 10F206 Six Pin ver.
    I have been studying the DICE routine written and posted by Ms. Melanie Newman.

    The program just pulses out random high/low logic to a mosfet.

    By setting TRISIO=%11111111
    CMCONO=%00000001
    Option_REG.5=0
    Status_REG=10010000 ' the GPWU and GPPU for pullups.

    I noticed that when I was in a closed loop waiting for GPIO.1 to go Low (via switch) that the uA current was about 40 to 60 uA without out and external 10k pullup resistor.
    I did not have a Pullup resistor on GPIO.3 (MCLR) either.

    I powered down the chip and added pullups to GPIO.1 and GPIO.3 .

    The Current now while in the loop looking for a low on GPIO.1 is now 8 to 10.4 uA.

    The circuit is on a breadboard and should be away enough from RF.
    The circuit does not work reliable if the external pullups (10k) are removed and only using the Weak Pullups.

    Any one got a hint were to read more on this.

    I am using Pic Basic Pro ver 2.47

    Thanks

    Rix

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Ms. Melanie Newman is a bit formal Rix... just Melanie is fine here...

    Internal Pull-Up's are good for local low-speed switching (such as user pushbuttons).

    In the original design, R1/D8 also assisted the pull-up on GP3 but it 'should' work without it... when I have a moment, I'll butcher one of my Dice and check...

    Note that your lines...

    Option_REG.5=0
    Status_REG=10010000

    are not valid. OPTION_REG bits 6 and 7 control the Pull-Up's and I believe Status_REG should be just STATUS and the % is missing.

Similar Threads

  1. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 14:58
  2. External Pullups on PORT A
    By ozarkshermit in forum General
    Replies: 2
    Last Post: - 20th November 2009, 13:44
  3. 16C65B internal pullups
    By Michael in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th January 2009, 16:26
  4. external clock / internal clock
    By grounded in forum General
    Replies: 4
    Last Post: - 31st May 2008, 17:44
  5. PIC based mAh meter/current draw sensor
    By skimask in forum Off Topic
    Replies: 6
    Last Post: - 26th February 2008, 02:10

Members who have read this thread : 0

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