Volhout Guru
 Joined: 05/03/2018 Location: NetherlandsPosts: 4722 |
Posted: 06:49pm 04 Feb 2025 |
|
|
|
Peter,
It is actually quite smart what they do. Easy to change resolution, timing, etc.. But it requires the ARM to support VGA heavily. The VGA data is coming from the DMA, but every line requires 2x support from the ARM: number of pixels, and timing of HSYNC. the use of OUT PC,5 gives the possibility to jump everywhere in the program. An they use the dark_loop: for all timing loops.
I also got what you are trying to do. Assemble the VGA and I2C in the MMBasic assembler, and write the binary blob into PIO memory. Smart...
Good luck, I hope it works.
Volhout
P.S. the OUT PC,5 does not assemble correct..? I have used PC also in the quadrature decoder, but as an offset in a JMP. Apparently that worked. |