![](http://datasheet.mmic.net.cn/390000/TVP3010C_datasheet_16839161/TVP3010C_57.png)
2–41
2.16.4
The cursor position X and Y registers specify the (X and Y) coordinate of the intersection of the crosshair
cursor. They are also used in conjunction with the sprite origin register to specify the location of the 64
×
64
cursor area (see subsection 2.5.3). The cursor position X register is made up of the cursor position X LSB
(CPXL) and the cursor position X MSB (CPXM); the cursor position Y register is made up of the cursor
position Y LSB (CPYL) and the cursor position Y MSB (CPYM). All registers are initialized to 00 (hex) and
can be written to or read from by the MPU at any time. The cursor position is not updated until the vertical
retrace interval after CPYM has been written to by the MPU.
Cursor Position X and Y Registers
CPXL and CPXM are cascaded to form a 12-bit cursor-position X register. Similarly, CPYL and CPYM are
cascaded to form a 12-bit cursor-position Y register. Bits D4–D7 of CPXM and CPYM are always a zero.
Table 2–22. Cursor Position X and Y Registers
CURSOR POSITION X MSB
(CPXM)
D6
D5
D4
CURSOR POSITION X LSB
(CPXL)
D6
D5
D4
Data Bit
D7
D3
D2
D1
D0
D7
D3
D2
D1
D0
X Position
0
0
0
0
X11
X10
X9
X8
X7
X6
X5
X4
X3
X2
X1
X0
Index = 01h
Index = 00h
CURSOR POSITION Y MSB
(CPYM)
D6
D5
D4
CURSOR POSITION Y LSB
(CPYL)
D6
D5
D4
Data Bit
D7
D3
D2
D1
D0
D7
D3
D2
D1
D0
Y Position
0
0
0
0
Y11
Y10
Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
Index = 03h
Index = 02h
The cursor position x value to be written is calculated as follows:
Cx = desired display screen X position
Values from 0000 (hex) to 0fff (hex) may be written into the cursor-position X register.
The cursor position Y value to be written is calculated as follows:
Cy = desired display screen Y position
Values from 0000 (hex) to 0fff (hex) may be written into the cursor position Y register.
The values written into the cursor position X and Y registers should be relative to the first displayed pixel
on the screen (i.e., 0,0).