Electronics4you
Member
Some PIC-help
I normally use MPLAB tp program my PIC's, but then I saw this code, written in some program I don't know. What is it and is it possible to get a compiler between it and the MPLAB?
loop: high 0 ' turn on Q1
pause delay ' wait 25 ms
low 0 ' turn off Q1
high 1 ' turn on Q2
pause delay ' wait 25 ms
low 1 ' turn off Q2
high 2 ' turn on Q3
pause delay ' wait 25 ms
low 2 ' turn off Q3
high 3 ' turn on Q4
pause delay ' wait 25 ms
low 3 ' turn off Q4
goto loop ' forever
__________________________________
Life is good...
I normally use MPLAB tp program my PIC's, but then I saw this code, written in some program I don't know. What is it and is it possible to get a compiler between it and the MPLAB?
loop: high 0 ' turn on Q1
pause delay ' wait 25 ms
low 0 ' turn off Q1
high 1 ' turn on Q2
pause delay ' wait 25 ms
low 1 ' turn off Q2
high 2 ' turn on Q3
pause delay ' wait 25 ms
low 2 ' turn off Q3
high 3 ' turn on Q4
pause delay ' wait 25 ms
low 3 ' turn off Q4
goto loop ' forever
__________________________________
Life is good...