Its very easy to reset using hardware by pin 9, but how to reset using software program?? Please help me...please give the example assembly code to reset
- Ljmp 0000h only makes program jump to first address but there's no SFRs affected like the real Power On Reset.
- Register 0 is not SFR, but part of RAM. there's no default value of these. After power on reset, that's values are unknown.
Its very easy to reset using hardware by pin 9, but how to reset using software program?? Please help me...please give the example assembly code to reset
In 8051 there is no software RESET.
LJMP #0 sets only the PC, nothing else ..
If you want to zero all registers, you have to do it by zeroing them one-by-one.
:wink:
IanP