16F84A EEPROM Programming


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611

    Unhappy 16F84A EEPROM Programming

    Hi, Everybody

    I Have a little problem with my 16F84A EEPROMs ...
    I am working with PBP 2.45a,MPLAB 7.01 and Picstart+ Upgraded.

    With a brand new chip no problems, Loading values to EEPROM Works pretty Well ...

    But, with an already programmed chip, I need to reset All EEPROM values to $FF ... ( DATA $FF(64) at the end of the config. section of my program)

    Here comes the problem ...
    MPLAB tells everything all right, "verify" tells everything Ok ...

    BUT, a "read" shows Old values are still here, and an "on board" run shows it too ...

    Has anyone ever dealt with such problems ???

    ... I know it's not PBP's fault nor mine ...

    Alain

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In MPLAB, go to Configure>> Settings >>Program Loading and check Clear EE data upon loading a program
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Exclamation

    Thanks, steve

    But it's already done ... ( also default setting, i think )

    Even microchip tell me to erase device before re-programming...so, it's a real bug !!!

    As their SSR 19753 says clearly EEPROM ERase doesn't work with 16F628, 16F84 and 16F876 ... what to do ?

    Really Funny ... isn't it !!!

    Regards
    Alain

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    nop it's not a default setting.

    I still don't understand why Microchip don't offer, like many other programmer software, this 'erase before programming' option... well MPLAB is free

    i was not aware of this SSR 19753... so i guess you must clear them manually directly in the View>> EEPROM , right click on the window and choose Fill memory
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Talking

    Sorry Steve ... doesn't work either !!!

    All Other values ...except FF !!!

    Alain

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Oh my gooood!!!

    fill memory with FF

    Programmer>>Setting
    uncheck auto select memory areas and range
    check EEPROM data

    program your PIC... read it back... you're now in business
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Talking

    Hi, Steve

    Seems impossible to write FF ( or erase ) to the EEPROM ... I had tried this way too ... memory window just can show his red face !!! no more.

    I think, I have to wait for the 7.02 Release ...

    Have a nice day

    Alain

  8. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,611


    Did you find this post helpful? Yes | No

    Smile

    Hi, Everybody

    Here is the answer from Microchip :


    Comments:
    You are correct, regarding SSR19753, even though the PIC16F84A is not mentioned. I have informed the development systems group about this.

    The enhancement to erase EEPROM is planned for MPLAB IDE v7.20.

    Currently:
    Issuing an Erase when the device has been code protected will clear the entire device of data. A Blank Check will state the device is blank
    Programming the entire device with new data will change all memory areas. If for example this data were the reset values, a Blank Check after programming would reflect the device is blank.

    So must we do ...


    Good quiet night to you, folks ...

    Alain

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 15:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 04:17
  3. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 03:46
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 07:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20:59

Members who have read this thread : 1

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