2.1.1Data to Write .........................................................................................................................................................9
2.1.3Format, Window and Row Address (FWR) .........................................................................................................10
2.1.4Format, Attribute and Column Address (FAC) ....................................................................................................10
2.1.5Control Data, Color Codes or Character Codes .................................................................................................11
2.1.6Configuration of Transmission Formats .............................................................................................................11
3.5Window Background Color ......... ................................................................................. .......17
3.6Window Bordering and Shadowing Effects ........................... ....................... .. ....................17
3.6.1Enable Bordering or Shadowing Effects .............................................................................................................17
3.6.2Bordering or Shadowing Selection .....................................................................................................................17
3.6.3Border or Shadow Color .....................................................................................................................................18
3.6.4Bordering or Shadowing Size .............................................................................................................................18
4.5.1Character Background Color ..............................................................................................................................22
4.5.2Character Color ...................................................................................................................................................23
7.2.1Data Sent Using I²C ............................................................................................................................................31
7.2.2Data Sent Using the RGB Channel ....................................................................................................................31
7.3Control Reg is te r s D e s cr ip tion ................ .. ............. .. .. .............. .. .. ........................... .. .. ........33
7.4Line and Pixel O ff s ets .......... .. ........................................ .. .. ........................... .. .. .................34
Power On Reset .................................................................................................................................................37
10.1.2Examples of Programming ..................................................................................................................................42
Hard reset at power-up (following a power-up) ...................................................................................................42
Change of position & size of 1 window (ex. window 3) without disable of window .............................................42
Re-allocation, reset, and writing new characters in windows ..............................................................................43
The STV9937 is an Advanced On Screen Dis pla y gener ator for CR T monit ors . It in cludes a speci fic
architecture allowing mul tiple menu displays, a built in 512 charact e r ROM and the Picture
BooST
The patented Picture BooST
screen area or even over the entir e screen.
TM
system.
TM
feature allows images to be boosted either within a window, a
Using traditional architecture (OSD + Preamp STV9212) and without any additional devices on the
TM
CRT board, Picture BooST
boosts the brightness and sharpness of the video on CRT displays
giving a TV like effect.
TM
The STV9937 can drive Picture BooST
either through the VGA cable (using RGB or DDC),
through the USB channel via the MCU or through the OSD menu (the registers can be accessed b y
the MCU via I²C).
TM
The STV9937 embeds the RGB data decoder, the Pic tur e BooST
Picture BooST
Along with the Picture BooST
TM
signal generator.
TM
and traditional OSD features, the STV9937 allows a simultaneous
Control Registers and the
display of up to four menus anywhere on the screen. Each of the four independent windows, all
displaying characters, can be overlapped and display priorities are automatically controlled.
● Window sizes and posit i ons are i ndependentl y prog r ammable as well as scrol ling men u ef fects.
● Programming of the general OSD and of the 4 windo ws is controll ed b y an I²C bus in Re ad and
Write modes, to suit the various CRT displays.
● Associated with an easily programmable character height, the internal PLL generates the
programmable pixel clock, without using a crystal oscillator, that defines the character width
making the device suitable for multi-sync applications.
● A maximum of 640 charac ters, defi ned in the mask-pr ogrammab le R OM, are distrib uted among
the 4 windows and displayed simultaneously.
Figure 1: Multi-window Concept with Character Display
5/49
General DescriptionSTV9937
Figure 2: STV9937 Block Diagram
STV9937
HSYNC
TEST1
TEST2
VS
HFLY
SCL
SDA
STV9937
PB Sequencer
OSD Sequencer
I2C Interface
And Registers
Test
RPVCO
PLL
Reset Signals
OSD Pixel Clock
PB Pixel Clock
Reset
RINGIN
RGB Input Buffer
Picture BooST
Decoder and Generator
4 Windows
OSD
Generator
BIN
TM
PB
RAM
ROM
ROUT
ContrastContrast
TM
System Block Diagram
I2C
PreAmplifier: STV9212
OSD: STV9937
Figure 3: PictureBooST
Computer main Unit Monitor CRT board
4
2
P
I
D
S
PictureBooST™
Video Card
DDC
H Sync
V Sync
Picture booST™
Picture booST ™
Window ™ Software
Window ™ Software
I
D
Color code
R G B Boost OSD FBlk
4
2
P
PictureBooST ™
Decoder
Window
Coordinate
register
GOUTBOUTFBLK
Boost gain
& Sharpness
OSD
OSD
generator
generator
Line PLLLine PLL
Video Amplifier AC or DC
DriveDrive
H Fly
H Sync
6/49
STV9937General Description
1.1Pin Description
Figure 4: Pin Connections
AVSS
RP
VCO
AVDD
TEST1
TEST2
HFLY
VS
HSYNC
SDA
SCL
1
2
3
4
5
6
7
8
9
10
11
12
24
23
22
21
20
19
18
17
16
15
14
13
IVSS
BIN
GIN
RIN
IVDD
DVDD
DVSS
PB
BOUT
GOUT
ROUT
FBLK
Table 1: Pin Descriptions
N°Pin NameDirectionDigital/AnalogFunction
1AVSS-SupplyAnalog Ground
2RPI/OAnalogfor VCO
3VCOI/OAnalogfor VCO
4AVDD-SupplyAnalog Power Supply
5TEST1InputDigitalRemains at 0 (for test purposes only)
6TEST2InputDigitalRemains at 0 (for test purposes only)
7HFLYInputDigitalHorizontal Flyback Input
8VSInputDigitalVertical Synchronization Input
9HSYNCInputDigitalHor i zontal Synchronization Input
10SDAI/ODigitalSerial Data of I²C bus
11SCLInputDigitalSerial Clock of I²C bus
11DVDD-SupplyDigital Power Supply
12N/C--13FBLKOutputDigit alFast Blanking Output
14ROUTOutputDigitalOSD Red Color Output
15GOUTOutputDigitalOSD Green Color Output
16BOUTOutputDigitalOSD Blue Color Output
17PBOutputDigital
18DVSS-SupplyDigital Ground
PictureBooST
7/49
TM
Output
General DescriptionSTV9937
Table 1: Pin Descriptions (Continued)
N°Pin NameDirectionDigital/AnalogFunction
19DVDD-SupplyDigital Power Supply
20IVDD-SupplyPower Supply for Video Input
21RINInputAnalogVGA Signal Input, Red Channel
22GINInputAnalogVGA Signal Input, Green Channel
23BINInputAnalogVGA Signal Input, Blue Channel
24IVSS-SupplyGround for Video Input
8/49
STV9937Register Addressing
2Register Addressing
All OSD control registers are located in Wi ndow 0, Row 0. PictureBooSTTM control registers are
located in Window 0, Row 1. All color-boxes data are located in Window 0, Row 2.
Three formats are available: A, B and C, as described in the I²C protocol (see Section 2.1: I²C
Protocol).
All addresses (FAC and FWR bytes) are based on Formats A or B, and are written in hexadecimal
format.
2.1I²C Protocol
The serial interface with t he microcontrolleris an I²C bus with 2 wires: SCL and SD A. The OSD is a
slav e circuit with 2 modes: Write and Read. The sla v e address of the OSD is BAh in write mode and
BBh in read mode.
2.1.1Data to Write
In the OSD, the I²C bus is used to write - read:
● the contro l data
● the character codes and their respective color codes
● the color-boxes (8 color-boxes per window).
A color-box contains the character color, character background color and blink data. There are 8
color-boxes for each OSD window which are used to define the colors available for all the
characters of the given OSD window. 3 bits are required to code the 8 color-boxes. These bits are
the color code.
For more information, refer to Section 4.5: Character Colors on page 22.
Each character code is related to its own window, row and column. Consequently, the protocol of
the I²C transmission inclu des this information (window, ro w and column) to define the position of t he
character on the screen. These 3 piec es of information about the position are tr ansmitted in 2 b ytes .
As each character on the screen has its own color code, the same protocol is used to write all the
color codes and character codes. Only the attribute bit called ‘A’ allows the character codes to be
distinguished from the color co des corresponding to one position on the screen.
The control data is also written with the same protocol using windows, rows and columns. Window
0 is reserved for control data and color codes.
2.1.2Transmission Formats
There are 3 transmission formats to suit the amount of data to update. The transmission format is
coded in the “window/row/column” bytes.
Format A is suitab le for updating small amounts of data whi ch are allocated to different windo w, row
and column addresses.
Format B is recommended for updating data for the same window and the same row address, but
with a different column address and when changing the Character/Color-box attribute (bit A), or
when writing to a different I²C control register.
Format C is appropriate for updating large amounts of data from a full window or full screen. The
window, row and column addresses are incremented automatically when this format is applied.
Data is written to fill all the allocation memory of the windows .
9/49
Register AddressingSTV9937
The transmission formats are as follows:
1. Format A: S-FWR-FAC-D
® FWR-FAC-D ® FWR-FAC-D ® FWR-FAC-D...Stop
2. Format B: S-FWR-FAC-D
3. Format C: S-FWR-FAC-D
® FAC-D ® FAC-D ® FAC-D...Stop
® D ® D ®D...Stop
Where:
S = Slave address = BAh
FWR = Format, Window and Row address
FAC = Format, Attribute and Column address
D = CTRL Control data (8 bits), CB Color codes (3 bits) or RC Character codes (9 bits).
In Format C, t he order of automati c incrementat ion for data D i s first t he column v alue , then t he ro w
value, and then the window value.
Table 2: Various Bytes coded in the I²C Transmission
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
FWR
FAC
D: Control Data (in window 0 only)CTRL[7:0]
D: Color Code and Character Code MSB000RC[8]0CB[2:0]
D: Character Code LSBsRC[7:0]
1
0
W[2:0]R[3:0]
FAC[4:0]
2.1.3Format, Window and Row Address (FWR)
Bit 7 indicates the ‘Window & Row’ byte when set to 1.
W[2:0]: Window Number
000: Control Data and Color Codes
001: Window 1
010: Window 2
011: Window 3
100: Window 4
R[3:0]: Row Numbers from 0 to 15. Each window has a maximum number of 16 rows.
2.1.4Format, Attribute and Column Address (FAC)
Bit 7 indicates the ‘Attrib ute & Column’ byte when set to 0.
F: Format
0: Format A or B
1: Format C
A: Transmission of character code or color code
0: Character Code
1: Color Code and Character Code MSB
When reading or writing control data and/or character codes, bit A must be set to 0. For color code
and character code MSB, bit A must be set to 1.
10/49
STV9937Register Addressing
C[4:0]: Column Number
There are 32 possible columns .
00000: 1 column
11111: 32 columns
2.1.5Control Data, Color Codes or Character Codes
Color codes are stored on 3 bits. Control data is stored on 8 bits and Charact er codes are stored on
9 bits.
The F bit from the FAC byte is alwa ys 0 in this case.
11/49
Register AddressingSTV9937
To change from Format B to Format C
S - FWR[0]- FAC[0]- D[0] ® FAC[1]- D[1] ® FAC[2]- D[2] ® D[3] ® D[4]...
The “F” bit from the FAC byte is as follows: F[0] = F[1] = “0” and F[2] = “1”
It is not possible to change from Format C back to Format A or B.
Figure 5: Format Changing Sequences
Start
start
2.3Read Mode
The transmission format is shown as below:
Start - S(w) - FWR- FAC - Stop - Start - S(r) - D
Where:
S(r) = Slave address in read mode = BBh = 10111011.
Registers and data in RAM are readable.
This mode is useful when developing OSD applications.
2.4Addressing Map
Format A
Format C
Format B
® D ® D ® D...Stop
Table 4: Window Addressing Map
WindowRowColumnData
Window 0Row 0Columns 0 to 31Control Data (8 bits)
Window 0Row 1Columns 0 to 31
Window 0Row 2Columns 0 to 31Color-boxes (8 bits)
Windows 1, 2, 3 and 4Rows 0 to n (n = 15 max.)Columns 0 to m (m = 31 max.)Characters Coding (12 bits)
12/49
PictureBooST
TM
Data
STV9937Window Specifications
3Window Specifications
Four different independent windows with separate character displays can be simultaneously
display ed on screen . It is pos sib le to ha v e o v erlapping windo ws with an automat ic control of display
priorities: downscale priorities from Window 4 to Window 1.
Window 1 is well-ad apted for the OSD general menu.
The 4 windows, each with its own character display, can be positioned anywhere on the screen.
The following characteristics are defined for each window:
● Enable Display
● Position
● Size, adjustable with memory allocation
● Background Color
● Bordering or Shadowing effects with programmable color, height and width.
Figure 6: Example of Window Displays
Axis
Origin
Screen
HD
Window 2
VD
Window 1
Window 3
Window 4
13/49
Window SpecificationsSTV9937
3.1Enable Display
The Enable Display command for each window is selected by bits ENW1, ENW2, ENW3 and
ENW4. If the ENWi bit is set to 1, the corresponding window is displayed.
The 4 windows are arranged in a fr ame whose origin coordinates are t he horizontal dela y ( HD) and
the vertical delay (VD) loc ated at the upper left-hand corner of the monitor screen. When the HD
and VD values are changed, the 4 windows within the frame position are automatically shifted by
the same value. The origin (HD, VD) can be programmed anywhere on the screen. Adjusting the
origin position is used to globally reposition the OSD windows.
The advantages of this system are easi er programming, the possibility to adapt the position of all
windows at a single time without changing the relative position of each window and the possibility
for the user to program all 4 window positions.
3.2.1General Horizontal Delay (HD)
Table 6: Origin of Windows on Horizontal Axis: Horizontal Delay
The general horizontal delay defines the horizontal position of the origin coordinate f or all four OSD
windows. The horizontal delay is selected by bits HD[6:0].
General Horizontal Offset = 50 pixels
General Horizontal Delay = HD[6:0] x 6 pixels + General Offset (i n pixels)
The default value of the horiz ontal delay is 0h (left-hand side of the moni tor screen).
3.2.2Gen eral Vertical Delay (VD)
Table 7: Origin of Windows on Vertical Axis: Vertical Delay
The general vertical delay defines the vertical position of the origin coordinate for all four OSD
windows. The v ertical delay is selected by bits VD[7:0] . A general vertical offset of 2 scan lines is
also applied.
The range of the vertical delay is from 2 to 1022 scan lines, in steps of 4 scan lines each.
General Ver tical Delay = VD[7:0] x 4 + 2 (in scan lines)
The default value of the vertical delay is 0h (top of screen).
14/49
STV9937Window Specifications
3.3Window Positions in the Frame
All values are referenced to the origin coordinates (HD, VD). For more information, refer to
Figure 6 on page 13.
3.3.1Window Horizontal Delay
The window horizontal delay defines the horizontal start position for each separate OSD window.
This value is selected by bits HDW1[6:0] , HDW2[6:0], HDW3[6:0] and HDW4[6:0], respectively.
The range of the window horizontal delay is from 0 to 1524 pixels, in steps of 12 pixels each.
Window Horizontal Delay = HDWi[6:0] x 12 pixels
The total horizontal delay of a window is:
General Horizontal Delay + HDWi[6:0] x 12 pixels; or,
HD[6:0] x 6 pixels + HDWi[6:0] x 12 pixels + (50 pixels).
The default values for the window horizontal delay for each of the four OSD windows is given in
Table 8.
3.3.2Window Vertical Delay
The window vertical delay defines the vertical start position for each separate OSD window. This
value is selected by bits VDW1[5:0], VDW2[ 5:0], VDW3[5: 0] and VDW4[5:0], respectively.
The range of the window v ertical delay i s from 0 to 63 rows of c haracters, in steps of 1 charact er row
each. It is important to note that the height of each character row is defined by the row height
parameter. For more information, refer to Section 4.4: Space Lines on page 21.
Window Vertical Delay = VDWi[5: 0] x Row_Height
The total vertical delay of a windo w is:
General Ver tical Delay + VDWi[5:0] x Row_Height (in scan lines); or,
(VD[7:0] x 4 + 2) + VDWi[5:0] x Row_Height (in scan lines).
The default values for the window vertical delay for each of the four OSD windows is given in
Table 9.
15/49
Loading...
+ 35 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.