repeating loop problem

picsammy

New Member
Hi all,
When I see some of the coding and projects by forum members, I have to say I'm a novice to programming.
For my project, I'm using an 08M2 . I haven't put anything together on a board just yet.
What I'm trying to do is this. Using a push-button switch connected between +5v and C.3
With one push of the button, I want to generate a tune (tune 4,15,($12)) outputting on C.4 followed by a short pulse to turn on
one of those 20-seconds voice modules which I will have connected
between 0v and C.0 . After 23 seconds or so, while the voice from the module plays, and a pause, I want the function to return to start,
and wait until the button is pressed once again, before continuing the loop.
A simulation test shows my coding attempts so far, have not avoided non-stop looping after the first press of the button switch.
Any help with this much appreciated.
 
Top