Originally Posted by
andybarrett1
Hi thank you for reading this:-
I am attempting to do simple litle program using a 627 / 628 that just loops a sequence of morse Led port on and off ... to Say "Don't Panic"
ll works ok as it should but for one flash of LED 2nd or 3rd charactor (dots) in the D'
See attached code.... I have attempted to re write the code... Use another chip... I have used another compiler but the thing will not flash that one last dot for me... I just get Dash, dot... D is Dash,dot,dot !!!!
What am I doing wrong.... Have marked up the line :--
XXXX dot !!!
I have stuggled with this all afternoon....... Help !!!
BR
Andy
There is nothing wrong with your code.
Except
Code:
morse:pause 3500
High led
pause 5000 'Led on for 5 seconds
D: high led 'dash
pause 1500 low led
pause 500
high LED 'XXXX dot !!!
pause 500
low led
pause 500
high LED 'XXXX dot !!!
pause 500
low led
pause 1500 'gap
The LED is high for five seconds then stays high for another 1.5 seconds on the "D dash" therefore you will not see any change and this could be the flash you are missing. To check add another "low led pause 500" after the "pause 5000".
Code:
morse:pause 3500
High led
pause 5000 'Led on for 5 seconds
low led
pause 500
D: high led 'dash
pause 1500
low led
pause 500
high LED 'XXXX dot !!!
pause 500
low led
pause 500
high LED 'XXXX dot !!!
pause 500
low led
pause 1500 'gap
Bookmarks