I have being using a PIC PCB made by supervisor using PIC18F13K22. I have multiple problem with it and now have gone back to basics of setting the circuit up on a bread board. I have tried connecting the RJ11 connection using ICD U64 3.3v to the PIC but i am unable to communicate. it say there is a device ID problem.
The connections i have made are
1)Pin 1 RJ11 MCLR to PIN4 Pic using a 47K resistor tied to ground.
2)Pin 2 RJ11 Vdd 3.3v to PIN1 Pic 3.3v Vdd
3)Pin 3 RJ11 GND to PIN20 Pic Vss
4)Pin 4 RJ11 PGD to PIN19 Pic PGD
5)Pin 5 RJ11 PGC to PIN18 Pic PGC
6)Pin 6 RJ11 PGM to PIN7 Pic PGM
Is ther something i am missing, should CCSLoad be able to program the Hex file using this set up. I cannot get any connection at all.
With telco RJ11 connectors the connector fits two ways on the end of the 6 wire telco cable. If the white wire is MCLR then the end of the cable that plugs into your ICD-U64 will have the white wire on your left looking down the cable towards the ICD-U64 and the insert/release clip will be visible.
Now as to the blue wire ICD-U64 uses this for the CCD IDE rs232 monitor
and it is routed to the debugger output pin on the target board typically RB3.
You have the debug monitor going to PGM I have never done this so I'm not sure if this will work.
PICS are robust if the RJ11 is mounted incorrectly the CCS debugger will error with an invalid chip ID and ask to run diagnostics. The diagnostics aren't useful in this situation since the wiring is totally invalid. The good news is that if you cut off the RJ11 and reinstall it correctly the PIC will very likely have survived and will start working.
You say you are using 3.3v from the ICD-U64 ....there is a jumper inside the ICD-U64 case for switching between 3.3v target supply and 5v.
kcj
Joined: 05 Oct 2011 Posts: 33
Posted: Thu Jan 26, 2012 11:46 am
Hi Douglas & PCM programmer,
yes it turns out to be a simple wiring problem, after multiple attempts of doing the same thing it decided to work using CCSload for debbugging. I used the connector inside the ICD U64 to output 3.3v and a 510 ohm resistor and diode connecting MCLR to pin2 Vdd RJ11 to PIN4 on the PIC.
Thanks for the help
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Posted: Thu Jan 26, 2012 1:00 pm
MCLR needs to be pulled up but it doesn't also require a diode. You can drop the diode if you wish.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum