![](http://datasheet.mmic.net.cn/390000/TVP3025-135_datasheet_16839165/TVP3025-135_44.png)
2–30
(0,0)
(31,31)
(63,63)
Figure 2–11. Common Sprite-Origin Settings
NOTE:
The programmable sprite-origin feature can be especially useful in creating
crosshair cursors and pointers. See Section 2.3.9.5 and Figures 2–11 and 2–12 for
more details.
Crosshair Cursor
Cursor positioning for the crosshair cursor is also done through the cursor-position (x,y) registers. The
intersection of the crosshair cursor is specified by the cursor-position (x,y) registers. If the thickness of the
crosshair cursor is greater than one pixel, the center of the intersection is the reference position. The
thickness of the crosshair cursor is specified by cursor-control register bits 0 and 1 (see Section 2.3.18.3).
The sprite-origin (x,y) registers have no effect on the crosshair cursor location.
In order to display the crosshair cursor, cursor-control register bit 2 needs to be enabled while CCR bit 3
is used to set the desired color as shown in the following table:
2.3.9.4
CCR2
CCR3
CROSSHAIR COLOR
0
0
Crosshair not displayed
0
1
Crosshair not displayed
1
0
Cursor color 0
1
1
Cursor color 1
The crosshair cursor is limited to being displayed within a window, which is specified by the window-start
(x,y) and window-stop (x, y) registers. Since the cursor-position (x,y) registers must specify a point within
the window boundaries, it is the responsibility of the user software to ensure that the cursor-position (x,y)
registers do not specify a point outside the defined window. Refer to Figure 2–12, which shows the
relationship between the different window and cursor register specifying regions.
If a full-screen crosshair cursor is desired, the window-start (x,y) registers should contain 0000 (hex) and
the window-stop (x,y) registers should be set to the last pixel location on the active screen. For the crosshair
cursor to be displayed, the window-start and window-stop registers must contain locations on the active
screen. To temporarily remove the crosshair cursor from the screen without disabling the function, the
window-start registers can be programmed with a location off the active screen.
The crosshair cursor and the auxiliary window function utilize the same set of window registers. Therefore,
care must be taken if the crosshair cursor is to be displayed when the auxiliary window function is enabled
(ACR0 = 1). See Section 2.3.18.11.