Simple program for 12F629
Hello
I need som help with this program.
It should work like this: when power on, GPIO.2 is high. When I apply HI on GPIO.0, after 3 sec GPIO.2 should be low. Config is mclr=off, pwrt=on, wdte=on,boren=on, int OSC I/O.
Here is the code
CMCON=7
ul var GPIO.0 'Define GPIO.0 pin as ul
izl VAR GPIO.2 'Define GPIO.2 pin as izl
High izl
Input ul
loop:
if ul=1 then
pause 3000
low izl
end if
goto loop
Ladies and Gentlemen ... please
Hi,
First of all let's leave guns and knives outside ...
Won't you think a little ( real ! ) SCHEME would be compulsory, here ???
just to verify how and what to inputs and outputs are linked ...
"my two cents"
Alain