Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 14th October 2005, 11:16 AM   (permalink)
Default Sudden problem with MCLR on PIC16F628

Hello,

I was just improving my PIC programmer hardware, and suddenly it seems like the MCLR pin is kept low on a PIC16F628 (short circuit inside the PIC?).

If I connect 12V to the MCLR, and GND to GND with no other pins connected (not even Vdd), heavy current will run through the MCLR pin (>250mA and probably more if my power supply didn't have current limit). The voltage on the MCLR pin will only rise to approx. 2V.

If I connect the PIC to 5V supply and GND (no MCLR connected) the program in the PIC will run fine.

What happened to the PIC?

If it makes a difference, the PIC was obtained as a sample from Microchip.

Regards,
Futterama
Futterama is offline   Reply With Quote
Old 14th October 2005, 11:54 AM   (permalink)
Default Re: Sudden problem with MCLR on PIC16F628

Quote:
Originally Posted by Futterama
Hello,

I was just improving my PIC programmer hardware, and suddenly it seems like the MCLR pin is kept low on a PIC16F628 (short circuit inside the PIC?).

If I connect 12V to the MCLR, and GND to GND with no other pins connected (not even Vdd), heavy current will run through the MCLR pin (>250mA and probably more if my power supply didn't have current limit). The voltage on the MCLR pin will only rise to approx. 2V.

If I connect the PIC to 5V supply and GND (no MCLR connected) the program in the PIC will run fine.

What happened to the PIC?
You've destroyed it 8)

PIC's are extremely hardy devices, so you must have done something particularly 'nasty' to it - but sticking 12V from a PSU directly in the MCLR pin doesn't sound like you've treated it with much love or care?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 14th October 2005, 12:20 PM   (permalink)
Default

Well, I think PICs are rough devices and I didn't do anything nasty...

Actually, there is a transistor between MCLR pin and the PSU, but does it make a difference? And I would never hurt my little babyes on purpose :lol:
Futterama is offline   Reply With Quote
Old 14th October 2005, 02:26 PM   (permalink)
Default

Microchip's sample is just like an ordinary PIC that you buy from stores and would not self distruct after a certain time.

You might have connected a voltage higher than 15V to the MCLR pin and this could damage it.

Do not improve something if it ain't broken.
__________________
L.Chung
eblc1388 is offline   Reply With Quote
Old 14th October 2005, 02:32 PM   (permalink)
Default reply

Quote:
Originally Posted by Futterama
Well, I think PICs are rough devices and I didn't do anything nasty...

Actually, there is a transistor between MCLR pin and the PSUit

to amplify the current running to it i guess? Shocks! :shock: [/b]
__________________
Everybody can but not everybody will.
aibelectronics is offline   Reply With Quote
Old 14th October 2005, 03:34 PM   (permalink)
Default Re: reply

Quote:
Originally Posted by aibelectronics
to amplify the current running to it i guess? Shocks! :shock:
No, to turn the Vpp on and off during programming.

The voltage at Vpp have been below 13V at all times (12.82 to be accurate).

I have to improve my programmer, so it can program other PICs than the 16F628 :wink:

Well, I guess this is what can happen. I'll leave it in the ESD safe box for a few weeks, and it will be ready to reprogram again :wink:
Futterama is offline   Reply With Quote
Old 14th October 2005, 04:01 PM   (permalink)
Default Re: reply

Quote:
Originally Posted by Futterama
I have to improve my programmer, so it can program other PICs than the 16F628 :wink:
What "improvement" is needed to program other PICs than 16F628?
__________________
L.Chung
eblc1388 is offline   Reply With Quote
Old 14th October 2005, 09:38 PM   (permalink)
Default

The ability to control the Vdd.
Futterama is offline   Reply With Quote
Old 14th October 2005, 09:49 PM   (permalink)
Default

Quote:
Originally Posted by Futterama
The ability to control the Vdd.
The 16F628 requires that as well, although you can get along without it on many PIC's, while the 16F628 is acually one which it is more important on.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 14th October 2005, 10:12 PM   (permalink)
Default

My programmer works fine with PIC16F628 and a constant Vdd at programming cycle.
Futterama is offline   Reply With Quote
Old 15th October 2005, 08:11 AM   (permalink)
Default

Quote:
Originally Posted by Futterama
My programmer works fine with PIC16F628 and a constant Vdd at programming cycle.
Make sure you NEVER select the internal oscillator, or it won't!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 15th October 2005, 09:50 AM   (permalink)
Default

Nigel, I ALWAYS use the internal osc and I have programmed the PIC16F628 MANY times with this simple programmer...
Futterama is offline   Reply With Quote
Old 15th October 2005, 10:05 AM   (permalink)
Default

Quote:
Originally Posted by Futterama
Nigel, I ALWAYS use the internal osc and I have programmed the PIC16F628 MANY times with this simple programmer...
And you're NOT switching Vdd?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 15th October 2005, 12:10 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
And you're NOT switching Vdd?.
That's right, I'm NOT switching Vdd, and it still works.
Futterama is offline   Reply With Quote
Old 15th October 2005, 01:26 PM   (permalink)
Default

Quote:
Originally Posted by Futterama
Quote:
Originally Posted by Nigel Goodwin
And you're NOT switching Vdd?.
That's right, I'm NOT switching Vdd, and it still works.
So how do you select programming mode?, particularly if the PIC is already programmed to use the internal oscillator?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 03:04 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.