'--------------------------------------------------------------------------------
' s1d13748-vga-TCG057VG1AC-G00.txt
' Rev.1.0 		15th of February, 2011
' (C)SEIKO EPSON CORPORATION 2010. All rights reserved.
'--------------------------------------------------------------------------------
'verbose cmd:off set:off out:off
'Kyocera TCG057VG1AC-G00
'-------------------- Clock setting ---------------------------------------------
x 0018 0000	' System clock divide ratio = 1:1
'-------------------- PLL setting -----------------------------------------------
x 000C 3103	' PLL setting Register 0
x 000E 0002	' PLL setting Register 1
x 0010 0810	' PLL setting Regsiter 2
x 0012 0000	' PLL setting Regsiter 3      
delay 10000	' 10msec delay
'-------------------- LCDC setting ----------------------------------------------
x 0014 04D0	' Miscellaneous Configuration Regsiter
x 0030 0000	' LCD Interface Clock Setting
x 0032 0030	' LCD Interface Configuration
'-------------------- LCD1 setting ----------------------------------------------
x 0040 0063	' LCD1 Horizontal Total(FPLINE Period) = 800
x 0042 013F	' LCD1 Horizontal Display Period = 640
x 0044 007A	' LCD1 Horizontal Display Period Start Position = 131
x 0046 001D	' LCD1 Horizontal Pulse(FPLINE) = 30
x 0048 0000	' LCD1 Horizontal Pulse(FPLINE) Start Position = 1
x 004A 020C	' LCD1 Vertical Total(FPFRAME) = 525
x 004C 01DF	' LCD1 Vertical Display Period = 480
x 004E 0022	' LCD1 Vertical Display Period Start Position = 34
x 0050 0002	' LCD1 Vertical Pulse(FPFRAME) = 3
x 0052 0000	' LCD1 Vertical Pulse(FPFRAME) Start Positon = 0
'-------------------- Memory setting --------------------------------------------
x 0180	0000	' Host Interface Configuration
x 0182	0000	' Memory Start Address Register0
x 0184	0000	' Memory Start Address Register1
x 0188	0000	' HWC Memory Rectangular Write Horizontal Size
x 018A	0000	' HWC Memory Rectangular Write Vertical Size
'-------------------- Display mode setting --------------------------------------
x 0200	0030	' Display Mode Setting Register0
x 0202	0401	' Display Mode Setting Register1
'-------------------- Main window setting ---------------------------------------
x 0218	0000	' Main Window 1X Start Position
x 021A	0000	' Main Window 1Y Start Position
x 0240	0000	' Main Window 1 Display Start Address 0
x 0242	0000	' Main Window 1 Display Start Address 1
x 0244	0500	' Main Window Line Address Offset = 1280
x 0246	027F	' Main Window 1 Image Horizontal Size = 640
x 0248	01DF	' Main Window 1 Image Virtical Size = 480
x 0282	0020	' PIP1 panel output 18bit, Pseudo color disable 
'-------------------- Load image into frame buffer ------------------------------
section load
    set $buf0      000000

x 0202	0400	' Display off

set $file "vgaimage0.bmp"
    fload16 $file mem $buf0 f=4
x 0202	0401	' Display on

	print "hit any key! "
	input key
	print "\n"

x 0202	0400	' Display off

x 0182	0000	'Memory Start Address Register0
x 0184	0000	'Memory Start Address Register1

set $file "vgaimage1.bmp"
    fload16 $file mem $buf0 f=4
x 0202	0401	' Display on

section end



