IRQ stuff and things (macptr)....
Posted: Mon Aug 07, 2023 8:12 am
I'm trying to understand what is going on, yeah I could study the rom code...but maybe someone can help.
The example I uploaded, sets an IRQ to load more sound data for the AFLOW interupt using the macptr....
this works while I just infinate loop the "main" code, but what is going on when returning to basic?
in theory, it should load more audio data as needed from IRQ.
is macptr not usable in an interupt?
upload contains "WORK.PRG", "NOWORK.PRG", and sdcard....
*warning - NOWORK.PRG causes static noise!!! - headphone warning!!
this is in Prog8...
working:
Not working:
Thanks
The example I uploaded, sets an IRQ to load more sound data for the AFLOW interupt using the macptr....
this works while I just infinate loop the "main" code, but what is going on when returning to basic?
in theory, it should load more audio data as needed from IRQ.
is macptr not usable in an interupt?
upload contains "WORK.PRG", "NOWORK.PRG", and sdcard....
*warning - NOWORK.PRG causes static noise!!! - headphone warning!!
this is in Prog8...
working:
Code: Select all
sub start() {
stream_audio()
repeat {}
}
Code: Select all
sub start() {
stream_audio()
; repeat {}
}
Thanks