On-Screen Display
Setting Up the OSD
MN102H75K/F75K/85K/F85K LSI User Manual Panasonic Semiconductor Development Company
189
Panasonic
7.10.4 Setting Up the OSD Display Position
This section describes how to control the positioning of the OSD.
To set up the horizontal position:
Cursor
Write the horizontal position of the cursor to the SHP[9:0] field
(x’007F12’).
Valid range: SHP x’0C’
Graphics
Write the horizontal position of the first line in the display to the
GIHP[9:0] field (x’007F16’).
Write the position of the second and all following lines in the GHP[9:0]
field of the graphics display RAM data for the preceding line.
Valid ranges: x’0C’ GHP HPmax and x’0C’ GIHP HPmax
Text
Write the horizontal position of the first line in the display to the
CIHP[9:0] field (x’007F1A’).
Write the position of the second and all following lines in the CHP[9:0]
field of the text display RAM data for the preceding line.
Valid ranges: x’0C’ CHP HPmax and x’0C’ CIHP HPmax
To set up HPmax equations, write:
HPmax = (Thsync Thw 0.8 µs)/Tdot (Nchar. × 16 × Hsz); or
HPmax = 1024 (Nchar. × 16 × Hsz)
When setting up the horizontal
position, you must allow at least
0.8 µs between the end of a line
and the leading edge of HSYNC,
or the display will flicker.
Thsync is the HSYNC cycle, Thw is the HSYNC pulse width, Nchar. is the number
of characters in the line including repeated characters and blank spaces, Tdot is
the dot clock cycle, and Hsz is the horizontal size. The HPmax limit ensures that
there is at least 0.8 µs between the end of a line and the leading edge of HSYNC.
About the horizontal start position on the screen
The horizontal position, or HP settings (SHP, GHP, and CHP) determine where
the left side of cursor, graphics, and text lines start on the screen. You can set this
value for all of the layers in 1-pixel units.
Figure 7-29 HPmax of Horizontal Display Position
HSYNC
RGB, YM, YS
Thw
Thsync
0.8 µs