# disable write protection in eeprom

I'm working on pic24fj128ga202 microcontroller. My pic is interfaced with eeprom via I2C. I can't write and read on eeprom(BR24G256), then I read the datasheet of eeprom and came to know that there is a write protection for eeprom. I googled it for pic24f, i can't get any solution. So i searched for other pic series i got some suggestions related to code. The code i got is

#pragma config WRTD = OFF    //Disable EEPROM write protection


I refer the my pic24f datasheet, i can't see WRTD. Other than this suggestion will work it in MPLAB seetings?

My IDE is MPLABv8.92 and using PICkit3 programmer.

Thanks...

• Why would you use a PIC-internal solution for an external EEPROM? – Ignacio Vazquez-Abrams Oct 25 '15 at 9:24