RSABear 0 Posted January 7, 2009 Report Share Posted January 7, 2009 I would like to software reset/reboot the 18F4550. Can someone point me in the right direction? For the 16F chips I used the following code: asm { clrwdt clrf _intcon clrf _status clrf _pclath clrf _pcl } Quote Link to post Share on other sites
Picxie 0 Posted January 7, 2009 Report Share Posted January 7, 2009 I would like to software reset/reboot the 18F4550. Can someone point me in the right direction? For the 16F chips I used the following code: asm { clrwdt clrf _intcon clrf _status clrf _pclath clrf _pcl } Pic18s have a reset instruction Quote Link to post Share on other sites
Pavel 0 Posted January 8, 2009 Report Share Posted January 8, 2009 BoostC system headers include the inline function reset. We recommend to use it to reset the device. For PIC18 this function is mapped to the reset instrustion that PIC18 supports (as Picxie mentioned earlier already). Regards, Pavel Quote Link to post Share on other sites
RSABear 0 Posted January 8, 2009 Author Report Share Posted January 8, 2009 (edited) Excellent! I somehow missed it in the header file.... Edited February 19, 2009 by RSABear Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.