PIC 12F509 begins to heat at power up


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Same old code, same chip, new batch of boards.
    Check for a bad trace.
    OR... new revision silicon is acting up (doubtful).

    Interesting problem, current is going somewhere, but current isn't a directly measurable quantity suck as voltage is. Good news is you only have 6 I/O pins to check.

    Depending on how repeatable the problem and how disposable a board is you could try removing one pin at a time to see who the current hog is, then seeing if you can switch on the big current if you put the offending pin back in.

    One thing to check is if an INPUT is causing the problem: if an input goes to about half Vdd then it will draw a big current (thru Vdd->Vss, not the pin itself).

  2. #2
    Pedro Pinto's Avatar
    Pedro Pinto Guest


    Did you find this post helpful? Yes | No

    Default

    Hello

    OR... new revision silicon is acting up (doubtful).

    This is always my opinion. I will order a few Pic's
    to test.
    The inputs are not the problem i have wired for the
    tests all inputs to vcc and the problem are the same.

    Regards
    Pedro

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Pedro

    Could you post a piece of scheme ( just around the PIC - with reset circuitry ! )

    Alain

    PS: in your code, you should preset your outputs ( even inputs ) BEFORE the TRIS command ...
    Last edited by Acetronics2; - 20th July 2009 at 13:13.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    I went thru your code a bit to count I's and O's: looks like you have two outputs.

    While you wait for your chips to arrive you may want to try this: (assuming you can ICSP this board) make up some test programs, either 4 programs to try each of the two output lines high and low, or use 1 input to step thru the combos.

    That way you can see if a single output being hi or low is causing the current.

    Acetronics' comment about presetting GPIO's before TRIS is well taken: GPIO is undefined after a reset and perhaps a momentary state collision is occasionally taking down the power supply and ending the program right there.

    Post the schematic (as much as you will).

  5. #5
    Pedro Pinto's Avatar
    Pedro Pinto Guest


    Did you find this post helpful? Yes | No

    Default

    Hello ErnieM

    I not preset GPIO before TRIS, i make only a alias from the pins before TRISIO

    Attached the schematic

    Regards
    Pedro
    Attached Images Attached Images  

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pedro Pinto View Post
    I not preset GPIO before TRIS, i make only a alias from the pins before TRISIO
    Pedro
    Hi Pedro,
    That was the point, that you should, so when TRIS makes the port an output it does so in a state chosen by YOU, not the devil.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Pedro Pinto's Avatar
    Pedro Pinto Guest


    Did you find this post helpful? Yes | No

    Default

    Hello Joe S.

    English is not my natural language, sorry i not understand very well what
    you mean in your answer. Is anything wrong in this code?

    Code:
    DEFINE OSCCAL_2K 1
    '
    sepic_ok var GPIO.3        
    call_shutdown var GPIO.4
    sepic_on_off var GPIO.5
    pulsador var GPIO.2
    am_on_off var GPIO.1
    'sense var GPIO.0
    '
    TRISIO = %11001111
    '
    low sepic_on_off        
    low call_shutdown       
    '						
    ciclo var word
    conta var byte 
    conta2 var byte
    flag_pulsador var byte
    Do you think that i must change it? if yes, what?

    Thanks
    Best regards
    Pedro

Similar Threads

  1. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  2. Ideal backup power for PIC micro
    By emavil in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 00:07
  3. PIC power backup with "super capacitor"
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th January 2007, 23:51
  4. problems on power up of PIC
    By dmairspotter in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th June 2006, 14:11
  5. Controlling power to a PIC with another PIC
    By jswayze in forum Off Topic
    Replies: 3
    Last Post: - 28th May 2005, 19:44

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