We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Does anyone now if it's necessary to keep the EEE flag set to 1 of the EECON register (register to manage the internal EEPROM), when you launch the programming sequence on the EEPL bits ?
Oops! I forgot, does someone already use the C language to adress the EEPROM in this microcontroller. Or does keil do everything that is needed ? If yes, how ?
The EEE bit within the EECON is used to select which bank of memory the MOVX instruction is mapped to access. EEE = 1 -> Mapped to EEPROM, EEE = 0 -> Mapped to XRAM For writing to the internal EEPROM, EEE must be set, but dont forget that access to XRAM is not available. Use DATA and IDATA space to store var's that are used when EEE is set. hope this helps Rob
Thanks, to clear me that point !
If you are using a recent version of the Keil PK51, you may also take a look to: Keil\C51\EXAMPLES\FarMemory\E2PROM on 80C51RD2. This is a C example that uses far memory to address E2PROM.
Could you give me a correct link on your web site. I can't find your files of the examples program...
That was not a link. It was the path to the example program when you have installed the software. Jon
Ooops! Thx