Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Aug 25, 2011 7:43 am
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
Posted: Thu Aug 25, 2011 7:45 am
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.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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