Epson S1D13704 Technical Manual page 125

Embedded memory color lcd controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
StartWord = GetStartAddress();
StartWord ++;
SetStartAddress(StartWord);
StartWord = GetStartAddress();
StartWord --;
if (StartWord < 0)
SetStartAddress(StartWord);
StartWord = GetStartAddress();
StartWord -= words_per_line;
if (StartWord < 0)
SetStartAddress(StartWord);
StartWord = GetStartAddress();
StartWord += words_per_line;
SetStartAddress(StartWord);
long GetStartAddress (void)
{
}
void SetStartAddress (long StartWord)
{
}
Programming Notes and Examples
Issue Date: 01/02/12
Panning to the right.
Panning to the left.
StartWord = 0;
Example 4: Scrolling (Up and Down)
To scroll down, increase the value in the Screen 1 Display Start Address Register by the
number of words in one virtual scan line. To scroll up, decrease the value in the Screen 1
Display Start Address Register by the number of words in one virtual scan line.
Step 1: Determine the number of words in one virtual scanline.
bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160
words_per_line = bytes_per_line / 2 = 160 /2 = 80
Step 2: Scroll up or down
To scroll up.
StartWord = 0;
To scroll down.
return (REG[0D] * 256 +REG[0C];
REG[0C] = StartWord & 0xFF;
REG[0D] = StartWord / 256;
*
Page 29
S1D13704
X26A-G-002-03

Advertisement

Table of Contents
loading

Table of Contents