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

Need help ! delay problems on a very simple program
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Aug 25, 2011 7:43 am     Reply with quote

How are you detecting this single 3.8ms low pulse? It is not something that will be easy to see by eye. Are you using a scope? If you are using a logic probe that is powered from the PIC supply, the probe may need more than 100us to initialize itself.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Ttelmah



Joined: 11 Mar 2010
Posts: 20159

View user's profile Send private message

PostPosted: Thu Aug 25, 2011 7:45 am     Reply with quote

jruibarroso wrote:
1) Is your clock running, are you sure it is 16MHz?. What is connected to the clock pins?. one XTAL 16.000.000Hz
2) What is connected to MCLR?. directly to VSS
3) What is the power supply?. How is it decoupled?. normal power supply with a 78L05 regulator
4) How are you detecting the high/low?. What is connected to B6?. i'm using IKALOGIC hard/software http://ikalogic.com/scanalogic2/

Please note if I change from delay_us(some value) to delay_ms(some value) it works 100% !!!! my problem is when i change to us

my hardware is ok because it works ok when delays are in ms


Are you sure you would see the delays when they are in uSec?.
The line will only be low for 3.8mSec. You'd need a scope setup to trigger in one shot mode, on the first falling edge, to detect this. Otherwise it'll just probably not be visible. Low for just 1/260th second.

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
Goto page Previous  1, 2
Page 2 of 2

 
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