18LF4680 on heat


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Posts
    8

    Default 18LF4680 on heat

    I have taken up the project of converting a 16LF877 project to a 18LF4680
    Programming the bootloader works, as does bootloading the program.
    For some strange reason the PIC heats up like crazy when port A0 (which I use for AD conversion) is connected to the battery voltage (LiPo, about 4V). When a series resistor is used, AD works normally. The PIC is driven at 5V
    I have disabled all secondary functions (Voltage reference and comparators).
    Why is port A0 causing this heat up? Shouldn't it be high impedance when defined as AD channel?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MadAl View Post
    For some strange reason the PIC heats up like crazy when port A0 (which I use for AD conversion) is connected to the battery voltage (LiPo, about 4V). When a series resistor is used, AD works normally. The PIC is driven at 5V
    I have disabled all secondary functions (Voltage reference and comparators).
    Why is port A0 causing this heat up? Shouldn't it be high impedance when defined as AD channel?
    Sounds to me like your A/D ports aren't set up correctly and/or PortA.0 may be output driven low sucking up current...so maybe your A/D isn't set up quite right. Post some code. Maybe you're missing something...
    Maybe a short between A.0 and another pin (ground) that is driven low... Most likely not MCLR/E.3, likely choice A.1 since it's right there.

    EDIT: Just looked at your other posts... Get a new chip...

  3. #3
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Once you can cook small pieces of toast on a PIC, you will have catastrophic failure in short order. This I know from plugging the programming header in wrong. It worked for a while, drawing more current than usual, then quit. I'd suggest replacing it, and never connecting an I/O directly to a B+ line.Put a 1K resistor in series if necessary. If you are running at 3.3 volts and using a LiPo which can be charged to 4.2 volts, You will stress the diodes beyond their limit. If there is internal damage to the gate or protection diodes, it's a bad thing.

  4. #4
    Join Date
    Mar 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    "EDIT: Just looked at your other posts... Get a new chip... "

    Are you saying this PIC means trouble?? Should I find a 'safer' alternative? Any suggestions are welcome!!

    I checked for shorts, and no there are none. The PCB is professionally made, not just an experimental setup. And as said, with a series resistor the AD conversion works just fine which would imply the port is set up correctly for the AD.

    After the bootloader is in place in a virgin PIC and hooking up the power, the PIC stays cool. But after uploading the program the heat is on. This would imply the error is indeed in the program, not in the PIC or PCB.

    The program is big (close to 8k on the 16F877) but I could post the register settings, AD conversion part and port setup. Maybe this will shed some light in the matter.

    The PIC power supply is 5V and the voltage on port A0 is anything between 0 and 4.2V (LiPo max.)

    Thanks for the suggestions sofar!
    Last edited by MadAl; - 14th May 2008 at 06:11.

  5. #5
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Probably indicating that particular chip

    Quote Originally Posted by MadAl View Post
    "EDIT: Just looked at your other posts... Get a new chip... "

    Are you saying this PIC means trouble ?? Should I find a 'safer' alternative? Any suggestions are welcome!!
    All I can say is that a PIC has never let me down and I earn my living out of it. Why don't you run only the A/D part of your program and test it out. Also without the full schematic and code it is really hard to comment.
    Regards

    Sougata

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MadAl View Post
    Are you saying this PIC means trouble?? Should I find a 'safer' alternative? Any suggestions are welcome!!
    No, just that you heated it up once. It's most likely done for...

    The PCB is professionally made, not just an experimental setup.
    I've got cars, tv's, water heaters, and a septic system... All of which have been 'professionally made' and/or installed. Guess what? They've all failed at one time or another...

    After the bootloader is in place in a virgin PIC and hooking up the power, the PIC stays cool. But after uploading the program the heat is on. This would imply the error is indeed in the program, not in the PIC or PCB.
    Sure does. Something tells me that something in the program is turning off the A/D module, setting the pin back to digital mode and setting it low.

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


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    Just an interesting question ...

    which is applied to the pic first ???

    The Pic 5V

    OR

    The LiPo DIRECT 4.3v ???

    could easily explain the correct operation with a series resistor ...

    coz The clamp diodes surely would not like to power the whole card ...

    just to see ... try to place a 1N400x from A0 input to the +5 v ...

    my two cents ...


    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  8. #8
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Put a 1K resistor in series from the LiPo battery to A.0 PERIOD.It's just safe engineering practice. I don't see a need to post the code, or parse the replies any further.
    I have a button read subroutine that must set the pin to an input before reading it. Something in the program, totally unrelated to that pin, is setting it to an output low. Sound familiar? Now, I can go through every subroutine and watch that line to find out EXACTLY what is tripping the pin to be an output, or I can make sure it is an input before I read it. I choose to set it to a known state before I rely on the test. If it is an output, the reading will be unreliable. I won't lose the chip. In your case, you will. If you have the time, go ahead and see what is causing the problem. Connecting any port directly to B+ is a very bad idea.
    Ron

Similar Threads

  1. PIC 12F509 begins to heat at power up
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 25th July 2009, 12:11
  2. MOSFET control using PWM & 16C711?
    By droptail in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th June 2005, 02:24

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