Hello,
Here is the code I want to make it working :
define OSC 3
trisio = %001
firstline:
if (GPIO.0 = 0) then
high GPIO.2
else
low GPIO.2
endif
goto firstline
end
It's a very simple program that works with 16f84a (if I change GPIO for PORTx) but do not works with a 12f629...
In fact my real program is more complex than this one but the pattern is the same. A switch control an action on 2 output pins instead of only one for this program.
That program is suposed to turn on a LED(GP2) with a ground applied to port GP0 and turn off the LED(GP2) if a 5V is applied on the GP0.
Let me know is someone find some problem?? I've already try many way...but the program seems to be very simple...and probably there are something that I've forget to do.
thanks
Martin
Bookmarks