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

POWER-UP PROBLEM

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







POWER-UP PROBLEM
PostPosted: Mon Jun 07, 2004 7:44 am     Reply with quote

hiiiii

I HAVE A MODERATE SIZE BOARD USING PIC16F877.
I USE A FEW DIFFERENT INTERRUPTS IN THE SOFTWARE.
(BUT, IT IS THE SAME IF I USE PROGRAMS WITHOUT INTERRUPTS)
I USE CCS COMPILER WITH THE VERSION
WHEN THE CIRCUIT IS POWERED-UP FOR THE FIRST TIME AFTER PIC IS PROGRAMMED, EVERY THING
IS OK. IF IT IS POWERED DOWN AND POWERED-UP AGAIN, IT IS NEVER WORKING ANYMORE.

WHAT MAY THE REASON BE ?

IF IT IS TURNED ON BY AC PLUG SWITCH, IT IS NOT WORKING
BUT, IF APPLIED DC POWER SOURCE BY A CONNECTOR DIRECTLY, IT IS ALMOST OK.

ADDITIONALLY, IF I PUT THE BOARD ON A CLEAR PAPER SHEET NORMALLY, I CAN NOT SEE ANY CHARACTER
ON LCD. (EXCEPT A DARKED FIRST LINE)
BUT IF I PUT THE BOARD WITH PIC16F877 VERTICALLY (!) , IT IS WORKING PROPERLY.

WHAT DO YOU THINK THE PROBLEM IS?
IS THAT MATTER JUST FOR PIC MICROCONTROLLERS?
WHAT SHOULD I DO?


THANKS...

hundil
hundil
Guest







power-up problem again
PostPosted: Mon Jun 07, 2004 7:56 am     Reply with quote

There is a 100n capacitor connected to the out pin of 7805 regulator, even
it (100n) is very near to VDD and VSS pins of PIC16F877.

HELP...........
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Mon Jun 07, 2004 8:32 am     Reply with quote

First, make sure you have MCLR tied to VCC through a resistor. Next, if you are not doing any in-circuit programming make sure you have NOLVP in your #fuses statement. This one bit me for a while until I learned about it.
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Mon Jun 07, 2004 8:42 am     Reply with quote

Try adding #zero_ram directive
Ttelmah
Guest







PostPosted: Mon Jun 07, 2004 8:52 am     Reply with quote

rnielsen wrote:
First, make sure you have MCLR tied to VCC through a resistor. Next, if you are not doing any in-circuit programming make sure you have NOLVP in your #fuses statement. This one bit me for a while until I learned about it.

Also make sure that both ground, and both power connections are made. The faults described are fairly typical on chips where only one has been used.
What input capacitor is used on the regulator?. The input capacitor is also vital for stability if there is any significant lead length from the input filter.
A single 0.1uF, is pretty minimal if the processor is doing much. Look at having a single cap as close to the regulator as possble, and another close to each logic device.

Best Wishes
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