Copy Link
Add to Bookmark
Report

GP32 and HBLANK Emulation

sang's profile picture
Published in 
GP32
 · 8 months ago

Following text describes basic principles for CPU friendly HBLANK emulation. Basically HBLANK allows you to do raster effects on each raster line without busy-wait polling/waiting for certain raster line position. There are actually two different approaches how to achieve one raster line granularity on GP32 LCD manipulation. Either you use Timer Interrupts or Timer Synchronized DMA. The DMA is very clever and elegant as a solution and works on background without any "maintenance". Interrupts allow more flexibility but on the other hand have larger CPU cycle penalty due interrupt latencies and mandatory interrupt handling code.

Remember the number 1784! It's a magic number for HBLANK raster effects.

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT