S1D13705 Epson Electronics America, Inc., S1D13705 Datasheet - Page 121

no-image

S1D13705

Manufacturer Part Number
S1D13705
Description
S1d13705 Embedded Memory Lcd Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S1D1370500A1
Manufacturer:
EPSON/爱普生
Quantity:
20 000
Part Number:
S1D13705F00A100
Manufacturer:
EPSON
Quantity:
1 831
Part Number:
S1D13705F00A200
Manufacturer:
EPSON/爱普生
Quantity:
20 000
Epson Research and Development
Vancouver Design Center
5.2.2 Examples
Programming Notes and Examples
Issue Date: 01/02/13
long GetStartAddress()
{
}
void SetStartAddress(long SA)
{
}
StartWord = GetStartAddress();
StartWord ++;
SetStartAddress(StartWord);
StartWord = GetStartAddress();
StartWord --;
if (StartWord < 0)
SetStartAddress(StartWord);
return ((REG[10] & 1) * 65536) + (REG[0D] * 256) + (REG[0C]);
REG[0C] =
REG[0D] = (SA >>
Reg[10] = (SA >> 16) & 0xFF;
For the following examples we base our calculations on a 4 bit-per-pixel image displayed
on a 256w x 64h panel. We have set up a virtual size of 320w x 240h. Width is greater than
height so we are in landscape display mode. Refer to Section 2, “Initialization” on page 8
and Section 5.1, “Virtual Display” on page 25 for assistance with these settings.
These examples are shown using a C-like syntax.
Example 3: Panning (Right and Left)
To pan to the right increase the start address value by one. To pan to the left decrease the
start address value. Keep in mind that, with the exception of 8 bit-per-pixel portrait display
mode, the display will jump by more than one pixel as a result of changing the start address
registers.
Panning to the right.
Panning to the left.
The routine GetStartAddress() is one which will read the start address registers and return
the start address as a long value. It would be written similar to:
The routine SetStartAddress() break up its long integer argument into three register values
and store the values.
In this example code the notation REG[] refers to whatever mechanism is employed to
read/write the registers.
StartWord = 0;
SA
8) & 0xFF;
& 0xFF;
X27A-G-002-02
S1D13705
Page 29

Related parts for S1D13705