| ??? 12/08/03 12:29 Read: times |
#60139 - RE: reset mcs51 by software Responding to: ???'s previous message |
Well, jump to location 0 or whatever the power_on routine is is good enough, but one thing is that you have to initialise EVERY SFR in the initialisation routine. Do not rely on default values especialy if you intend to do a soft reset.
One problem is that of pending interrupts, its a good idea to call a reti instruction a couple of time to get rid of them. So it might go: _00: jmp power_on ; any reti, label it to something intr_retn: reti ; spare location power_on: mov ie, #0 ; most important, disable all involuntary ; activities of the controller acall intr_retn acall intr_retn ; this will clear any pending ints ; go about your regular initialisation Any comments? Girish |
| Topic | Author | Date |
| reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
| RE: reset mcs51 by software | 01/01/70 00:00 | |
RE: reset mcs51 by software | 01/01/70 00:00 |



