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

Start stability

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



Joined: 23 Aug 2005
Posts: 93

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

Start stability
PostPosted: Sat Jan 19, 2008 12:42 am     Reply with quote

Hi, Im wondering about how to get the most stable start for a PIC.
In one application a pic 12F635 must start very quickly, as soon as there are a VCC it must start the program. Im using the internal oscillator. The problem seems that at the very beginning there is some "scrambling" at the out ports, it seems to happend to about maybe 1mS. I suppose its natural, but whats the best way to avoid (minimize) it? is it better to use the out ports as drivers or to sink? Im also having a mos-fet at the pin out driving the load, would it be better with some sort of a fast transistor?
By attaching a cap about 1u to the out pin it got better.
The problem can also come from the 5V regulator, I do use a ultra fast one, but..
Anyone have some ideas?
Thanks/
Tagge
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 19, 2008 11:48 am     Reply with quote

Quote:

I'm using the internal oscillator.
The problem seems that at the very beginning there is some
"scrambling" at the out ports, it seems to happend to about maybe 1mS.
I'm also having a mos-fet at the pin driving the load.

By attaching a cap about 1u to the out pin it got better.

1. Post your #fuses statement.

2. Post your #use delay() statement.

3. Also, post the first part of your code in main(). I want to see how
soon you initialize the i/o pins. Do you have any delay statements
before you set the i/o pins to become output pins ? Do you call
any other routines that have delays in them, such as lcd_init() ?
(The i/o pins start as inputs, after power-on reset.)
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