Hi all.
I am trying to write a piece of code that will keep the output high during a loop.
Here is my code.
When I run this in the simulation, I can see b.3 goes low when it hits the end of the loop. I checked the manual, but the example code is meant to turn the output(L.E.D) on and then off.
Can someone point me in the direction I need to go?
I am trying to write a piece of code that will keep the output high during a loop.
Here is my code.
Code:
do while pinb.6 = 1
high b.3
sound b.0, (118, 50)
pause 50
sound b.0, (120, 50)
pause 50 ; Pause for 0.5ms
high b.3
loop
Can someone point me in the direction I need to go?
Last edited: