PIC18F1220 locked up


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    More information would really help. You have _RC_OSC_1H, which configures the PIC for an external RC oscillator, and you have DEFINE OSC 4.

    Are you using an external RC oscillator, crystal, resonator, or what?

    Does it work as expected when you do NOT include config settings in your code?

    Pickit2 may just be complaining that you don't have all config settings in your code, but if it actually works, when you don't, then it's pretty obvious what's causing the problem.

    Just compare your config settings to the default settings in the PBP .INC file.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    Okay, I compared all the fuses and found out this one locks it up:
    @ __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_27_2L
    It is hex 08, if I change it to hex 0F all is fine. Has to do with the brown-out settings. Could be the brown out voltage or the brown-out ON/OFF bit. Don't want to destroy another chip (my last one) so will leave it for now. But weird it is, is there any way to unlock these chips?
    Thank you,
    Kees

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    eggman , All configuration bits are re-programmable. I don't see why you call the chip destroyed? Just reconfigure it using MPLAB and the PIckit2...

    Dave Purola,
    N8NTA

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    See #4 on this page: http://melabs.com/support/icsp.htm

    If you previously programmed a few with LVP enabled, you may need to ground the LVP pin to reprogram them.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    Well, I tried to program with RB5 (PGM) pulled low, still no luck. As soon as I try to start my Pickit2 with the PIC connected it reports: Device Error - hex file not loaded. So it will no longer recognize the wrongly programmed PICs, maybe I should try another programmer.
    best,
    Kees

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    With the Pickit2 software running select Tools, and place a check next to Use VPP First Program Entry.

    If it doesn't recognize the PIC with LVP at ground try it without this pin at ground.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default Re: PIC18F1220 locked up

    Thank you Bruce,

    You made my day!

    regards,

    Kees

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts