Stamper321
New member
Hello,
I would appreciate some advice on the possibility of using the inbuilt SD card reader functions and Audio functions,
in ways that avoids seemingly random interrupt requests.
I have a project in creation ( started a very long time ago!) for the Teensy 4.1.
The game is a recreation of the Williams classic arcade game 'Robotron 2084'.
And its fully working, with steady 320 x 240 8 bit display, SNES controller, original sound effects,
authentic game play and realistic attract screens. Built around a game engine of sorts.
My problem is the tiny 'flecks' of disruption of the display, caused by either the SD card reader function or Audio function,
requesting interrupts in between interrupt driven pixel lines and causing an unwanted over run.
It's not a massive glitch, and at this stage of this project, more of an annoyance.
My question is, can the SD card and Audio functions be instructed to have their buffers refreshed at a predetermined time,
with predetermined buffer sizes set to last until the next 60th of a second , being only updated within each
vertical blanking area of my project.
I intend posting the code on Git Hub before long, with or without the 'fix'.
I would appreciate some advice on the possibility of using the inbuilt SD card reader functions and Audio functions,
in ways that avoids seemingly random interrupt requests.
I have a project in creation ( started a very long time ago!) for the Teensy 4.1.
The game is a recreation of the Williams classic arcade game 'Robotron 2084'.
And its fully working, with steady 320 x 240 8 bit display, SNES controller, original sound effects,
authentic game play and realistic attract screens. Built around a game engine of sorts.
My problem is the tiny 'flecks' of disruption of the display, caused by either the SD card reader function or Audio function,
requesting interrupts in between interrupt driven pixel lines and causing an unwanted over run.
It's not a massive glitch, and at this stage of this project, more of an annoyance.
My question is, can the SD card and Audio functions be instructed to have their buffers refreshed at a predetermined time,
with predetermined buffer sizes set to last until the next 60th of a second , being only updated within each
vertical blanking area of my project.
I intend posting the code on Git Hub before long, with or without the 'fix'.