Read or write data on 16F877A's EEPROM memory

Discussion in 'Embedded Systems and Microcontrollers' started by Shyamal805, Aug 4, 2013.

  1. Shyamal805

    Thread Starter New Member

    Mar 20, 2012
    27
    0
    Hi,
    Which function is used to read or write data in EEPROM memory for pic16f877a?
     
  2. Eric007

    Senior Member

    Aug 5, 2011
    1,044
    33
    Please read the datasheet!

    If you don't understand anything read it again 10 times and it will become clearer...
     
    Last edited: Aug 4, 2013
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,605
    There is a section in the device data sheet detailing exactly how to do that, line by painful line in assembly.

    If you don't use assembly (and neither do I) then check your compiler's help files to see if they have (and most probably will) a library function that does this.

    At worst, they reference a function I had to stick in my code. Easy Peasy.
     
  4. ligo.george

    New Member

    Feb 2, 2013
    19
    2
  5. Shyamal805

    Thread Starter New Member

    Mar 20, 2012
    27
    0
  6. Shyamal805

    Thread Starter New Member

    Mar 20, 2012
    27
    0
    where is the link?
     
  7. Eric007

    Senior Member

    Aug 5, 2011
    1,044
    33
    Check the whole section 4 "Data EEPROM and Flash Program Memory". This is for PIC16F877 but it should be the same for PIC16F877a.

    what you mean where's the link? you can download the datasheet from google or Microchip website.
     
  8. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,605
    There are many many C compilers for the PIC.

    No one is going to guess which one you have... oh wait, someone did.

    WHICH ONE do you use?
     
Loading...