Flash Memory and data EEPROM

Discussion in 'General Electronics Chat' started by RG23, Apr 26, 2011.

  1. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    What are the memory locations for flash and data EEPROM for pic16f887?

    how can the org directive help in pointing directly to these memory locations?
     
  2. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    Does anyone have an idea of how to write to the flash memory and then read fom it?

    Thanks
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    If you use assembler the data sheet will help you. If you use C refer to the user manual. The data sheet will also help you to understand better if you use C. The data sheet is your best friend then it comes to programming PICs
     
  4. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    I need to write the data to the flash memory by I2C communication and then read the same.
    If anyone has an idea, please let me know

    Thanks
     
  5. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    Flash program memory may only be written to if the
    destination address is in a segment of memory that is
    not write-protected, as defined in bits WRT<1:0> of the
    Configuration Word Register 2.

    The datasheet of PIC16f887 states as above.

    But how to access Configuration Word Register 2?????? ​
     
  6. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
Loading...