The Cyber-Spy.Com Usenet Archive Feeds Directly
From The Open And Publicly Available Newsgroup
This Group And Thousands Of Others Are Available
On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic,
Opinions Or Content Posted To This Or Any Other
Newsgroup. This Web Archive Of The Newsgroup And
Posts Are For Informational Purposes Only.
From: Mike Poulton
Subject: Re: Very frustrated with PicBasic -- Help!
Date: 16 Sep 2002 13:04:29 GMT
Organization: MTP Technologies
On 16 Sep 2002, Geo said:
>>If GPIO.4=1 Then start
> Could be hardware-related depending on what is connetcted to the input
> pin i.e value of pull-up resistor and capacitance of
> pcb/cable/debounce cap. There was a similar problem (but with
> assembler) posed in the PICLIST in the last few days and this was the
> answer. If you add a couple of seconds delay before reading the input
> pin, does it then get the right state? Giving the capacitance time to
> charge. You might try repeating the question in the PICLIST if this
> does not work. HTH
Note that this code goes through the input check every time it loops.
The pin was connected to +5V through a 1k resistor first, then I
connected it directly to see if that would make any dfference. I tried
writing the code to look for 0 state instead of 1, and connected it to
ground. No matter how I did it, the program looped continuously
Not only do I speak for my company, I AM my company!
Live free or die!
Go Back To The Cyber-Spy.Com
Usenet Web Archive Index Of
The sci.electronics.design Newsgroup