Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

This is a working RS232.... ICD2 !!!!

Status
Not open for further replies.
icd2 failed to reqd requested bits

Testu,i've done the icd2 with 16f876A(firmware 661.hex) but it didn't work.It cant connect with Mplab when i choose Programmer/ICD2(error 21).
Did it work with Mplab6.x?
 

icd2 firmware icd01020605.hex

crazyduck said:
Hi,
I'm very confused, I've make a mistake on my ICD2 schematic. The C12 must be invert.

Sorry......

CD :?

@Crazyduck

Hi,
Thank you for clearing up this issue with the C12 capacitor.
However there is also the issue with the C10 one. If you looked the datasheets of MAX232 you must have seen that the plus pin of C10 should be connected to pin2 of MAX232 *but* the other pin of C10 (minus) to +V (pin16) (in our case VPIC). And not grounded as in your schematics. So: can you please look in your *working* ICD2 box where C10 is connected? Its plus pins is of course connected to pin2 of MAX232 IC. Its minus where to ???

Best Regards

PS:Also in your schematics from the COM port connector DB9 to MAX232 you using five 330R resistors. May I ask why do you do that?
 

reverse engineering icd2 serial connection

Hi,
OK I see the problem with C12, I would do some tests on my boards this morning.
But i think it is a mistake too....

CD :oops:
 

pressing run self test icd2

sysop104 said:
Thank you for clearing up this issue with the C12 capacitor.
However there is also the issue with the C10 one. If you looked the datasheets of MAX232 you must have seen that the plus pin of C10 should be connected to pin2 of MAX232 *but* the other pin of C10 (minus) to +V (pin16) (in our case VPIC).
And not grounded as in your schematics.

...ain't no issue about C10 really. You may use a lower voltage capacitor as you connect its negative pin to +V instead of gnd, but the MAX232 voltage doubler should work fine with C10 tied to ground
 

picc config 876a

Hi,
About C10...
I get the voltage at the C10 pins, the voltage is positive. So, the capacitor's polarity is right on my schematic. I get #8,35V at C10's pins.
Have a good day.
CD:D
 

pgm pin debug: unable to enter debug mode

Hi CD,

I've built your version with 16F877A, burned in Zaphod's bootloader and
downloaded ICD2 op sys with MPLAB 6, it's went ok.

But now MPLAB says "Self Test failed" please look at the attached image:

It's running from a ~16V external power supply (7805 gets very hot).
Fixed the polarity of C12 as u discussed earlier.

Can you tell me what's wrong?

Please help,
thanks in advance,
Zed
 

dspic24

Hi,
Verify voltage at this points:

You must have #15V on the input pin of U2

VPP on th ouptut pin of U2 and on the source of Q2, you must have #11V

remove PIC µc from support, and put pin RC0 to ground, you must have VPP voltage on ISP-VPP;



Verify your cable continuity and length. The cable must <30cm length.

Be sure the polarity of D1 is correct.

Look at the attached file to check voltage.
CD:)
 

icd2 reflash 16f877

I got ~16 V at the input of LM317, and ~12V at
ther output but when i connect to it with MPLAB
then it gets back to 7V.
I dl-ed this with MPLAB: ICD04020602.hex this
is what it recommends. Altough i can download
this: ICD01020605.hex and with this it says
fw not good for dselected device and it want's to dl
the fw i mentoined above. With the other fw the
voltage is still 7V at the output of 317, but it says
self test ok.

now I got to the forest. :(
please help,
thanks,
Zed
 

icd2 betreiben über rs232

Hi,
Program your 16F877A with the correct bootloader. You can find it on this topic, it was post by Zaphod42.
When this bootloader is program on your PIC, MPLAB download the correct operating system in your PIC. The operating system depend of your µc target.

CD
 

zed-prog eprom programı

Hi CD,

I don't have prob with FW download, i just said if
I choose 16Fxx then it downloads other fw and then
it doesn't complain about Vpp. But when I choose
18F6620 then it downloads another, and connects
to the target, it says:

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC18F6620 found, revision = a4
...Reading ICD Product ID
Running ICD Self Test
... Failed Self Test. See ICD2 Settings (status tab) for details.
MPLAB ICD 2 Ready

and at the status bar I c Module Vpp is low and MLCR Vpp is low.

I got replaced the 317 and the MC41010 but still the same.
I got the 11V u mentioned on the 317 before i connect with MPLAB,
as soon as the PIC sets the level on 41010 the voltage level goes down
to ~7V.

Iam still in the forest...
Zed
 

making rs232 icd2

I got the same problem. Output of 41010 is around 6Volts...
 

icd2 serial

Hi,
Try this modification on your board, replace R3 (1k) with 2k2 or 2k7.
This changement increase Vpp voltage around 11V.

CD:°
 

max232 schematic + pic16f876a

My tests with 2k2 are goods, I've VPP voltage near 13V. You can use 1k8, 2k or 2k2 for R3, but not highter.
VPP voltage increase when R3 increase. VPP voltage must be in range 11V to 13,5V.
Good night
CD:)
 

k8lh icd2

Thanks CD,

now with 2.2k it's 11.8V.

but now when I try to program a 18F6620 I'm
getting this message:

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC18F6620 found, revision = a3
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Reading...
ICDWarn0038: When using auto-calculate write range, reads cover the entire memory range. Do you wish to continue?
...EEPROM
...Program Memory (0x0 - 0xFFFF)
.. Config Memory
...User ID Memory
...Read Succeeded
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
Verifying...
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0x300001, Expected Val = 0x22, Val Read = 0x27)
ICD0275: Programming failed.
MPLAB ICD 2 Ready

I tried just a simple thing:

a) Read device (it worked, all FFFFs)
b) Changed Oscillator type to HS
c) program device

and i got the message above.
Sobakava did you get here too or it's working for you?

Zed
 

hi,
finally I can present my latest ICD2 design. not many changes were made since my last posts.
a few error corrections, some layout enhancements and the possibility to power target boards directly over USB. I also wrote a short documentation.

this design is fully tested!

I hope this is useful to you and feel free to send any comments.

enjoy.

regards, jenda


all needed files can be downloaded here:
 

Hi all,

i build the RS232 ICD 2 from this thread, it works really fine but only on my fast Athlon XP 2600+ (Windows XP SP2, MPLAB 7). If i want to use the ICD on my slow Pentium II 350MHz (same software environment) i get following messages if i want to programm a chip:

Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0x8)
ICD0152: Failed to read all of requested bytes (0x0 of 0x8)
ICD0151: Failed to sync memory (MT = Program) (Dir = 0x1)
ICD0152: Failed to read all of requested bytes (0x0 of 0x2)
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0275: Programming failed.
MPLAB ICD 2 Ready

Erasing, reading and blank check works and the FIFO is disabled. Someone there who knows about this problem? I'm not sure, maybe the Pentium is really too slow.

greendog
 

I've RS232 working ICD2 project, make only with SMD components.
Anyone try to implement ( no without adaptations :) ) ICD2 firmware in 16F88 ?
Regards,
Manu
 

hello
So the download center is offline, could someone send me
(or give me an other link) the hex file for a pic16F877
(not A) for the ICD2
Mail : patrice.ulrich@evc.net
Thanks a lot an happy new year
 

I've build the ICD2 with PIC16F877-20, BL010101.hex as bootloader and RS232 interface (not USB) but when trying to connect i get the following:

Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
MPLAB ICD 2 Ready
ICD0092: Attempt to operate on unopened comm channel
Connecting to MPLAB ICD 2
ICD0021: Unable to connect with MPLAB ICD 2
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready

What is the baudrate ot the ICD2 - 19200 or 57600 ? Or is it automatic ?
I use an RS232 analyzer and it shows that there is no response from the ICD.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top