Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 10:53:58 22:53


Login with username, password and session length


Pages: [1]
Print
Author Topic: ICD3 VPP interface (substitute by own VPP)?  (Read 6797 times)
0 Members and 2 Guests are viewing this topic.
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« on: October 26, 2012, 01:13:17 13:13 »

Hello

I need to use my own VPP instead the ICD3 VPP but only when the ICD is going to program so, the ICD3 VPP is going to trigger the circuit that really supply the VPP for the MCU. The reason for this is because i'm designing an automatic switcher for the ICSP/IO-Ports. The problem -the only one- is the VPP-MCLR interface: each time i try to connect something beyong a resistor (or a capacitor below specified capacitance), the ICD lost the target and starts working erraticly...


Just as example (only a simple EXAMPLE, it really doesn't work but you can get the idea), see the next image:

Does anyone interfaced successfully the VPP line from the ICD3 without anyproblem?  I haven't until now and furtermore i burned a ICD3 in the process (don't ask me how i still dunno what happened and looks like a postergeist).

Any suggestion is welcome Cheesy

Thanks.
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #1 on: October 26, 2012, 08:54:35 20:54 »

Can you tell us a little more about your automatic I/O port switcher?  Maybe there is another way to accomplish your task without getting too complex.
Logged
gan_canny
Junior Member
**
Offline Offline

Posts: 89

Thank You
-Given: 101
-Receive: 26


« Reply #2 on: October 27, 2012, 02:43:15 14:43 »

You didn't mention which PIC chip. In case you don't already know many PIC chips have a NOMCLR fuse which allows the MCLR PIN to become a regular IO pin.Since the pin becomes a regular I/O pin the master clear (logic low) is ignored.
Logged
flo0319
Junior Member
**
Offline Offline

Posts: 81

Thank You
-Given: 7
-Receive: 17


« Reply #3 on: October 27, 2012, 05:31:38 17:31 »

I can not understand what you want to do alichan.

MCLR pin from microchip MCUs (pic12,pic16,pic18) if is used like an "I/O" pin is only an Input pin. So, if you have something on this pin what you want to protect, you can use a diode, but I think that a sensible output from other device is already protected internal.

Sometimes is a problem with VPP line and MCLR when is used reset circuit from datasheet(with capacitor), but there is a big note:  External Power-on Reset circuit is required only if the VDD power-up slope is too slow. The diode D helps discharge the capacitor quickly when VDD powers down.

if you have this problem you can remove the capacitor from this circuit.
Logged
Dragan
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 4
-Receive: 6


« Reply #4 on: October 28, 2012, 11:36:42 11:36 »

Greetings ,
This is the typical upper leg bridge driving problem . You have a voltage on base of the transistor which is in range of output voltage or lower . When the transistor conducts your voltage on base is not high enough to hold it opened and it begins to oscillate . The solution would be to connect 2 transistors first npn with emmiter to gnd base to your VPP - ICD and the collector to second transistor of a pnp type via resistor to the base. The emmiter of second transistor goes to +13V and collector to output ( and via a other resistance  to gnd ).

Dragan

Posted on: October 28, 2012, 11:14:47 11:14 - Automerged

shematic of the solution included in png picture
« Last Edit: October 28, 2012, 11:45:53 11:45 by Dragan » Logged
flo0319
Junior Member
**
Offline Offline

Posts: 81

Thank You
-Given: 7
-Receive: 17


« Reply #5 on: October 28, 2012, 01:01:57 13:01 »

I found this: http://www.microchip.com/forums/m416448.aspx

and this: http://ww1.microchip.com/downloads/en/DeviceDoc/ETN29_MPLAB_ICD%20_%20VPP_CURRENT_SINK.pdf

and in attache is what you can not use when connect ICD3 with a MCU
Logged
santiniuk
Inactive

Offline Offline

Posts: 1

Thank You
-Given: 2
-Receive: 6


« Reply #6 on: October 28, 2012, 06:52:16 18:52 »

This is a problem I've had with a number of designs in production. Unfortunately for cost reasons I always end up with ICSP lines that have shared external I.O.
Generally during prototyping and prior to final production we use '0' Ohm resistors that are lifted or switched out. Final production replaces these with tracks.
Keeping the load impedance >10K can normally keep you out of trouble but any capacitance is a no go and creates havoc.

Logged
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« Reply #7 on: February 09, 2013, 02:25:54 14:25 »

I can not understand what you want to do alichan.

MCLR pin from microchip MCUs (pic12,pic16,pic18) if is used like an "I/O" pin is only an Input pin. So, if you have something on this pin what you want to protect, you can use a diode, but I think that a sensible output from other device is already protected internal.

Sometimes is a problem with VPP line and MCLR when is used reset circuit from datasheet(with capacitor), but there is a big note:  External Power-on Reset circuit is required only if the VDD power-up slope is too slow. The diode D helps discharge the capacitor quickly when VDD powers down.

if you have this problem you can remove the capacitor from this circuit.


Well the problem is not realted to MCLR, just triggering a signal when VPP reach some level... the image is just an example, it shouldn't be taken as a real one. Until now i haven't found a suitable way to trigger the signals without having serious problems with the ICD3 (including overheating :S).

I can say i haven't found any information about this issue, neither Microchip forums... i have seem some "automatic" switchers but many of them don't work (i tested them) or have serious limitations. In fact none solve the problem of MCLR. Only 1 automatic switcher "does", but the design is closed and based in another PIC but from the information i read i could guess it only receives the programming/debug information from the ICD and is this PIC which really programs the device not the ICD, but also in this case, they are severe limitations: for example you only cannot use the external power supply when programming with the ICD3 (that limits you to a max of 100mA in the whole circuit).

I could successfully switch almost all the signals (PGM, PGC, PGD), less VPP. It fails if you attach any active circuit. Basically the the switch is an analog switcher/demux (with specific impedance when the channels are on -i think i was using a 74HTC4053-) and some logic and voltage level adapters to determinate when the switcher must be turn on/off.
Similar analog switchers also works but you have to take care with voltage levels, impedance on channels, switching frecuency, etc. For my tests that chip was fine.
You can see some designs that claims they deal with VPP, normally using a 4066, but they don't work (not at least with the ICD3,maybe they do with ICD2 because there are some differences). And if they do, all violate the voltage maximum ratings and other parameters.

For now i have this issue stopped... i'm not in the mood to burn my ICD3, and trust me when i say the outputs aren't very well protected... you can burn it easily, too easily, the risk is real and high. This is an issue that Microchip should have solved long time ago, but they didn't. Of course the ICDs aren't designed to play with the output signals, but well... shortcircuits happen and usually the ICD burns (at least the ICD2) xDD

If you can live with the VPP signal connected to MCLR as usual, they my weekend-design works and surely will work for LVP (i haven't tested it)

Greetings ,
This is the typical upper leg bridge driving problem . You have a voltage on base of the transistor which is in range of output voltage or lower . When the transistor conducts your voltage on base is not high enough to hold it opened and it begins to oscillate . The solution would be to connect 2 transistors first npn with emmiter to gnd base to your VPP - ICD and the collector to second transistor of a pnp type via resistor to the base. The emmiter of second transistor goes to +13V and collector to output ( and via a other resistance  to gnd ).

Dragan

Posted on: October 28, 2012, 11:14:47 11:14 - Automerged

shematic of the solution included in png picture

Thanks, I know that. I used that simple design to show the idea, but i think it only created more confusion xD. Next time i should use the typical diagram with boxes instead real components. It's my fault not explaining it correctly.

But other people will read the forum and learn from this Cheesy
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC