RA8806
Preliminary Version 1.0
Two Layers Character/Graphic LCD Controller
For RA8806, if LCD panel resolution is 320x240 pixels then the display window resolution is
320x240. We can create an active window in the display window like Figure 6-12. This figure show
the display resolution is 320x240, and a 160x160 active window is on the upper-middle. The relative
setting of the active window as following:
LCD_CmdWrite ( 0x40 );
LCD_DataWrite ( 0x09 );
// AWLR = 09h = 9 Î ( 80 / 8) – 1
// AWRR = 1Dh = 29 Î ( 240 / 8 ) – 1
// AWTR = 00h = 0
LCD_CmdWrite ( 0x20 );
LCD_DataWrite ( 0x1D );
LCD_CmdWrite ( 0x50 );
LCD_DataWrite ( 0x00 );
LCD_CmdWrite ( 0x30 );
LCD_DataWrite ( 0x9F );
// AWBR = 9Fh = 159 Î 160 – 1
// DWWR = 27h = 39 Î ( 320 / 8 ) – 1
// DWHR = EFh = 239 Î 240 – 1
LCD_CmdWrite ( 0x40 );
LCD_DataWrite ( 0x27 );
LCD_CmdWrite ( 0x40 );
LCD_DataWrite ( 0xEF );
320
……....
…………………………
………
0 1 2
79 80
239 240
319
0
1
2
:
:
:
:
Active Window
160 x 160
80
80
:
:
240
:
159
160
:
:
:
Display Window
320 x 240
80
239
Figure 6-12 : RA8806 Display Window and Active Window
RAiO TECHNOLOGY INC.
35/174
www.raio.com.tw