I've got the right device selected in the project and on the rotarty selector switch on the header. What have I missed/got wrong? Thanks Tom #1 Ninestone Super Member Total Posts: 456 Joined: 2008/02/17 13:41:32 Location: 0 Re:PICKit 2, 12F615 header and AC164110 adapter. 2011/03/07 14:54:01 #1 When adapting a PICkit2 to an RJ-11 debug connector, the "square" pin on the adapter goes to pin 6 of the PICkit 2 connector. (When converting an RJ-11 device like ICD3 to connect to a PCB with an ICSP header, then the square is pin 1) #2 What exactly is the message you get? Try connecting with just the pickit2, adapter, and ICD header (ICD header no plugged into anything). Pickit2 will power the header. After you get this to connect, then put the header on your PCB to try that. This let's you know if something on the PCB is preventing the header from working. #2 2011/03/07 23:48:36 Ninestone #1 When adapting a PICkit2 to an RJ-11 debug connector, the "square" pin on the adapter goes to pin 6 of the PICkit 2 connector.
Unfortunately a RJ12 cable assembled normally (both connectors the same way up with respect to the mold line on the cable jacket) reverses the pinout. To get it straight through you must assemble the cable with one connector inverted. Add a lack of communication between departments and abysmal lack of documentation packed with the header and you have the mess that had you puzzled. All it would take is a simple instruction leaflet in the box... Or even just a URL printed on the packing slip. Some prodding around looking for the device ID you are getting leads to ---------- devid (region=0x2006-0x2006 idmask=0x3fe0 id= 0x2240) That is one of the devices your header supports. Try disconnecting the header and spinning the rotary switch a few times then CAREFULLY reselecting switch position 9 for PIC12F615 as documented for AC162083 in Table 3, DS51292S page 22. I don't think it will help, but it is worth a try as position 8 for the mis-identified PIC12F609 is adjacent and IF the switch position affects the ID then a tiny bit of dirt in the switch contacts could easily give this result.
Thanks for your help. Tom post edited by tomsimmons - 2011/03/08 01:47:40 #3 Ian. M Total Posts: 13273 Joined: 2009/07/23 07:02:40 Location: UK 2011/03/08 00:02:46 You *MUST* select PICkit 2 as Debugger not as Programmer. As the same PIC....... -ICD on the header is used to debug several PICs, its ID doesn't match that used in Programmer mode. In future, if unsure about the pinout, use a multimeter to check where Vss and Vdd go! #4 2011/03/08 00:09:26 I am selecting PICKit 2 from the debugger menu, and had already made sure that None had been selected from the programmer menu. When I mentioned programming I was really only confirming that the PICKit and project are known to be good. My meter is on loan, otherwise I would have used that, however it does seem a little daft to have the traditional pin 1 marker not going to pin 1, and to have no documentation on the matter. Tom #5 2011/03/08 01:38:34 Fair enough. It is one of the less obvious things that catches people out though. On the Pin 1 issue, I think you can probably blame the choice of a RJ12 cable on the ICD range of debuggers for that lovely little reversal.