Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Apparently, there is a bug in Proteus or MikroC EEPROM library. There are several issues similar to you own when using the EEPROM library in Proteus, but perform as expected when implemented in real hardware, posted in several forums. However, custom routines written without the MikroC EEPROM library, seem to perform without error in Proteus, very interesting.
I managed to have the simulation run successfully with your code by change the "Data EEPROM write delay" under Advanced Properties to any value in nanoseconds, however any value in milliseconds or microseconds produces similar errors.
I have attached the Proteus file so that you can see the property setting.
if you double click the component in proteus you can open the edit component dialog, you will see an advance properties drop down menu where you can select the "data EEPROM write delay" and change the value or check the edit properties as text checkbox and change the value of "EPR_WRITEDATA_DELAY" property
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.