Configuration error


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    Any time I try to program a 12F675, the default configuration is LP osc and code protected.


    If I change the configuration to EXTOSC and NOT PROTECTED and try to program, I get a configuration error.


    Now, when I read the part, the configuration changes to LP osc and code protected.

    I am using the Melabs programmer. I can make a jpg image of the configuration window but don't know how to post it.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Below the message box when you reply there is a "manage attachment" button.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sounds like a programming cable problem.

    If you have nothing connected to the programmer, and try to read back a 12F675, it'll show these configs.

    Code:
    Oscillator      LP
    Watchdog timer  Disabled
    Powerup timer   Enabled
    MCLR Pin        Input Pin
    Brown out       Disabled
    Code protect    Protected
    Data EEPROM     Protected
    And it'll show all 0000's in the code window.

    Check the connections again, especially at the 10-pin connector on the programmer.
    Make sure the connector is alligned correctly.
    <br>
    DT

  4. #4
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    Thanks, Darryl but the connector has not been messed with and it worked OK before. The read does read the hex file that was loaded.
    Attached Images Attached Images  

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    OK, if it reads the memory then it wasn't the cable.

    I am using melabs programmer version 4.01 ...
    You might try the latest version of meProg which is up to version 4.31 now.

    The beta can be downloaded here ...
    http://www.melabs.com/support/progsoft.htm

    hth,
    DT

  6. #6
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    I did download the beta programmer and tried to program a 12F675 that had already been successfully programmed. First I read the memory; it was 3FFF in all locations. That was not correct but I tried to program it anyway. The process went smoothly and verified OK. I then read the memory; it was 3FFF all over. I clicked on the verify icon; it reports an error. Is this another IC for the dust bin?

  7. #7
    Join Date
    Sep 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russ Kincaid View Post
    I did download the beta programmer and tried to program a 12F675 that had already been successfully programmed. First I read the memory; it was 3FFF in all locations. That was not correct but I tried to program it anyway. The process went smoothly and verified OK. I then read the memory; it was 3FFF all over. I clicked on the verify icon; it reports an error. Is this another IC for the dust bin?
    You can erase them don't throw them away all you have to do is open the pickit2 software and turn code protect off and then erase the chip.

    The best way to do it is place the 12f675 in a solderless bread board fire up the pickit2 and reset code protect.

    If it don't let you put a new chip in first let the pickit2 detect it then remove it and place you locked chip in then unlock and erase

    You don't have microcode set for the right chip is why this is happen. What happen to me is that it set for default which is 16f628 and I changed it to the 12f675 before I compiled it still built for the 16f628
    I then ended with a locked chip I then clean out the folder and started over saved the project as 12f675 from the start and it worked fine
    Last edited by be80be; - 18th September 2009 at 02:11.

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russ Kincaid View Post
    ... and tried to program a 12F675 that had already been successfully programmed. ...
    Curious ...

    Do you know if the program that was already loaded in it was using the Internal Oscillator with MCLR disabled?

    I've had some difficult times trying to reprogram 675's and F88's after that scenario.
    But I was able to get them back by turning on power to the chip at just the right time in the programming sequence. Took 10-15 or more tries each, but did get them all back.
    <br>
    DT

Similar Threads

  1. Configuration bits and timing
    By Christos_K in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th November 2012, 09:53
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 05:58
  4. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 06:59
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 01:22

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