Hello all again, may I know what's the different for C series & F series? As far as I know C stand for CMOS & F stand for Flash.
I wish to know if the PIC basic compiler for 16C72 compatible to 16F72.
If I'm having a command for the following, what kind of output u can predict?
(FYI, 16F72 is a 28-pin, 3 TRIS PIC)
ref var porta.3
sig var portb.0
eng var portc.3
buz var portc.4
trisa=%001000
trisb=%00000001
trisc=%00000000
main: if sig=1 then buzz
if rev=1 then check
check: if sig=1 then engine
goto buzz
engine: high eng
pause 1000
low eng
goto main
buzz: high buz
pause 5000
low buz
goto main
URGENT, as I do not see my program to light up (eng) where there's both input (ref & sig) detected. The program only light up buz.
Thanks!
I wish to know if the PIC basic compiler for 16C72 compatible to 16F72.
If I'm having a command for the following, what kind of output u can predict?
(FYI, 16F72 is a 28-pin, 3 TRIS PIC)
ref var porta.3
sig var portb.0
eng var portc.3
buz var portc.4
trisa=%001000
trisb=%00000001
trisc=%00000000
main: if sig=1 then buzz
if rev=1 then check
check: if sig=1 then engine
goto buzz
engine: high eng
pause 1000
low eng
goto main
buzz: high buz
pause 5000
low buz
goto main
URGENT, as I do not see my program to light up (eng) where there's both input (ref & sig) detected. The program only light up buz.
Thanks!