Minimal setup for PIC16F627A and selecting the internal oscillator
I am new to PIC design, but an experienced EE and software developer. I purchased a PICKit 3 Debug Express with prototype board and was able to run MPLAB IPE to connect to the prototype board and see a correct Target ID. So the tools seem to work fine.
For my actual design, I am using a PIC16F627A. and plan to use the internal oscillator. I have wired a minimal setup to get the ICSP debug connection working as follows (using documentation provided with the PICKit 3): PICKit 3 Pin PIC16F627A Pin Pin 1 Pin 4 Vpp Pin 2 Pin 14 Vdd Pin 3 Pin 5 Vss Pin 4 Pin 13 PGD Pin 5 Pin 12 PGC Pin 6 Not connected
The only other component is a 10k resistor between Vpp and Vdd (pins 1 and 2).
I also set the configuration in the MPLAB IPE to use the debugger for power using the default 5.0V.
When I attempt to connect the IPE, I see the error "Target Device ID (0x0) does not match expected Device ID (0x1040)."
Reading other forum posts and tutorials I am guessing that the reason I see this error is because I have not provided an oscillator.
* How do configure the device to use the internal oscillator? Do I need to wire one of the PIC pins? Is it tool configuration change?
* Is the error I see probably because of no oscillator? Or is there some other likely problem?
Changed correct part number to PIC16F627A.
A little more searching and the problem may be related to the PGM pin. The PIC16F627A supports Low Voltage Programming. For High Voltage Programming (PICKit 3), the PGM needs to be driven low. In my case it is just floating. I am going to try a pull down resistor on PGM and see what happens. I may also connect the PICKit 3 pin 6 to the PGM as this may be driven low for just such a purpose. I do not plan to use the PGM in my design anyway.
post edited by ChuckZ - 2014/02/18 14:21:00