Epson Research and Development
Page 9
Vancouver Design Center
Programming Notes and Examples
S1D13704
Issue Date: 01/02/12
X26A-G-002-03
2.1 Frame Rate Calculation
The system the S1D13704 is being configured for dictates certain physical constraints such
as the width and height of the panel and the video system input clock.
The following are the formulae for determining the frame rate of a panel. The frame rate
for a single passive or TFT panel is calculated as follows:
for a dual passive panel the formula is:
where: PCLK
= Pixel clock (in Hz)
HDP
= Horizontal Display Period (in pixels)
HNDP
= Horizontal Non-Display Period (in pixels)
VDP
= Vertical Display Period (in lines)
VNDP
= Vertical Non-Display Period (in lines)
To achieve the desired frame rate the HNDP and VNDP values can be manipulated. The
example below is a generic routine to calculate HNDP and VNDP from a desired frame
rate.
[0F]
0000 0000 (00)
Screen 2 Start Address - set to 0 for initialization
[10]
0000 0000 (00)
[12]
0000 0000 (00)
Memory Address offset - not virtual setup so set to 0
[13]
1111 1111 (FF)
Set the vertical size to the maximum value.
[14]
0000 0011 (03)
[15]
0000 0000 (00)
SetLUT control registers to 0 for this example.
Look-Up Table (LUT) on
page 14
[16]
0000 0000 (00)
[17]
0000 0000 (00)
[18]
0000 0000 (00)
GPIO control and status registers - set to “0”
[19]
0000 0000 (00)
[1A]
0000 0000 (00)
Set the scratch pad bits to “0”.
[1B]
0000 0000 (00)
We are not setting up SwivelView mode so set this register to “0”.
[1C]
0000 0000 (00)
Line Byte Count is only required for SwivelView mode.
[1E],[1F]
0000 0000 (00)
These registers are reserved and should not be written to.
Table 2-1: S1D13704 Initialization Sequence (Continued)
Register
Value (hex)
Notes
See Also
FrameRate
PCLK
HDP
HNDP
+
(
)
VDP
VNDP
+
(
)
×
-----------------------------------------------------------------------------------------
=
FrameRate
PCLK
2
HDP
HNDP
+
(
)
VDP
2
------------
VNDP
+
×
×
---------------------------------------------------------------------------------------------------
=
*