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

Problem with 12F675

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







Problem with 12F675
PostPosted: Thu Jun 26, 2008 5:00 am     Reply with quote

Hi

I am having a power-on problem with a project I am doing using a PIC 12F675. The program is fairly simple - it just flashes an LED.

When I power-up (apply +5v) to the PIC, sometimes it works, sometimes not. I have tried all sorts of things to fix this but I am stuck - I havent seen this with another pic device and my hardware is ok.

The configuration fuses I have are

Internal RC no clk
WDT OFF
Power-up timer OFF (tried with ON and didnt work at all)
MCR Internal
BOD OFF
Code protect OFF
EE2 protect off.

I think it must be a reset issue but I dont know how to fix it. Any help would be great

TIA Stew
Guest








flakey 12F675
PostPosted: Thu Jun 26, 2008 5:25 am     Reply with quote

This is what I use for my 12F683 projects...

#include <12f683.h>
#fuses INTRC_IO,NOWDT,NOPUT,NOPROTECT,NOMCLR

...perhaps you need to add the NOMLCR option ?

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 26, 2008 10:53 am     Reply with quote

Always post your compiler version. Some early versions of the compiler
have bugs in the init code for the comparator and/or ADC. If you post
your version, I can check if your version is affected.
andervsq



Joined: 17 Sep 2008
Posts: 1

View user's profile Send private message

PostPosted: Wed Sep 17, 2008 9:26 pm     Reply with quote

Hi,

I'm having the same problem too. My CCS C is:
IDE version 3.36
PCB, PCM e PCW version 3.168

Is possible to write an ASM code to solve it?

Can you help me about it?

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 17, 2008 9:32 pm     Reply with quote

Post your program that flashes an LED.

The program must be complete. It must have the #include, #fuses,
and #use delay statements, and a main(). It must compile with no errors.
drdelphi



Joined: 22 Apr 2007
Posts: 22
Location: Romania

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Sep 17, 2008 11:43 pm     Reply with quote

you can try to enable both PUT (power up timer) and BOR (brown out reset).
putting a 100nF decoupling capacitor between VDD and VSS also might help.

good luck
kjrudko



Joined: 10 Feb 2009
Posts: 1

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

PostPosted: Wed Feb 25, 2009 2:36 pm     Reply with quote

The 12F675 and 12F629 are one of the PICs that has a reset latching problem. The power supply must be very clean for it to run right. If you use a 5V regulator, the problem usually goes away, but if you are hooking up 5V directly, then transient voltages on the ms scale can cause the chip to lock up. The best fix is to use a decoupling capacitor with a voltage regulator or a small value resistor in series with the power supply.
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