deniah
Member level 4
- Joined
- Nov 28, 2005
- Messages
- 74
- Helped
- 6
- Reputation
- 12
- Reaction score
- 5
- Trophy points
- 1,288
- Location
- Montenegro
- Activity points
- 1,777
12f629 simple
Hello
I need som help with this program.
It should work like this: when power on, GPIO.2 is high. When 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.
I'm using Microcode studio with PicBasic Pro compiler
Here is the code
Hello
I need som help with this program.
It should work like this: when power on, GPIO.2 is high. When 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.
I'm using Microcode studio with PicBasic Pro compiler
Here is the code
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