LCD Dedicated Channel
5-30
The transfer runs, and an interruption is generated at the end of the frame.
Figure 5–11.LCD One Frame Mode Transfer Scheme
SDRAM
Video frame
0x0B 0000
0x0B 00DE
LCD
controller
lcd_top_frame1
DMA
lcd_bot_frame1
When an interrupt occurs, read the DMA_LCD_CTRL register to find the
source of the interrupt.
If DMA_LCD_CTRL(3) = 1, end frame 1 interrupt.
If end of frame is reached, the DMA restarts at the top of the frame. Reset
DMA_LCD_CTRL(3) and wait for another interrupt.
5.4.4.2
IMIF to
LCD, Two Frames
Figure 5–12 shows a transfer from two video frames located in IMIF to the LCD
controller. The size for the LCD display is 6 x 16 pixels with 16 bits per pixel.
So the length of one video frame is:
6 x 16 x 2 (in bytes) + 32 bytes for the palette = 224 bytes
If the video frame 1 starts at address 0x0B0000, the bottom address of the
video frame is 0x0B00DE. If the video frame 2 starts at address 0x0C0000, the
bottom address of the video frame is 0x0C00DE.
Registers settings are shown in Table 5–8.
Table 5–8. IMIF LCD Register Settings—Two Frames
DMA_LCD_CTRL
Register Settings
Frame_mode
1 (two frame)
Frame_it_ie
1
Bus_error_ie
1
Lcd_source
1 (IMIF)
DMA_LCD_TOP_F1_U
0x000B