HEF EE OK with WRITE ?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2003
    Posts
    98

    Default HEF EE OK with WRITE ?

    Can I use the PBP3 EE commands READ and WRITE on chips with HEF? I.e. are there any compatibility issues or DEFINEs needed ?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: HEF EE OK with WRITE ?

    Disclaimer: Have never actually used HEF so this is not based on experience but rather on how I believe/think it works.

    Since HEF is part of FLASH I'd say the command(s) to use is ERASECODE/WRITECODE/READCODE. And since FLASH memory is sectioned into blocks or rows you need to take that into account if/when you're trying to overwrite/change something you've already written to HEF. In that situation you need to read out everything within that block/row, save it to a buffer (ie RAM), change the value in question, erase the block in HEF and then finally write the content of the buffer back to HEF. For the 16F15376 that you mention in the other thread each row is 32 words.

    See section 13 of the 16F15376 datasheet for more details.

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: HEF EE OK with WRITE ?

    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default Re: HEF EE OK with WRITE ?

    Hi Henrik
    so I am aware of WRITECODE (have never used it) but the endurance on the original part 16F15376 will not suffice

    on the 16F1937 which has DataEE HEF and will drop on the same footprint my question is whether PBP WRITE will just work with the same as with standard endurance

    16F19176 has DataEE but is not HEF and interestingly on the Microchip selector for the 1937 they say "Consider 16F19176" I guess because it is newer and more capable.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: HEF EE OK with WRITE ?

    The datasheet for the 16F19176 seems to indicate that the device has actual EEPROM on board and does not mention HEF (High Endurance Flash) so I would expect DATA/READ/WRITE to work with that device.

    The 16F1937 looks to be the same, ie having actual EEPROM as opposed to the data memory being a dedicated/special/optimized part of program flash (HEF) so, with that device, I would also expect DATA/READ/WRITE to work.

    The 16F15376 however does not have EEPROM so I would not expect DATA/READ/WRITE to work.

    Do note that I have not verified this, it's simply based on my interpretation of the datasheets.

    /Henrik.

Similar Threads

  1. Working with HEF
    By mpgmike in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 22nd August 2017, 18:16
  2. HEF (High Endurance Flash) What to do?
    By mehmetOzdemir in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th June 2016, 07:25
  3. SD Multiple Write?
    By jimbostlawrence in forum General
    Replies: 1
    Last Post: - 21st October 2011, 18:45
  4. cannot write to PIC
    By RFEFX in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd September 2010, 06:56
  5. Using the Write Command
    By in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th April 2003, 03:09

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