S1D13704 Epson Electronics America, Inc., S1D13704 Datasheet - Page 166

no-image

S1D13704

Manufacturer Part Number
S1D13704
Description
LCD Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S1D13704F00A100
Manufacturer:
EPSON
Quantity:
500
Part Number:
S1D13704F00A100
Manufacturer:
EPSON
Quantity:
1 000
Part Number:
S1D13704F00A200
Manufacturer:
EPSON
Quantity:
1 400
Part Number:
S1D13704F00A200
Manufacturer:
EPSON/爱普生
Quantity:
20 000
Page 70
S1D13704
X26A-G-002-03
** This is done because an image in display memory is not rotated with the
** switch to SwivelView mode we are about to make.
*/
pMem = (LPBYTE)MEM_OFFSET;
do {
} while (pMem < (LPBYTE)(MEM_OFFSET + MEM_SIZE));
/*
** SwivelView mode.
*/
/*
** We will use the default SwivelView mode scheme so we have to adjust
** the ROTATED width to be a power of 2.
** (NOTE: current height will become the rotated width)
*/
tmp = 1;
while (Height > (1 << tmp))
Height = (1 << tmp);
OffsetBytes = Height * BitsPerPixel / 8;
/*
** Set:
** 1) Line Byte Count to size of the ROTATED width (i.e. current height)
** 2) Start Address to the offset of the width of the ROTATED display.
**
*/
SET_REG(0x1C, (BYTE)OffsetBytes);
OffsetBytes--;
SET_REG(0x0C, LOBYTE(OffsetBytes));
SET_REG(0x0D, HIBYTE(OffsetBytes));
/*
** Set SwivelView mode.
** Use the non-X2 (default) scheme so we don't have to re-calc the frame
** rate. MCLK will be <= 25 MHz so we can leave auto-switch enabled.
*/
SET_REG(0x1B, 0x80);
/*
** Draw a solid blue 100x100 rectangle centered on the display.
** Starting co-ordinates, assuming a 320x240 display are:
**
*/
for (y = 70; y < 180; y++)
{
*pMem = 0;
pMem++;
(320-100)/2 , (240-100)/2 = 110,70.
tmp++;
(in SwivelView mode the start address registers point to bytes)
/*
Epson Research and Development
Programming Notes and Examples
Vancouver Design Center
Issue Date: 01/02/12

Related parts for S1D13704