• AVR Freaks

Minimal setup for PIC16F627A and selecting the internal oscillator

Author
ChuckZ
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2014/02/17 10:53:27
  • Location: 0
  • Status: offline
2014/02/18 11:49:16 (permalink)
0

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.
MY QUESTIONS:
* 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?
UPDATE
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
#1

4 Replies Related Threads

    Ian.M
    Super Member
    • Total Posts : 13274
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re:Minimal setup for PIC16F278A and selecting the internal oscillator 2014/02/18 13:48:04 (permalink)
    +2 (1)
    Microchip dont make a PIC16F2718A, nor do they make a PIC16F278A
     
    By your pin connections, you appear to be using an 18 pin device. The only 18 pin PIC16F devices with a part number ending A are:
    PIC16F84A, PIC16F627A, PIC16F628A and  PIC16F648A.  
     
    Comparing device IDs gives the information that you have the PIC16F627A selected in the IPE.  Is that the number on the actual chip?
     
    Your error may be due to bad connections. It certainly isn't due to lack of an oscillator as no PIC16F part needs any oscillator components connected to program successfully.
    post edited by Ian.M - 2014/02/18 14:10:45
    #2
    Ian.M
    Super Member
    • Total Posts : 13274
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re:Minimal setup for PIC16F278A and selecting the internal oscillator 2014/02/18 14:16:26 (permalink)
    0
    PIC15F278A ???? LoL
     
    Yes, on any PIC with a PGM pin,  connect it to pin 6 of the ICSP connector.
    #3
    ric
    Super Member
    • Total Posts : 30223
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Minimal setup for PIC16F627A and selecting the internal oscillator 2014/05/17 18:16:26 (permalink)
    +1 (1)
    ChuckZ
    ....
    UPDATE
    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.

    I see Chuck did see the responses, and updated the original post.
    I know it has been a long time, but did you get any further Chuck?

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    ChuckZ
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2014/02/17 10:53:27
    • Location: 0
    • Status: offline
    Re: Minimal setup for PIC16F627A and selecting the internal oscillator 2014/05/19 11:48:19 (permalink)
    0 (1)
    Yes. I connected the PGM pin to the PicKit 6 and it worked. Thanks for the follow up.
    #5
    Jump to:
    © 2021 APG vNext Commercial Version 4.5