|
Forum Index : Microcontroller and PC projects : CMM2: minor issue with play wav IRQ and workaround
| Author | Message | ||||
| epsilon Senior Member Joined: 30/07/2020 Location: BelgiumPosts: 255 |
Here's a minor issue I came across on CMM2: My program uses PLAY WAV with an interrupt routine that's called when the file finised playing, like this: PLAY WAV sound_curFile$, Sound_play_int When the program ends, the device is left in a somewhat confused state. E.g. when I launch xedit, I get this error: Error in line 877: Unknown command This is line 877: SETTICK CURSOR_BLINK_PERIOD%, blinkCursorInt, 1 To clear the condition, I just do this: PLAY WAV "" PLAY STOP i.e. the trick is to kick off a PLAY WAV _without_ an interrupt routine. After that, everything goes back to normal. Epsilon CMM2 projects |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |