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.
Some microcontrollers have a RESET instruction in assembly (I think PIC does). For most other microcontrollers all you can do is to activate the watchdog, disable interrupts and enter an infinite loop waiting for the watchdog to timeout and reset the controller.
there are RESET instruction available in many microcontrollers.u can use that. for ex.. PIC18 series has RESET instruction, using that resets program counter and also some registers .but in PIC16 series there is no Software RESET instruction,where u can use GOTO 0x0000.it will force the program counter to start from Initial location but it doesn't reset any Registers or variables,where u can Manually clear all the register if your application need so
In PICmicro use GOTO 0000 to reset your process. Using the TO and PD bits you can initialise or leave the registers as is.
If the PICmicro has come out of a WD timeout, the TO bit will have to be checked and if PICmicro has come out from a power up situation, the PD TO bit will have to be checked and decission taken.
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.