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

Please help for initial reset problem

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







Please help for initial reset problem
PostPosted: Sat Apr 08, 2006 11:46 am     Reply with quote

Dear all,
Have somebody ever encountered intial reset problem for pic microcontroller.
It happen 2 or 3 times for the first few seconds when I power on the pic. I do have 0.1 uf capacitor for Vcc to ground , 0.1uF and 220 UF for Voltage regulator. I have MCLR pin pull up to Vcc. Could somebody help me out how many possibilities that will cause the initial reset problem.

I appreciate all helps sir.

Andy O.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Apr 08, 2006 1:00 pm     Reply with quote

You didn't really tell us what your problem is. I assume that it must
be that the PIC resets a few times after you first turn the power on.

Try these things:

1. Disable the Watchdog Timer.

2. If your PIC supports Low Voltage Programming mode, disable it.

3. Enable Brownout reset.

4. Enable the Power-up timer.

5. Use the correct Oscillator fuse setting for your crystal frequency.

Example:

For a 20 MHz crystal:

Code:
#include <16F877.H>
#fuses  HS, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=20000000)



In hardware:

1. Check your power supply. Make sure it puts out the proper voltage
quickly, and does not go down to some lower voltage for a while.

2. Check your crystal oscillator circuit. Use the correct value of
capacitors for your crystal, according to the PIC data sheet.

3. Make sure you have a pull-up resistor on the MCLR pin. If you have
the Microchip ICD2, use a 10K pullup. For CCS ICD, use 47K.

4. Make sure all power and ground pins on your PIC are properly
connected.

5. Check the external circuits that are connected to your PIC, such as
LEDs, or transistors, or motors, etc. Make sure you are not trying
to use more current from any PIC pin than the rated amount,
according to the data sheet. (Usually 20 or 25 ma).
andy_o
Guest







big thanks
PostPosted: Sun Apr 09, 2006 1:02 pm     Reply with quote

Thank you sirs,
I will try all of your suggestions. I love this forum now.

I appreciate any helps sirs

Andy
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