SPC8104 S-MOS Systems, SPC8104 Datasheet - Page 176

no-image

SPC8104

Manufacturer Part Number
SPC8104
Description
VGA LCD CONTROLLER
Manufacturer
S-MOS Systems
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
SPC8104F0A
Manufacturer:
EPSON
Quantity:
586
2.0
The purpose of this document is to demonstrate how to initialize the SPC8104F0A into a mode
similar to IBM's Standard VGA mode 12h by supplying sample code. The steps involved in this
are:
The resulting mode is not BIOS supported, so no DOS text will work, however, routines devel-
oped to write pixels without the BIOS into mode 12h video memory will work correctly.
; MODE12.ASM
;
; Programs the SPC8104 for 640x480 Single LCD panel.
; Sets up registers for mode 12h without the BIOS.
;
; This program assumes:
;
;**********************************************************************
;
; Instructions:
;
;
;
;
;
;
;
;**********************************************************************
TEXT SEGMENT WORD PUBLIC 'TEXT'
ASSUME CS:TEXT, DS:TEXT, SS:TEXT
Mode12 PROC
Programming Notes and Examples
SP3-22
- Make your changes
- Assemble
- Link
- Make a .COM file
ORG
cld
mov
mov
mov
cli
INITIALIZING THE SPC8104 IN MODE 12H WITHOUT A
BIOS
- memory refresh 4ms
S-MOS Systems, Inc. • Tel: (408) 922-0200 • Fax: (408) 922-0238 • http://www.smos.com
Enabling the SPC8104
Unlocking the Auxiliary Port
Setting up the SPC8104 panel specific registers
In this case for a Single STN, Color 640x480 LCD panel
Setting up the Standard VGA registers for Mode 12h
Setting up the attribute registers
Initializing the RAMDAC values
Clearing Video Memory
100h
ax, cs
ds, ax
es, ax
--
--
link mode12;
--
masm mode12.asm;
exe2bin mode12.exe mode12.com
; Set the direction flag.
; Ensure that DS and ES point to this sement.
;
;
; Interupts off while changing the stack.
412-1.0
SPC8104

Related parts for SPC8104