Jump to content
Sign in to follow this  
RSABear

18f4550 Reset/reboot

Recommended Posts

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

}

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×