icd2 connection
Hi,
I will try to answer all your questions:
1.
A. You can only use ICD real time debuging if the PIC support this. All the reset can only be programed and not debug in real-time.
B. In the MPLAB When you choose the typr of PIC under select device, the green or read under "Microchip debuger tool support" - MPLAB ICD2 will tell you if you can debug ( green ) or just program ( red ).
C. Vdd is used so the ICD will know that the PIC is powerd. You can use the ICD2 to supply your board with Vcc, but i dont recomand that if you dont know what you are doing.
D. MCLR - is used to reset the PIC and also supply it with 13V when programing the FLASH.
E. PGD - Data too and from the pic
F - PGC - Clock to sync the data PGD
G. and Vss as ground.
H. If you want to debug the PIC in real time, then yes you cant use this pines as long as the ICD2 is connected. If you do want to use them then you will have to design your ciruit in such a way that it want interfear with the comunication of the ICD when you debug or program the PIC.
2. Yes you can, but to start with, dont use the diode and the cap. Only the resistor is a must.
3. When you connect the ICD as your picture in figure 2, the PIC will know that the ICD2 is talking to him when the PIC will see 13V in the MCLR. Nothing else needs to be configured in the PIC.
BUT: If you want to use the debug feature, you will have to tick the ( in MPLAB ) under Project, Build options, Project, you will find in one of the Tabs a place to Tick the ICD2.
4. As i said, the second picture is a good way to start connection your PIC to the ICD2.
5. Bootloader is a program like the BIOS in your computer. it loads itself and then the OS from the Hard disk ( more or less )... you first need to load to the PIC with the ICD2 or any otehr means and only if that pic has a serail port feature.
Its a very small program most of the time that start first when the PIC loads. if the bootloader cant find another program in memory it sets the serial connection pines so it will receive the program using the serial port ( 2 pines ).
if there was a program in th memory it can start runing the program after a short delay that was set in the bootloader program.
I have attached the ICD2 user guide for you to read. Please read it and you will have all your answers and much more.
Regarding the DsPic, you will have to read more about it after you will read the pdf i attached.
Good luck...