Nintendo 1504166 - Game Boy Advance SP Edition Console Programming Manual page 121

Programming manual
Table of Contents

Advertisement

AGB Programming Manual
Display Synchronization DMA
This function is used to transfer frame data from peripheral equipment, such as a
camera, to a frame buffer in BG mode 3. Since BG mode 3 has only one frame buffer,
this function is designed so that the next frame data transfer will not overwrite the
current screen data that is displayed.
When transferring one (1) frame of data composed of 240 x 160 pixels with 32,768
colors (16-bit/pixel), use the following settings:
§
Word count register
-Word count
§
DMA control register
-DMA repeat
You can enable this DMA anytime. Set the DMA enable flag to 1 after making the
above settings. If the DMA enable flag is 1 when the V count value is 162, DMA
transfers will be executed in the next frame. Synchronizing with the horizontal line,
DMA, which transfers the "word count" data per horizontal line, will be executed 160
times, from line 2 to line 161.
Data is always DMA transferred to the frame buffer address located 2 horizontal lines
before the line being drawn, so currently displayed graphics will never be affected by
transferred data. When the V count value becomes 162, the DMA enable flag is reset
to 0 automatically and the DMA stops.
If the DMA enable flag is cleared manually, there is a possibility of a malfunction.
Always wait until the DMA enable flag is reset to 0.
Although the DMA repeat flag is ON, this DMA will be disabled after the transfer of 1
frame's worth of data. Therefore, it is necessary to re-enable the DMA enable flag for
every frame to be transferred.
©1999 - 2001 Nintendo of America Inc.
:The number of transfers per horizontal line
(For 32-bit DMA transfer, set to 78h).
:1
121
DMA Transfer
D.C.N. AGB-06-0001-002B4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Agb series

Table of Contents