
III - STV9420/21PAGE EDITOR SOFTWARE
III.1 - Installation
In orderto havea quick executiontime, youshould
copy thepageeditorsoftwarefromthe3.5”diskette
to your hard disk.
It isn’t absolutely necessary to connect the I
2
C
interface, the demo board and the target monitor,
to run thepage editor software.If you run it alone,
you canedit your applicationpages, withoutpossi-
bilityto checkthe resulton yourapplicationmonitor
screen. If you run it while the demo board and the
targetmonitor areconnectedto the PCthroughthe
I
2
C interface board, the OSD device will be loaded
at each command or character entered from the
editor,so you will see theresults in real timeand in
real sizeon yourscreen.
After having reset the demo board by pushing the
RESETbutton,youstarttheexecutionbytypingthe
command ”
STV942X.exe
”.
Depending on the LPT1 : parallelport address, an
option musteventuallybe added on the command
line :
- If LPT1 addressis Hex 278 :
type ”STV942X.exe/A”,
- If LPT1 addressis Hex 378 (default) :
type ”STV942X.exe/B”, or ”STV942X.exe”,
- If LPT1 addressis Hex 3BC :
type ”STV942X.exe/C”.
III.2 - How to Build aPage
The OSDdevicecan displayup to8differentpages
storedinRAM.Thenumberofthecurrentdisplayed
page is definedby three bits of the ”Display Regis-
ter”.
That number ”n” (0 to 7), refers to a RAM address
(@ = n* 64),thatmustcontaina listof descriptors:
Vertical spacedescriptors andText descriptors.
The Text descriptors contain the address of the
lines of text.
Example :
suppose you want to display the text
”Hello, world”, in page 3 :
1. Choosethe page number: ”F1” (editregisters),
put ”1” in bits 0 and 1 of the ”Display ctl Regis-
ter”. In the RAM Zone, the yellow marker points
the thirdline ofRAM. Here, you must putthe list
of descriptors of the page.
2. This easypageis made of three strips : one top
margin,oneline of text,andonebottommargin.
The three first locations of the RAM Line will
contain : one Vert. Space Descriptor, one text
descriptor, and one Vert. Space Descriptor :
”F4”, ”F5”, ”F4”.WhenyouedittheTextDescrip-
tor (”F5”),you are promptedto definethe place
of the text. You can put it anywhere,except in
your descriptors list.
3. Typeyourtext ”Hello,World”,atthelocationyou
defined before, when you edited the text de-
scriptor ; terminate the text with ”End of line”
(”F7”). The textwill be displayed on your target
monitor. You can change the text color by
changingthecurrentcolor(”F2”),andrepainting
the text with the cursor : ”CTRLArrows”.
III.3 - Description
ThePageEditorsoftwareshowsonjustonescreen
the contentsofthe OSDdeviceregistersandRAM.
The screen isdivided in two parts :
Left Part :
The OSDRAM
It is made of 16 lines of 32 positions, fora totalof
512 positions.Eachposition represents 2 bytes
of RAM and it can be editedwith the OSD RAM
Editor.When startingthe OSD PageEditor,the
RAM is blanked.
One position can hold :
- Acharactercode:onebyte forthecode,onebyte
for the attributes,
- A text descriptor, containing, in two bytes, the
addressof oneline of characters,
- A vertical space descriptor, containing, in two
bytes, the number of space lines,
- One lineofa userdefinedcharacter,intwobytes.
Acomplete userdefinedcharactertakes18 lines,
or 36bytes.
Right Part :
The OSD Registers
It showsthe contentsof the 12registersoftheOSD
device. Each register can be edited with the com-
mand”F1”.WhenstartingtheOSDPageEditor,the
registersare initialized with default values that are
well suited for a VGAapplication.
During the OSD Page Editor Execution, when a
RAM position, or a Register is edited, the OSD
device is updated through the parallel port of the
PC and the I
2
C interface.
STV942x - DEMO KIT
6/9