Searching \ for '[PIC] MCLR=1.7Vdc with ICD2' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=icd
Search entire site for: 'MCLR=1.7Vdc with ICD2'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] MCLR=1.7Vdc with ICD2'
2005\04\22@111029 by Mark Scoville

flavicon
face
Hi Piclisters.

Ok, I finally bought a ICD2 from MicroChip when they had the holiday sale
earlier in the year, but it is doing something wierd. I'm a long time PIC
user/programmer, but a newbie with the ICD2. Maybe somebody can make some
sense out of this.

Here is what happens. I use the ICD2 in programmer mode to program my chip.
I click on the "Release from reset" button and my application begins
running. All is well. About 10 minutes later I notice my application
freezes, and if I measure MCLR with my DVM it reads 1.7Vdc - If I click on
"Hold in reset" button MCLR goes to 0Vdc. If I then click on "Release from
reset" MCLR goes to 5Vdc and application starts running. But, 10 minutes
later (or so) MCLR is again at 1.7V and the application has stopped.

If I wait for MCLR to go to 1.7V and then disconnect the entire ICD2
cable... MCLR will jump up to 5V and app starts to run. If I wait for MCLR
to go to 1.7V and then disconnect only the MCLR wire to the ICD2 cable...
MCLR will jump up to 5V and app starts to run.

If I program my device and then disconnect the ICD2 cable from my device my
app will run for days and days (until I stop it).

The only thing connected to MCLR is a 10K pullup to +5 (and the ICSP
connector). There is nothing connected to the ICSP program and data lines
(except of course the ICSP connector). I have the config bits set to use the
MCLR pin as MCLR.

I'm using MPLAB 7.10 and this is happening with PIC18F6585's. The ICD2 (ver
R23) is connected to the PC via USB. My PC is NOT entering a "power-save"
mode.

Has anybody else seen anything like this? Maybe I'm not supposed to be able
to leave the ICD2 connected after programming? I've asked about this
behavior on the Microchip ICD2 forum and someone suggested making sure the
PC wasn't going into "Power Save" mode (It isn't).

Maybe the ICD2 I have is a dud. Any ideas folks?

-Mark

Doesn't matter what your business card says...
We're all in the results business.



2005\04\23@074633 by Gerhard Fiedler

picon face
Mark Scoville wrote:

> I click on the "Release from reset" button and my application begins
> running. All is well. About 10 minutes later I notice my application
> freezes, and if I measure MCLR with my DVM it reads 1.7Vdc - If I click
> on "Hold in reset" button MCLR goes to 0Vdc. If I then click on "Release
> from reset" MCLR goes to 5Vdc and application starts running. But, 10
> minutes later (or so) MCLR is again at 1.7V and the application has
> stopped.

> Maybe the ICD2 I have is a dud. Any ideas folks?

Maybe... The only input I can provide is that mine doesn't do this. I
routinely have it connected to the circuit for long times while the
application is running, after using it as a programmer. I can confirm that
it stops the application through power cycles -- not sure whether that
happens when it goes to sleep or when it wakes up, though, or whether
that's a clean reset or 1.7 V. Haven't checked on that yet, as neither me
nor my computer tend to go to sleep while working :)

Gerhard

2005\04\23@085629 by Herbert Graf

flavicon
face
On Sat, 2005-04-23 at 08:46 -0300, Gerhard Fiedler wrote:
> Maybe... The only input I can provide is that mine doesn't do this. I
> routinely have it connected to the circuit for long times while the
> application is running, after using it as a programmer. I can confirm that
> it stops the application through power cycles -- not sure whether that
> happens when it goes to sleep or when it wakes up, though, or whether
> that's a clean reset or 1.7 V. Haven't checked on that yet, as neither me
> nor my computer tend to go to sleep while working :)

I've never let my ICD2 run for a long time in programmer mode, but I
have in debug mode and mine didn't do anything like that either.

One other thing the OP can check is the USB root hub's power settings,
in win2k there's an extra pane in one of the USB devices that says:
allow windows to turn off this device to save power. Make sure that's
not selected.

If that's not it then it's possible the OP has a bad ICD2. To the
original OP, does it ALWAYS happen? TTYL


-----------------------------
Herbert's PIC Stuff:
http://repatch.dyndns.org:8383/pic_stuff/

2005\04\23@122442 by Mark Scoville

flavicon
face
> One other thing the OP can check is the USB root hub's power settings,
> in win2k there's an extra pane in one of the USB devices that says:
> allow windows to turn off this device to save power. Make sure that's
> not selected.

I'll take a look at this when I get to work Monday. However, the ICD2 power
LED is still On when the MCLR is at 1.7Vdc - I assume that the USB device
(ICD2) still has power.

> If that's not it then it's possible the OP has a bad ICD2. To the
> original OP, does it ALWAYS happen? TTYL

Yes, always happens. If I intend to run my code longer than a few minutes I
disconnect the ICD2. If I leave it connected I can expect MCLR to go to
1.7Vdc within 5 to 15 minutes. Wierd huh?

I don't remember if I mentioned this... If I leave the ICD2 connected and
wait for MCLR to go to 1.7Vdc... then disconnect the ICD2 cable from my
device... MCLR pops back up to 5Vdc and the PIC runs... If I then reconnect
the ICD2 cable MCLR goes to 1.7Vdc after about 10 minutes.

-Mark


2005\04\25@121016 by Mark Scoville

flavicon
face
> One other thing the OP can check is the USB root hub's power settings,
> in win2k there's an extra pane in one of the USB devices that says:
> allow windows to turn off this device to save power. Make sure that's
> not selected.

I checked the USB root hub power settings. It is set to NOT allow Windoze to
turn off the USB power - so I guess that's not the problem. So it's still a
mystery.

-Mark



More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...