Guys - I am new to this micro and this tool set, and I need some help. I need to set a flag and then perform a CPU software reset (due to another problem). But I need to have a byte that survives the software reset and does not get cleared. If I define an XDATA byte, the STARTUP code will (I think) zap it before I can see it.
How can I write an XDATA byte (or any other byte for that matter) that will survive a software reset (not a power down, just a reset)?
Can anyone help?
Thanks in advance!
Chris
You can have the startup file clear XDATA - just modify the amount of data that gets cleared. For example reserving the last 16 bytes for information that should survive a reboot (but obviously not a power loss)
(but obviously not a power loss)
Unless your XDATA is non-volatile (e.g., battery backed).