hi
i am using pic16f877a @ 20Mhz with lcd io4 configuration.
i tried following lines which is hanged at pwmout command:
#define pwm_out1 portc.0 'software pwmout pin 15
dir pwm_out1 Out
main:
M1Fw
goto main
sub M1Fw 'pin15
do
cls
if testvalue <= 255 then testvalue += 1 else testvalue= 0
pwmout 1, testvalue, 100
print testvalue
wait 1 ms
loop
end sub
initialising works flawless but it look like the line "print testvalue" never reached.
I don't know what i am missing...
Last edit: fisyon 2016-06-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi
i am using pic16f877a @ 20Mhz with lcd io4 configuration.
i tried following lines which is hanged at pwmout command:
initialising works flawless but it look like the line "print testvalue" never reached.
I don't know what i am missing...
Last edit: fisyon 2016-06-12
Take a look at Help, else can't be on the same line of an If..Then.
wow!
how silly i am, thank you, it works