SPC8104 S-MOS Systems, SPC8104 Datasheet - Page 159

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
1.0
The purpose of this document is to demonstrate how to initialize the SPC8104F0A into a mode
similar to IBM's Standard VGA mode 3 by supplying sample code. The steps involved in this are:
The resulting mode is not BIOS supported, so no DOS text will work, however, writing to the
memory location B800:0000 values 41 07 will put a white letter A in the top left corner.
; MODE3.ASM
;
; Programs the SPC8104 for dual 640x480 LCD panels.
;
; Sets up registers for mode 3 without the BIOS.
; The code ignores power down issues.
; The code assumes 4ms memory refresh clock.
;
;**********************************************************************
;
; Instructions:
;
;
;
;
;
;
;
; Note:
;
;
;**********************************************************************
PW
TEXT SEGMENT WORD PUBLIC 'TEXT'
ASSUME CS:TEXT, DS:TEXT, SS:TEXT
SPC8104
- Make your changes
- Assemble
- Link
- Make a .COM file
412-1.0
EQU
INITIALIZING THE SPC8104 IN MODE 03 WITHOUT A
BIOS
This program was tested by MS MASM 5.1
Enabling the SPC8104
Unlocking the Auxiliary Port
Setting up the SPC8104 panel specific registers
In this case for a Dual STN, Monochrome 640x480 LCD panel
Setting up the Standard VGA registers for Mode 3 (with the exception of only loading an 8 point font ver-
sus the 16 point font)
Loading the font into Memory (required for text mode only)
Initializing the Palette values
Setting up the attribute registers
Initializing Video Memory
S-MOS Systems, Inc. • Tel: (408) 922-0200 • Fax: (408) 922-0238 • http://www.smos.com
8000h
--
--
link MODE3;
--
masm MODE3.asm;
exe2bin MODE3.exe MODE3.com
; Port write (RunTable)
Programming Notes and Examples
SP3-5

Related parts for SPC8104