Sorry Renzo, it seems I still haven't been clear enough. If you have a PIC, such as the 16F690, which doesn't natively support in-circuit debugging, you have to use a header board (the AC162061 in this case) if you want to do hardware debugging with that type of PIC. So, regardless of what circuit your PIC is in, you pull out the PIC and install the header board in its place. This is true for any circuit, not just the low pin count demo board. For example, on my site, I sell a clock kit: http://www.gooligum.com.au/kits/travelclock1/travelclock1.html. It's built around a 16F690, and when I was debugging the code for that, I pulled the 16F690 out of the socket you can see on the main PCB, and plugged an AC162061 header in its place. I then connected the header, via its RJ11 port, to my ICD3 debugger. I could then debug my code (set breakpoints, single step, inspect registers and variables), while it ran in the actual hardware. LPC demo board was nowhere to be seen. And my clock board doesn't have any ICSP connector at all - no need for any special connectors= , you simply plug in the header board in place of your PIC, in your circuit. Thanks for the kind words on my tutorials. I wish I had more time to spend on them - then I'd be able to get to important topics like PWM outputs and UARTs and EEPROM - and yes, a lesson on driving common LCD modules would be nice to do one day, although there are already plenty of those on the 'net. Writing tutorials is a hobby for me, not something I earn money from (beyon= d some very welcome donations over the years), so it's very much on the backburner - I can't say when (if?) I'll get to any specific topic. Cheers, David www.gooligum.com.au > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On > Behalf Of RG > Sent: Saturday, 17 September 2011 7:46 AM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] Pickit2 and debug >=20 > Hi David, > thank you for your simple and clear explanation, but > Microchip Header_Board_51292S.pdf is not so clear. > In any case you can debug only a program on the Low Pin Count Demo > Board, > not to any general board or may be you must create a board with a > extra > special connector (I'll try it). >=20 > Another thing I don't understand why, Microchic has not a > header(AC162061) > with a female ICSP connector on one side and a male connector on the > other. >=20 > I am only an hobbyist and in my opinion your tutorial about Pic on > www.gooligum.com.au are very well done, when lessons around LCD? >=20 > Sincerely > Renzo >=20 >=20 >=20 >=20 >=20 > 2011/9/16 David Meiklejohn >=20 > > Ok, to summarise: > > > > The Low Pin Count Demo Board has a 20-pin DIP socket which accepts > most 20, > > 14, and 8-pin PICs, which the 16F690 is mounted in, plus a 6-pin 0.1" > pitch > > SIP ICSP connector, which a PICkit2 or PICkit3 can plug into > directly. > > > > The PICkit2 or 3 can then program, but not debug, the 16F690. This > is > > because the 16F690, like most other "low pin count" PICs, has no on- > chip > > debug circuitry. > > > > Therefore, to debug a 16F690, a special version of that chip (16F690- > ICD) > > is > > used, which includes the debug circuitry plus extra pins dedicated to > debug > > functions, so that all of the 16F690's 18 I/O pins can continue to be > used > > in the target circuit. > > > > This debug version of the 16F690 is supplied on a "header" > (AC162061), > > which > > replaces the original 16F690 in the target circuit (LPC demo board in > this > > case). Therefore the 16F690 is removed, and the AC162061 header is > > connected directly to the DIP socket where the 16F690 used to be, > using the > > supplied 2 x 10-pin connectors. > > > > The AC162061 header also includes an RJ11 connector, for connection > to a > > debugger. Note that this connector, NOT the ISCP connector on the > demo > > board, MUST be used for debugging, because the RJ11 connector > connects to > > those extra debug pins on the 16F690-ICD chip, which are no > accessible from > > the target circuit (demo board). > > > > This RJ11 connector can connect directly, through a short straight- > through > > cable, to the RJ11 port on an ICD2 or ICD3 debugger. > > > > The PICkit 2 and 3 do not have an RJ11 connector, but Microchip sell > an > > adaptor board, with an RJ11 connector on one end, and a 0.1" pitch > ICSP > > connector on the other, which allows you to plug an RJ11 cable into > the > > PICkit 2 or 3. Or, it's also quite straightforward to make up a > suitable > > cable with RJ11 on one end and ICSP on the other. Just don't make > that > > cable too long! > > > > > > Cheers, > > David > > www.gooligum.com.au > > > > > > > -----Original Message----- > > > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On > > > Behalf Of RG > > > Sent: Thursday, 8 September 2011 11:51 PM > > > To: Microcontroller discussion list - Public. > > > Subject: Re: [PIC] Pickit2 and debug > > > > > > Hi Oli, > > > look at about the middle of this page: > > > > http://www.microchip.com/stellent/idcplg?IdcService=3DSS_GET_PAGE&nodeId= =3D > > > 1406&dDocName=3Den023805&part=3DDV164120 > > > > > > and you will see what I refer to. > > > Cheers > > > Renzo > > > > > > 2011/9/7 Oli Glaser > > > > > > > On 05/09/2011 23:19, RG wrote: > > > > > I try to use Mplab ICSP debug program on a my board or simply > > > using the > > > > > Microchip Low Pin Count Demo Board. > > > > > Instructions show how to connect Pickit2 to an IC Header(i.e. > the > > > > AC162961 > > > > > Ic header for the Pic16f690) and plugging it to the DM164020-1 > Low > > > Pin > > > > Count > > > > > Demo Board. > > > > > > > > > > But the Ic Header AC162061 has no connector to plug in an > external > > > board, > > > > it > > > > > can be only connect to Pickit2 with a RJ-11 adapter and has > only a > > > socket > > > > in > > > > > which insert a Pic16f690. > > > > > Which is the solution? > > > > > > > > > > Sincerely Renzo > > > > > > > > Sorry if I missed something as I haven't been following all the > > > thread. > > > > Are you sure you mean the Low Pin Count Demo Board and/or the > > > PicKit2? I > > > > have one around here somewhere and it has no RJ11 on it, or any > > > > footprint for one. It connects to the PicKit2 (which it came > with) > > > via a > > > > 6-pin 2.5mm pitch vertical header (no cable, the PicKit2 just > plugs > > > in > > > > directly) > > > > Or did you mean the ICD2 instead of the PicKit2? > > > > > > > > -- > > > > http://www.piclist.com PIC/SX FAQ & list archive > > > > View/change your membership options at > > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > > -- > > > http://www.piclist.com PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .