Rob,
Looks like you got it working.
One little thing though.
The Pause command is based upon the "DEFINE OSC" value to calculate the pause interval correctly.
It is a good practice to have your "DEFINE OSC" statement up top in the source code before you use any time sensitive commands such as "Pause x".
The way you have your program setup the following occurs, which I presume you have seen in practice on your physical system.
The LED on GP2(pin5) will stay LOW (OFF) while the voltage input on GP1(pin6) is above your reference voltage.
The LED GP2(pin5) will blink in 1sec intervals while the voltage input on GP1(pin6) is below your reference voltage.
This works fine on my simulator.
Good job!
It looks like you're ready for a "nap" now.![]()
Bookmarks