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

PIC reset

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



Joined: 15 Jan 2009
Posts: 60

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

PIC reset
PostPosted: Mon Mar 08, 2010 12:50 am     Reply with quote

Hai,

I am using PIC16f877a. It is often resetting. I am not using WDT. I checked that, it is not enabled. But the problem continues....

I am using ADC using LM324 IC.

My code is like this,
Code:

void main()
{
printf("welcome");

while(1)
  {
   printf(adc Value);
  }
}

output:
wel wel wel.... if I press the IC then, the output is welcome welcome....sometimes the adc value.....

What is the problem sir?
_________________
embedding innovation in engineers
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 12:59 am     Reply with quote

Read this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=39782&start=1
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 10:54 am     Reply with quote

Is your chip in low-voltage programming mode, and what have you done with PortB.3? I'd pull the reset high with a resistor too, just to be on the safe side.
evaradharaj



Joined: 15 Jan 2009
Posts: 60

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

reset
PostPosted: Mon Mar 08, 2010 11:19 pm     Reply with quote

Thanks for your replies......

Yes, I am using Low voltage programming mode. That pin is left free.

I am having +5 v supply which is having 7805 and 1000uf from input and 22uf in the output sides.

Is that any problem....

The pullup resistor is connected to the MCLR pin.

I am using max232 board also.

What is the best way to save my pic?
_________________
embedding innovation in engineers
Wayne_



Joined: 10 Oct 2007
Posts: 681

View user's profile Send private message

PostPosted: Tue Mar 09, 2010 2:59 am     Reply with quote

I would go with hardware fault, dry joint, bad connection etc.

BUT what is this line suppose to be ? printf(adc Value); ?

Where is adc and Value defined and what are they set to ?
What are your fuse settings ?

Does it work if you just touch the pins of the device or do you have to put pressure on to it to push it down ?
Are you using a bread board, surface mount etc ?
evaradharaj



Joined: 15 Jan 2009
Posts: 60

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

soldering
PostPosted: Tue Mar 09, 2010 4:45 am     Reply with quote

I am using dot board soldering.. my fuse settings are NOWDT,XT,NOPUT,NOBROWNOUT,LVP

when i press on the pic microcontroller near top and bottom (at a time ) it is working(the printf statement on the terminal is coming).. other times its not working... many times its coming as "welcome" only
_________________
embedding innovation in engineers
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Tue Mar 09, 2010 7:29 am     Reply with quote

"Yes, I am using Low voltage programming mode. That pin [RB3] is left free."

Sigh.

: RB3 should not be allowed to float if LVP
is enabled. An external pull-down device
should be used to default the device to
normal operating mode. If RB3 floats
high, the PIC16F87XA device will enter
Programming mode.
evaradharaj



Joined: 15 Jan 2009
Posts: 60

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

RB3
PostPosted: Tue Mar 09, 2010 10:11 pm     Reply with quote

I have used more than 100 boards with RB3 left free...

But they have worked perfectly for some days...

After that they will not work.....

Is RB3 free the problem?
_________________
embedding innovation in engineers
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Wed Mar 10, 2010 3:13 pm     Reply with quote

So, you tried tying pin RB.3 low, and what happened?
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