![](http://datasheet.mmic.net.cn/390000/TVP3020-175_datasheet_16839163/TVP3020-175_56.png)
2–42
2.16.6
These registers are used to specify the (x,y) coordinate of the lower-right corner of the crosshair cursor or
auxiliary window. The window-stop X register is made up of the window-stop X LSB (WSPXL) and the
window-stop X MSB (WSPXM); the window-stop Y register is made up of the window-stop Y LSB (WSPYL)
and the window-stop Y MSB (WSPYM). They are not initialized and may be written to or read from by the
MPU at any time. The window stop is not updated until the vertical retrace interval after WSPYM has been
written to by the MPU.
Window-Stop (x, y) Register
WSPXL and WSPXM registers are cascaded to form a 12-bit window-stop X register. Similarly, WSPYL and
WSPYM registers are cascaded to form a 12-bit window-stop Y register. Bits D4 – D7 of WSPXM and
WSPYM are always a logical zero.
WINDOW STOP X MSB
WINDOW STOP X LSB
(WSPXM)
D4
(WSPXL)
D4
Data Bit
D7
D6
D5
D3
D2
D1
D0
D7
D6
D5
D3
D2
D1
D0
X Coordinate
0
0
0
0
X11
X10
X9
X8
X7
X6
X5
X4
X3
X2
X1
X0
Index = 13h
Index = 12h
WINDOW STOP Y MSB
WINDOW STOP Y LSB
(WSPYM)
D4
(WSPYL)
D4
Data Bit
D7
D6
D5
D3
D2
D1
D0
D7
D6
D5
D3
D2
D1
D0
Y Coordinate
0
0
0
0
Y11
Y10
Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
Index = 17h
Index = 16h
The window-stop X value to be written is calculated as follows:
Wx = desired display screen x position
Values from 0000 (hex) to 0fff (hex) may be written into the window-stop X register.
The window-stop Y value to be written is calculated as follows:
Wy = desired display screen y position
Values from 0000 (hex) to 0fff (hex) may be written into the window-stop Y register.
The values written into the window-stop X and Y registers should be relative to the first displayed pixel on
the screen; i.e., (0,0).
The window-stop location specified is the last location inside the window. For the crosshair cursor or
auxiliary window to be displayed, the window-start registers must specify a point on the active display.