# Programming/Debugging with ICD3 and PIC16F819-I/P

ICD3 passes internal test with MPLAB IDE using the Test Interface Module
PIC16F819-I/P supports ICSP and In-Circuit debugging source.
ICD3 pinout is as follows (source):

1) Vpp/!MCLR
2) Vdd
3) Vss
4) PGD
5) PGC
6) LVP


The relevant PIC16F819-I/P pinouts are as follows (source):

 4) RA5/!MCLR/Vpp
14) Vdd
5) Vss
13) RB7/T1OSIPGD
12) RB6/T1OSO/T1CKI/PGC
?) LVP


The documentation for the PIC states that it can be debugged using RB6 and RB7 provided that the DEBUG bit in the Configuration Word is set to '0' (page 102).
Q1) How do I do this? Can it be done through MPLAB?).

Q2) Is programming and debugging as simple as connecting up Vpp, Vdd, Vss, PGD, and PGC (ignoring LVP) from the ICD3 to the pins of the PIC? I have a small breadboard to do this, but I'm wondering if I need additional passive components, which leads me to Q3.
Q3) How should I set up my breadboard to program the PIC?
Q4) Given Q1-Q3 are all satisfied, is programming and debugging as simple (using MPLAB IDE) as writing the code, downloading it to the PIC, and debugging from there? I understand that this question may fall outside the scope of my original 'how do I get started' question. Feel free to ignore it if you feel that it does.

Thank you so much for any guidance on this. I sincerely want to do this correctly!

EDIT: The resolution to this specific issue was eventually found here.

• If you have multiple questions, please ask them separately. – Connor Wolf Mar 10 '13 at 4:27