Always helps to go back to the definition of the problem:
Quote Originally Posted by Pedro Pinto View Post
Hello
Have anyone a idea what happens.
I have a board with a 12F509 and <b>sometimes</b> when power up the circuit it begins to heat up and <b>all the IO's</b> are high.
Questions:

Does <b>"sometimes"</b> mean some units all the time or any unit some of the time? Do the bad units fail every time or not every time?

Does <b>"all the IO's"</b> really mean all? GP0 to GP4 are normally at 5V at turn on as they have their pull-up resistors to 5V. How close to 5V are they? Same voltage to a millivolt or so or are they measurably lower or higher? (If different that tells us where current is going, the amount of difference tells us how much current).

And when failing, are Vdd and Vss still normal?