BobDevries
 Senior Member
 Joined: 08/06/2011 Location: AustraliaPosts: 266 |
| Posted: 09:25pm 28 Jun 2011 |
|
|
|
try this:
10 setpin 10,8: rem set pin 10 for digital output
20 do
30 pin(10)= 1:rem set pin 10 to logic high
30 pause 500: rem pause for 500 mSec
40 pin(10) = 0: rem set pin 10 to logic low
50 pause 500
60 loop
70 end
In a real life situation you can use the TIMER to see how much time has elapsed, and then you can do other code while waiting for it to get to the value you need. Remember, the TIMER counts UP in mSec. You can set it to 0, and then check periodically to see if it has the value you need.
Hope that helps,
Regards,
Bob Devries Dalby, QLD, Australia |