
III - STV9420/21 PAGE EDITOR SOFTWARE
III.1 - Installation
In order to have a quick execution time, you should
copy the page editor software from the 3.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 the page editor software. If you run it alone,
you can edit your application pages, without possi-
bility to check the result on your application monitor
screen. If you run it while the demo board and the
target monitor are connected to the PC through the
I
2
C interface board, the OSD device will be loaded
at each command or character entered from the
editor, so you will see the results in real time and in
real size on your screen.
After having reset the demo board by pushing the
RESET button, you start the execution by typing the
command "
STV942X.exe
".
Depending on the LPT1 : parallel port address, an
option must eventually be added on the command
line :
- If LPT1 address is Hex 278 :
type "STV942X.exe /A",
- If LPT1 address is Hex 378 (default) :
type "STV942X.exe /B", or "STV942X.exe",
- If LPT1 address is Hex 3BC :
type "STV942X.exe /C".
III.2 - How to Build a Page
The OSD device can display up to 8 different pages
stored in RAM. The number of the current displayed
page is defined by three bits of the "Display Regis-
ter".
That number "n" (0 to 7), refers to a RAM address
(@ = n * 64), that must contain a list of descriptors :
Vertical space descriptors and Text 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. Choose the page number : "F1" (edit registers),
put "1" in bits 0 and 1 of the "Display ctl Regis-
ter". In the RAM Zone, the yellow marker points
the third line of RAM. Here, you must put the list
of descriptors of the page.
2. This easy page is made of three strips : one top
margin, one line of text, and one bottom margin.
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". When you edit the Text Descrip-
tor ("F5"), you are prompted to define the place
of the text. You can put it anywhere, except in
your descriptors list.
3. Type your text "Hello, World", at the location you
defined before, when you edited the text de-
scriptor ; terminate the text with "End of line"
("F7"). The text will be displayed on your target
monitor. You can change the text color by
changing the current color ("F2"), and repainting
the text with the cursor : "CTRL Arrows".
III.3 - Description
The Page Editor software shows on just one screen
the contents of the OSD device registers and RAM.
The screen is divided in two parts :
Left Part :
The OSD RAM
It is made of 16 lines of 32 positions, for a total of
512 positions. Each position represents 2 bytes
of RAM and it can be edited with the OSD RAM
Editor. When starting the OSD Page Editor, the
RAM is blanked.
One position can hold :
- A character code : one byte for the code, one byte
for the attributes,
- A text descriptor, containing, in two bytes, the
address of one line of characters,
- A vertical space descriptor, containing, in two
bytes, the number of space lines,
- One line of a user defined character, in two bytes.
A complete user defined character takes 18 lines,
or 36 bytes.
Right Part :
The OSD Registers
It shows the contents of the 12 registers of the OSD
device. Each register can be edited with the com-
mand "F1". When starting the OSD Page Editor, the
registers are initialized with default values that are
well suited for a VGA application.
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