Epson S1D13704 Technical Manual page 141

Embedded memory color lcd controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/12
Example 8: Pan the above SwivelView mode image to the right by 4 pixels then
scroll it up by 6 pixels.
To pan by four pixels the start address needs to be advanced.
1. Calculate the amount to change start address by.
Bytes = Pixels x BitsPerPixel / 8 = 4 x 4 / 8 = 2 bytes
2. Increment the start address registers by the just calculated value.
In this case the value writen to the start address register will be 81h (7Fh + 2 = 81h)
To scroll by 4 lines we have to change the start address by the offset of four lines of display.
1. Calculate the amount to change start address by.
BytesPerLine = LineByteCount = 128
Bytes = Lines x BytesPerLine = 4 x 128 = 512 = 200h
2. Increment the start address registers by the just calculated value
In this case 281h (81h + 200h) will be written to the Screen 1 Start Word Address reg-
ister pair.
Set Screen1 Display Start Word Address LSB (REG[0Ch]) to 81h and Screen1 Display
Start Word Address MSB (REG[0Dh]) to 02h.
*
Page 45
S1D13704
X26A-G-002-03

Advertisement

Table of Contents
loading

Table of Contents