Greetings,
I am a newbie and started to learn 89s8253 micro processor. So far i have written c code for Modbus Slave. I am storing the device id in idata variable but the value is lost on power off.
Please guide me how to store the value on on-chip memory so that it is retained even on power off.
You forgot to give a complete chip description - that would include manufacturer and complete set of characters in the name.
But if we assume it's an Atmel AT89S8253, then it's time to start looking at application notes how to make use of the EEPROM available in the microcontroller. It's specifically there to allow non-volatile storage of configuration or state information.
Thanks for the advice. Yes its Atmel 89S8253. I will try searching over the internet.
I will try searching over the internet. why? use the datasheet, it's there