![](http://datasheet.mmic.net.cn/390000/TVP3010C_datasheet_16839161/TVP3010C_41.png)
2–25
The sprite origin (X and Y) registers can be programmed from (0,0) to (63,63). For example, when the sprite
origin (X and Y) registers were programmed to (0,0), the 64
×
64 cursor array would be located in the lower
right quadrant with respect to the cursor position (X and Y). Figure 2–7 illustrates this more clearly by
showing the 64
×
64 cursor array location relative to the cursor position (X) for different sprite origin values.
(0,0)
(31,31)
(63,63)
Figure 2–7. Common Sprite Origin Settings
NOTE:
The programmable sprite origin feature can be especially useful in creating
crosshair cursors and pointers (see subsection 2.5.5).
Crosshair Cursor
Cursor positioning for the crosshair cursor is also done through the cursor position (X and Y) register. The
intersection of the crosshair cursor is specified by the cursor position (X and Y) register. When 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 subsection 2.16.3).
The sprite origin (X and Y) register has no effect on the crosshair-cursor location.
2.5.4
In order to display the crosshair cursor, cursor control register bit 2 must be enabled while CCR bit 3 sets
the desired color as shown in Table 2–13.
Table 2–13. Crosshair-Cursor Color Selection
CCR2
CCR3
CROSSHAIR COLOR
0
0
Crosshair not displayed
0
1
Crosshair not displayed
1
0
Cursor color 0
1
1
Cursor color 1
Cursor control register bits 0 and 1 specify the crosshair cursor thickness (see subsection 2.16.3).
The crosshair cursor is limited to being displayed within a window specified by the window start (X and Y)
and window stop (X and Y) registers. Since the cursor position (X and Y) register must specify a point within
the window boundaries, it is the responsibility of the user software to ensure that the cursor-position
(X and Y) register does not specify a point outside the defined window. The relationship between the different
window and cursor register specifying regions is discussed in subsection 2.5.5.
When a full-screen crosshair cursor is desired, the window start (X and Y) registers should contain 0000
(hex) and the window stop (X and Y) registers should be set to the last pixel location on the active screen.