Flash Memory and data EEPROM

Thread Starter

RG23

Joined Dec 6, 2010
304
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?
 

t06afre

Joined May 11, 2009
5,934
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
 

Thread Starter

RG23

Joined Dec 6, 2010
304
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
 

Thread Starter

RG23

Joined Dec 6, 2010
304
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??????​
 
Top