⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v2lcdtbl.asm

📁 X86 GX1 BOOTLOAD代码 ,支持WINCE操作系统!
💻 ASM
字号:
;**************************************************************************
;*
;*  V2lcdtbl.ASM
;*
;*  Copyright (c) 1998-1999 National Semiconductor Corporation.
;*  All Rights Reserved.
;*
;*  Function:
;*    LCD initialization table for VSA2.
;*
;*
;**************************************************************************

  
_TEXT SEGMENT PUBLIC use16 'CODE'

;
; 640x480 TFT, 60 Hz
;
PUBLIC LCD_INIT_TABLE0
PUBLIC LCD_INIT_COUNT0
LCD_INIT_TABLE0:
	DB	030h, 000h	
	DB	030h, 057h	; 
	DB	030h, 04Ch	; Access Extended Registers Enable

	DB	50h , 00h	; Disable CRT and LCD before Init

	DB	52h , 10h	; 18Bits Per Pixel, Color, TFT, 640x480
	DB	54h , 19h	; Clock frequency, integer part
	DB	55h , 00h	; Clock Frequency, fractional part
	DB	56h , 14h	; Horizontal Total
	DB	57h , 2Dh	; Vertical Total
	DB	58h , 02h	; Horizontal Sync Start
	DB	59h , 0Eh	; Horizontal Sync End
	DB	5ah , 09h	; Vertical Sync Start
	DB	5bh , 0bh	; Vertical Sync End
	DB	5ch , 02h	; CRT Horizontal Sync Start
	DB	5dh , 0Eh	; CRT Horizontal Sync End
	DB	5eh , 0Ah	; CRT Vertical Sync Start
	DB	5fh , 0Ch	; CRT Vertical Sync End
	
	DB	50h , 07h	; Enabled LCD AND CRT
	DB	030h, 0ffh	; Disable Access to extended registers

LCD_INIT_COUNT0 EQU ($ - LCD_INIT_TABLE0)

;
; 800x600 TFT, 60Hz
;
PUBLIC LCD_INIT_TABLE1
PUBLIC LCD_INIT_COUNT1
LCD_INIT_TABLE1:
	DB	030h, 000h	
	DB	030h, 057h	; 
	DB	030h, 04Ch	; Access Extended Registers Enable

	DB	50h , 00h	; Disable CRT and LCD before Init

	DB	52h , 11h	; 18Bits Per Pixel, Color, TFT, 800x600
	DB	54h , 28h	; Clock frequency, integer part
	DB	55h , 00h	; Clock frequency, fractional part
	DB	56h , 20h	; Horizontal Total
	DB	57h , 1ch	; Vertical Total
	DB	58h , 05h	; Horizontal Sync Start
	DB	59h , 15h	; Horizontal Sync End
	DB	5ah , 00h	; Vertical Sync Start
	DB	5bh , 04h	; Vertical Sync End
	DB	5ch , 05h	; CRT Horizontal Sync Start
	DB	5dh , 15h	; CRT Horizontal Sync End
	DB	5eh , 01h	; CRT Vertical Sync Start
	DB	5fh , 05h	; CRT Vertical Sync End
	
	DB	50h , 07h	; Enabled LCD AND CRT
	DB	030h, 0ffh	; Disable Access to extended registers

LCD_INIT_COUNT1 EQU ($ - LCD_INIT_TABLE1)

;
; 1024x768 TFT, 60Hz
;
PUBLIC LCD_INIT_TABLE2
PUBLIC LCD_INIT_COUNT2
LCD_INIT_TABLE2:
	DB	030h, 000h	
	DB	030h, 057h	; 
	DB	030h, 04Ch	; Access Extended Registers Enable
	DB	50h , 00h	; Disable CRT and LCD before Init

	DB	52h , 12h	; 18Bits Per Pixel, Color, TFT, 1024x768
	DB	54h , 41h	; Clock frequency, integer part
	DB	55h , 00h	; Clock frequency, fractional part
	DB	56h , 28h	; Horizontal Total
	DB	57h , 26h	; Vertical Total
	DB	58h , 03h	; Horizontal Sync Start
	DB	59h , 14h	; Horizontal Sync End
	DB	5ah , 02h	; Vertical Sync Start
	DB	5bh , 08h	; Vertical Sync End
	DB	5ch , 03h	; CRT Horizontal Sync Start
	DB	5dh , 14h	; CRT Horizontal Sync End
	DB	5eh , 03h	; CRT Vertical Sync Start
	DB	5fh , 09h	; CRT Vertical Sync End

	DB	50h , 07h	; Enabled LCD AND CRT
	DB	030h, 0ffh	; Disable Access to extended registers

LCD_INIT_COUNT2 EQU ($ - LCD_INIT_TABLE2)


;
; Unfixed timings
;
PUBLIC LCD_INIT_TABLE3
PUBLIC LCD_INIT_COUNT3
LCD_INIT_TABLE3:
	DB	030h, 000h
	DB	030h, 057h	; 
	DB	030h, 04Ch	; Access Extended Registers Enable
	DB	50h , 082h	; Disable CRT and LCD before Init
	DB	030h, 0ffh	; Disable Access to extended registers

LCD_INIT_COUNT3 EQU ($ - LCD_INIT_TABLE3)



_TEXT ENDS

END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -