Gaston Dezau
New Member
Hi,
My program works on Similation mode but it is not work correctly on Programmation mode.
When I tranfer the program to my PICAXE14M2, some lines of my program are not executed.
The problem carries when I insert a variable into the program
I installed PICASE SVM for real similation.
On this soft, the problem is same.
I use Programming Editor 5.5 version.
Other problem: some instructions of the editor(#picaxeM14, reset, setfreq ...) are not recognized by VSM.
Somebody can help me
My program:
-
My program works on Similation mode but it is not work correctly on Programmation mode.
When I tranfer the program to my PICAXE14M2, some lines of my program are not executed.
The problem carries when I insert a variable into the program
I installed PICASE SVM for real similation.
On this soft, the problem is same.
I use Programming Editor 5.5 version.
Other problem: some instructions of the editor(#picaxeM14, reset, setfreq ...) are not recognized by VSM.
Somebody can help me
My program:
-
Code:
;#picaxe14m2
;setfreq m16
setint %00000001,%00000011
;let b0=10
mainprog:
let w1=0
low B.0
low B.1
low B.2
low B.3
if pinC.1=1 then goto mainlt
if pinC.2=1 then goto lowlt
if pinC.3=1 then goto highlt
goto mainprog
mainlt:
high B.0
high B.1
low B.2
low B.3
pause 8000
low B.1
Do
w1=w1+1
loop while pinC.2 =0 and pinC.3=0 and w1 <600
pause 5000
goto mainprog
lowlt:
high B.0
low B.1
high B.2
low B.3
pause 8000
low B.2
Do
w1=w1+1
loop while pinC.1 =0 ;and b0 <20
pause 7000
goto mainprog
highlt:
high B.0
low B.1
low B.2
high B.3
pause 8000
low B.3
Do
w1=w1+1
loop while pinC.1 =0 ;and b0 <20
pause 7000
goto mainprog
interrupt:
high B.0
low B.1
low B.2
low B.3
if pinC.1 = 1 then interrupt
pause 4000
setint %00000001,%00000011 ;
goto mainprog
Last edited by a moderator: