lcd相关初始化程序(俺用800*600,16位)
ldr r0,=0x80930000
mov r2,#0xaa
str r2,[r0,#0xc0] ;SysSWLock
ldr r2,=0x02a4a3d7
str r2,[r0,#0x20] ;CSC_CLKSET1
mov r2,#0xaa
str r2,[r0,#0xc0] ;SysSWLock
ldr r2,=0x11960051
str r2,[r0,#0x80] ;CSC_DEVCFG
mov r2,#0xaa
str r2,[r0,#0xc0] ;SysSWLock
ldr r2,=0xc304
str r2,[r0,#0x84] ;CSC_VIDDIV
ldr r0,=0x80030000
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x270 ;
str r2,[r0,#0] ;VLINESTOTAL
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x2700270
str r2,[r0,#0x04] ;VSYNCSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x0210258
str r2,[r0,#0x08] ;VACTIVESTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x0210258
str r2,[r0,#0x228] ;VBLANKSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x02700270
str r2,[r0,#0x0c] ;VCLKSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x3ff
str r2,[r0,#0x10] ;HCLKSTOTAL
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x3b703ff
str r2,[r0,#0x14] ;HSYNCSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x100330
str r2,[r0,#0x18] ;HACTIVESTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x100330
str r2,[r0,#0x22c] ;HBLANKSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x3ff03ff
str r2,[r0,#0x1c] ;HCLKSTRTSTOP
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x00
str r2,[r0,#0x3c] ;LINECARRY
mov r2,#0xaa
str r2,[r0,#0x7c] ;REALITI_SWLOCK
ldr r2,=0x60010f
str r2,[r0,#0x24] ;VIDEOATTRIBS
ldr r2,=0xc0000
str r2,[r0,#0x28] ;VIDSCRNPAGE
ldr r2,=0x257
str r2,[r0,#0x30] ;SCRNLINES
ldr r2,=0x18f
str r2,[r0,#0x34] ;LINELENGTH
ldr r2,=0x190
str r2,[r0,#0x38] ;VLINESTEP
ldr r2,=0x140c
str r2,[r0,#0x54] ;PIXELMODE
VIDSCRNPAGE地址跟CONFIG.bib中的FRAMBUFF一样 |