CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

RJ11 Connection To PIC18F

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kcj



Joined: 05 Oct 2011
Posts: 33

View user's profile Send private message

RJ11 Connection To PIC18F
PostPosted: Wed Jan 25, 2012 6:18 pm     Reply with quote

Hi All,

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.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jan 25, 2012 6:22 pm     Reply with quote

Look at the schematic in the CCS faq:
http://www.ccsinfo.com/faq.php?page=connect_icd
Compare it to your description for item #1 in your list.
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Thu Jan 26, 2012 9:30 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Jan 26, 2012 11:46 am     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Thu Jan 26, 2012 1:00 pm     Reply with quote

MCLR needs to be pulled up but it doesn't also require a diode. You can drop the diode if you wish.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group