Move Cursor In Swivelview 90° Rotation; Move Cursor In Swivelview 180° Rotation - Epson S1D13506 Technical Manual

Color lcd/crt/tv controller
Table of Contents

Advertisement

Page 54
8.5.2 Move Cursor in SwivelView 90° Rotation
8.5.3 Move Cursor in SwivelView 180° Rotation
S1D13506
X25B-G-003-04
In the following example, (x, y) represent the desired cursor position.
1. Calculate abs(x), the absolute (non-negative) value of x.
2. Write the least significant byte of abs(x) to Y Position Register 0.
3. If x is negative, take the value of the most significant byte of abs(x) and logically OR
with 80h. Write the result to Y Position Register 1.
If x is positive, write the most significant byte of abs(x) to Y Position Register 1.
4. Calculate a value for y2,
where y2 = display width - y - 64.
5. Calculate abs(y2), the absolute (non-negative) value of y2.
6. Write the least significant byte of abs(y2) to X Position Register 0.
7. If y2 is negative, take the value of the most significant byte of abs(y2) and logically
OR with 80h. Write the result to X Position Register 1.
If y2 is positive, write the most significant byte of abs(y2) to X Position Register 1.
In the following example, (x, y) represent the desired cursor position.
1. Calculate the value of x2,
where x2 = display width - x - 64
2. Calculate abs(x2), the absolute (non-negative) value of x2.
3. Write the least significant byte of abs(x2) to X Position Register0.
4. If x2 is negative, take the value of the most significant byte of abs(x2) and logically
OR with 80h. Write the result to X Position Register 1.
If x2 is positive, write the most significant byte of abs(x2) to X Position Register 1.
5. Calculate the value of y2,
where y2 = display height - y - 64
6. Calculate abs(y2), the absolute (non-negative) value of y2.
7. Write the least significant byte of abs(y2) to Y Position Register 0.
8. If y2 is negative, take the value of the most significant byte of abs(y2) and logically
OR with 80h. Write the result to Y Position Register 1.
If y2 is positive, write the most significant byte of abs(y2) to Y Position Register 1.
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 02/03/21

Advertisement

Table of Contents
loading

Table of Contents