Epson S1C33L03 Laptop User Manual


 
VII LCD CONTROLLER BLOCK: LCD CONTROLLER
S1C33L03 FUNCTION PART EPSON B-VII-2-43
A-1
B-VII
LCDC
Examples of LCD Controller Setting Program
(Wait signal = ON)
;******************
;C33L03 ASM
;******************
;===================================
.org 0x0
.half 0x0008
.half 0x00c0
.org 0x0008
;---------------------------
;initial
;---------------------------
xld.w %r1, 0x1fff ;stack poiter
ld.w %sp, %r1
xld.w %r5, 0x48126 ;ROM access speed
xld.w %r1, 0x0
ld.b [%r5], %r1
xld.w %r5, 0x48128 ;Ram wait cycle 0 access speed
xld.w %r1, 0x00
ld.b [%r5], %r1
xld.w %r5, 0x4812a ;set area6 wait cycle
ld.h [%r5], %r1
xld.w %r5, 0x4812e ;set bus control register wait enable , a0 mode
xld.w %r1, 0x05
ld.b [%r5], %r1
xld.w %r5,0x48132 ;set area6 access control register
xld.w %r1,0xff00
ld.h [%r5],%r1
xld.w %r5,0x4813a ;select bclk output
xld.w %r1,0x01
ld.b [%r5],%r1
xld.w %r1, 0x39ffe3 ;lcd enable
xld.w %r2, 0x20
ld.b [%r1], %r2
xld.w %r5, 0x402dc ;set busack,req,wait
xld.w %r1, 0x30
ld.b [%r5], %r1
;******************************************************
;**
;**test color 4/8bit 1/2/4/8 bpp ,video invert,
;** segment ,common landscape mode/virtual image
;** display blank
;******************************************************
;set landscape mode
;***********************************
;color ,8bit , 8bpp,segment32 x 3
;***********************************
xld.w %r1, 0x39ffe1 ; write-- set mono,4-bit
xld.w %r2, 0x04
ld.b [%r1], %r2
xld.w %r1, 0x39ffe2 ; write-- set 2bpp,no high performance,disable display bland
xld.w %r2, 0x40 ; no invert video
ld.b [%r1], %r2
xld.w %r1, 0x39ffe4 ; set segment 32
xld.w %r2, 0x01
ld.b [%r1], %r2
xld.w %r1, 0x39ffe5 ; set common
xld.w %r2, 0x01
ld.b [%r1], %r2
xld.w %r1, 0x39ffe8 ; set Horizontal Non-display period
xld.w %r2, 0x01