I cannot run my simulation ( AMD Athlon64 X2 DualCore 4200+, 2 GB RAM ?!) ...
It's this code OK ? Thanks !
Code:
hyst            CON  2
check:
if mode >= 1 then
    if w1 < calibra-hyst     then pwm mosfet, 255, 300
    if w1 > calibra+hyst     then low mosfet
    if w1 = calibra+hyst-w1 then pwm mosfet,(w1*255)/(2*hyst), 300
endif
return