Reading, writing, erasing flash (16F88)


Results 1 to 27 of 27

Threaded View

  1. #1
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263

    Question Reading, writing, erasing flash (16F88)

    I'm taking trepidant steps toward using superfluous flash memory for recording data by implementing ERASECODE, WRITECODE, and READCODE.

    I'm shuffling back and forth between the PBP manual and the 'F88 data sheet (sections 3.5-3.7) and I'm befuddled.


    1. When a block of 32 words is erased, what value is written to each word to represent erasure? $3FFF. $0000? Something else?

    2. Since (according to the data sheet) the write function writes a block of 4 words at a time, when the PBP command

    WRITECODE Address, Value

    is used, if Value is written into Address+0, what is written into addresses Address+1, Address+2, and Address+3?

    3. Is the "erase before write" mandatory or simply advisory, and, if truly required,

    4. How does the write function determine whether the address location has been erased?

    5. And what happens if WRITECODE is invoked without a prior erasure?


    What I'm trying to get a feel for, in advance, is:


    A. As needed, can I simply do a WRITECODE to Address and then, next time, do a WRITECODE to Address+1 or will I need to

    B. WRITECODE to Address, then, when needed, have to do an ERASECODE Address+1 and then WRITECODE Address+1? And

    C. Having written a few or several values, is there a value I can look for that shows where I stopped writing (hence question 1 above)?
    Last edited by RussMartin; - 23rd October 2008 at 02:00.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. Writing & Reading to iButton EEPROM
    By crhomberg in forum Code Examples
    Replies: 2
    Last Post: - 6th October 2008, 19:40
  2. Writing and reading to a 24LC1025
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th April 2007, 11:49
  3. reading, writing, and displaying from eeprom
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th January 2006, 22:05
  4. 16F88 reading Analog Input
    By thunderstrike44 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2004, 22:41
  5. Writing / Reading EEPROM 24LC256 Problem
    By schmoddel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th February 2004, 18:55

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