CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Is there a Reset instruction?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

Is there a Reset instruction?
PostPosted: Tue Jun 15, 2010 8:22 pm     Reply with quote

I'm using PCH 3.249 with the PIC 18F4620 and I would like to be able to use an instruction that would cause a reset just like hardware /MCLR reset. Is there such a thing?

Thanks in advance, I've learned a lot from this forum.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 15, 2010 8:33 pm     Reply with quote

Quote:

I would like to be able to use an instruction that would cause a reset just
like hardware /MCLR reset. Is there such a thing?

Here's how to answer this question:

Search for a Reset instruction in this section of the PIC data sheet:
Quote:
24.0 INSTRUCTION SET SUMMARY

http://ww1.microchip.com/downloads/en/DeviceDoc/39626e.pdf

Search for a "reset" function in the CCS manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 15, 2010 8:39 pm     Reply with quote

Thanks for the PDFs. I'll check 'em out.
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 15, 2010 9:17 pm     Reply with quote

I had to download a new acrobat reader, then quickly found the "reset_cpu()" instruction in the ccs manual. It works like a charm. Thanks PCM programmer!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group