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 CCS Technical Support

PIC16F628A keep reseting

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



Joined: 02 Nov 2006
Posts: 1

View user's profile Send private message

PIC16F628A keep reseting
PostPosted: Sun Nov 12, 2006 7:30 pm     Reply with quote

I'm a newbie and I'm running a project using PIC16F628A. Occasionally, my firmware will reset by itself. I have tried checking the hardware but there is no problem with the hardware at all. As far as I know, the only way to reset the firmware is by triggering the MCLR pin on the PIC but there is no connection to that pin. Can someone explain to me what I did wrong?
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Sun Nov 12, 2006 7:45 pm     Reply with quote

We'll need a bit more information to start working on your problem. Please post the version of your compiler and a small sample program that exhibits the problem and a description of your circuit. We'll need all of the included files as well like the fuses etc. Please use the "code" buttons as you reply. I have been working with the 628A recently, and another of the regulars, PCM Programmer, posts suggestions and great solutions to problems with the 628A as well.

Have you checked to see if you are enabling the WDT? If so, are you clearing it before it "expires" in your program? Also, if you have the Brown out Reset enabled and your power supply falls below the threshold, your processor will reset.

Also, you say that there is no connection to the MCLR pin. Do you have the NOMCLR fuse set?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Nov 12, 2006 9:15 pm     Reply with quote

See this thread for links on the "random resets" problem:
http://www.ccsinfo.com/forum/viewtopic.php?t=27638&start=4
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