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

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
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/12
Note
Note
Example 7: Enable alternate SwivelView mode for a 320x240 panel at 4 bpp.
As in the previous example, before switching to SwivelView mode, display memory should
be cleared. Images in display memory are not rotated automatically by hardware and the
garbled image would be visible for a short period of time if video memory is not cleared.
1. Calculate and set the Screen 1 Start Word Address register.
2. Calculate the Line Byte Count.
3. Enable SwivelView mode.
4. Recalculate the frame rate dependents.
This example assumes the alternate SwivelView mode scheme. In this scheme, without
touching the Pixel Clock Select bits the PCLK value will be equal to CLK/2.
The Pixel Clock value has changed so we must calculate horizontal and vertical non-display
times to reach the desired frame rate. Rather than perform the frame rate calculations here
I will refer the reader to the frame rate calculations in Frame Rate Calculation on page 9
and simply "arrive" at the following:
Horizontal Non-Display Period = 88h
Vertical Non-Display Period = 03h
As we have to perform a frame rate calculation for this mode we need to know the fol-
lowing panel characteristics: 320x240 8-bit color to be run at 80 Hz with a 16 MHz in-
put clock.
These examples don’t use the Pixel Clock Select bits. The ability to divide the PCLK
value down further than the default values was added to the S1D13704 to support
SwivelView mode on very small panels.
OffsetBytes = (Width x BitsPerPixel / 8) - 1 = (240 x 4 / 8) - 1 = 119 = 0077h
Set Screen1 Display Start Word Address LSB (REG [0Ch]) to 77h and Screen1 Dis-
play Start Word Address MSB (REG[0Dh]) to 00h.
LineByteCount = Width x BitsPerPixel / 8 = 240 x 4 / 8 = 120 = 78h.
Set the Line Byte Count (REG[1C]) to 78h.
This example uses the alternate SwivelView mode scheme. We will not change the
Pixel Clock Select settings.
Write C0h to the SwivelView Mode register (REG[1Bh])
X26A-G-002-03
S1D13704
Page 43

Related parts for S1D13704