Cirrus-logic AN269 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Cirrus-logic AN269. Cirrus Logic AN269 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 65
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Copyright © Cirrus Logic, Inc. 2005
(All Rights Reserved)
http://www.cirrus.com
Using the EP93xx's Raster Engine
1. INTRODUCTION AND SCOPE
The purpose of this document is to help a user understand how to connect an LCD module to the EP93xx series of
embedded processors from Cirrus Logic. A wide variety of timings and output settings are available, which allows
connection to many color and black-and-white LCD displays. Some timing modes will also allow connection to an
external video DAC, which can be used to drive any type of display.
This application note is focused on the typical usage of certain example LCD screens. As such, the examples were
designed and tested at typical values to show how the LCD controller can be used. If planning to use the LCD con-
troller outside these typical cases, the user should test and verify the application in the target environment. In ad-
dition, this document is not a replacement for the information in the EP93xx User's Guide and the EP93xx Data
Sheet. It should be used in conjunction with these documents. It is highly recommended that the user read the
EP93xx User Guide chapter titled "Raster Engine With Analog/LCD Integrated Timing and Interface" before using
this Application Note.
Throughout this document, signals will be identified in diagrams and equations by their corresponding EP93xx signal
names, unless otherwise specified.
2. HOW TO DETERMINE IF AN LCD IS COMPATIBLE WITH THE EP93XX
The EP93xx raster engine is very versatile, and will work with a variety of LCD display types. In order to determine
if a display is compatible, follow these steps:
1. Check the appendices at the back of this manual to see if the display is listed as an example. If so, use the
specified register settings for that display. Otherwise, proceed to step 2.
2. Examine the waveforms in Figures 9, 14, and 20. If the desired display timings match any of these diagrams
(or vary only in signal polarity), Section 6, 6.2, or 6.3 will describe how to set up the EP93xx raster timing
registers. If the display does not match any of these, refer to “Other Types of Framed Data Displays” on
page 41 for more information. Note that the signals AC, XECL, and YSCL are not discussed in these dia-
grams, but are described in the “Video Timing” section of the Raster Engine chapter of the EP93xx User’s
Guide.
3. After determining that the synchronization signals can be generated by the EP93xx, the appropriate pixel
output mode should be chosen. “General Description of Pixel Output Modes” on page 9 describes this pro-
cess.
If the timing requirements or the pixel input format of the display are not supported, than the display may still be
supported using GPIO pins to generate the appropriate timings. However, this will consume much more processor
time, but may be a viable option for slower/smaller displays.
The versatility of the EP93xx raster engine attempts to cover the most common types of displays. Even though care
has been taken in the design of this block, please keep in mind that not all LCD panels can be supported.
AUG '05
AN269REV1
AN269
Vue de la page 0
1 2 3 4 5 6 ... 64 65

Résumé du contenu

Page 1 - 1. INTRODUCTION AND SCOPE

Copyright © Cirrus Logic, Inc. 2005(All Rights Reserved)http://www.cirrus.comUsing the EP93xx's Raster Engine1. INTRODUCTION AND SCOPEThe purpose

Page 2 - External

10 AN269REV1AN269The output mode “Single 16-bit 565 Pixel Per Clock” is shown in Figure 3. In this mode, each SPCLK will clock outa single pixel, with

Page 3 - AN269REV1 3

AN269AN269REV1 11The output mode “Single 16-bit 555 Pixel Per Clock” is shown in Figure 4. In this mode, each SPCLK will clock outa single pixel, with

Page 4 - SIGNAL GENERATION

12 AN269REV1AN269The output mode “2-2/3 Pixels Per Clock” is shown in Figures 5, 6, and 7. Since this mode is rather complex, onediagram shows data du

Page 5 - 4.1 Counter Offsets

AN269AN269REV1 13In the second SPCLK for 2-2/3 mode, pixel 2’s Red component will be clocked out of P[0]. All of the Red, Green,and Blue components of

Page 6 - 6 AN269REV1

14 AN269REV1AN269In the third SPCLK for 2 2/3 mode, pixel 5’s Green and Red components will be clocked out of P[1:0]. All of the Red,Green, and Blue c

Page 7

AN269AN269REV1 15In “4 Pixels-Per-Shift-Clock mode“, shown in Figure 8, only 1 bit (the MSB) will be available for the Blue and Greencomponents of the

Page 8 - = 19 - 16 - 6

16 AN269REV1AN2696. SETTING UP DISPLAY TIMING6.1 HSYNC/VSYNC-Style DisplaysIn displays using a HSYNC/VSYNC-style timing interface, the following contr

Page 9

AN269AN269REV1 17HSYNCSPCLKBLANKtVSYNCtHACTIVEVCSYNCtHSYNCtDCLKSingle Horizontal LineDATAHSYNCSingle Video FrametVACTIVEBLANKBack Porch Interval tHBAC

Page 10 - (from LUT and Blink Logic)

18 AN269REV1AN2696.1.1 Pixel Data Clock Rate and HClkTotal/VLinesTotalThe pixel clock rate VIDCLK can be determined from the total number of VIDCLK pe

Page 11 - AN269REV1 11

AN269AN269REV1 196.1.2 Horizontal Alignment Signals Timings for a single horizontal line can be seen in Figure 10. To determine when these signals bec

Page 12 - Pins P[17:0]

2 AN269REV1AN2693. GENERATION OF THE VIDEO CLOCK, VIDCLKThe internal video clock (VIDCLK), which drives the raster engine and the external pixel clock

Page 13

20 AN269REV1AN269Next we will determine the appropriate time for the HSYNC signal to become active. As can be seen fromthe diagram, it should become a

Page 14 - 14 AN269REV1

AN269AN269REV1 21The next two values of interest for a horizontal line are the times at which active data should be clockedout. These values determine

Page 15

22 AN269REV1AN2696.1.3 Vertical Alignment SignalsTimings for a single vertical frame can be seen in Figure 12. The timing of the synchronization signa

Page 16 - 6. SETTING UP DISPLAY TIMING

AN269AN269REV1 23then counts down by 1 for each HSYNC time period, regardless of whether SPCLK/DATA is present ornot. When the counter reaches 0, it i

Page 17 - AN269REV1 17

24 AN269REV1AN269The next two values of interest for a frame are the point at which active data should be clocked out. Thesevalues determine when vali

Page 18

AN269AN269REV1 25A timing diagram for this type of display is shown in Figure 14. Signal and timing names are those of thecorresponding EP93xx pins. A

Page 19 - HBACKPORCH

26 AN269REV1AN269HSYNCSPCLKtVCSYNCVCSYNCtHSYNCHSingle Horizontal LineDATAHSYNCSingle Video FrameSPCLKOne SPCLK per Horizontal PixelFirst LineVCSYNC(Ho

Page 20

AN269AN269REV1 276.2.1 VIDCLK and Pixel Data Clock RateFor Frame Type 1 data displays, the SPCLK will be gated such that clock pulses only occur durin

Page 21 - Table 2

28 AN269REV1AN269Note that the number of available video clocks can also be derived by adding up the number of clocks ineach region, but this approach

Page 22 - VFRONTPORCH

AN269AN269REV1 29.HSYNCSPCLKtHSYNCHSingle Horizontal LineDATAOne SPCLK per Horizontal PixelVCSYNC(HorizontalLine 1 ONLY)tSPCLKtHSYNCLtHSYNCSPCLKtSPCLK

Page 23

AN269AN269REV1 3/* Desired SPCLK frequency is passed in as "freq" */int ep93xx_set_video_div(unsigned long freq){/* pdiv, div, psel and esel

Page 24

30 AN269REV1AN269Since the remaining region widths are determined by their respective timing parameters, here are someequations to determine the numbe

Page 25

AN269AN269REV1 316.2.3 Vertical Alignment SignalsThe vertical timing alignment signals are easily determined by looking at Figure 17.The total number

Page 26 - 26 AN269REV1

32 AN269REV1AN269Another result of having no “blank” lines is that the active region covers all of the horizontal lines, so theactive region is the en

Page 27

AN269AN269REV1 33A timing diagram for this type of display is shown in Figure 18. Signal and timing names are those of thecorresponding EP93xx pins. A

Page 28

34 AN269REV1AN269HSYNCSPCLKtVCSYNCVCSYNCtHSYNCHSingle Horizontal LineDATAHSYNCSingle Video FrameSPCLKOne SPCLK per Horizontal PixelFirst LineVCSYNC(Ho

Page 29 - AN269REV1 29

AN269AN269REV1 356.3.1 VIDCLK and Pixel Data Clock RateFor a frame type 2 data display, the SPCLK will be gated such that clock pulses only occur duri

Page 30

36 AN269REV1AN2696.3.2 Horizontal Alignment SignalsTo determine the length of time spent on a single horizontal line, the refresh rate is multiplied b

Page 31

AN269AN269REV1 37Now, the number of VIDCLK periods required for the active region (i.e., region with valid pixel data) canbe determined. In the follow

Page 32

38 AN269REV1AN269that the timing is met by making the quantity larger than it needs to be. The time from the last SPCLK untilthe VCSYNC signal becomes

Page 33

AN269AN269REV1 39Since the remaining region widths are determined by their respective timing parameters, here are someequations to determine the numbe

Page 34 - 34 AN269REV1

4 AN269REV1AN2694. USING THE HORIZONTAL AND VERTICAL COUNTER FOR TIMING-SIGNAL GENERATIONConceptually, all timing synchronization outputs from the EP9

Page 35

40 AN269REV1AN2696.3.3 Vertical Alignment SignalsThe vertical timing alignment signals are easily determined by looking at Figure 21.The total number

Page 36

AN269AN269REV1 41Note that VActiveStop is set such that data will never be stopped due to vertical position. Also, the SPCLKshould not be stopped due

Page 37

42 AN269REV1AN2697. GRAYSCALE LOOK-UP TABLESEach of the Red, Green, and Blue outputs from either the color look-up table (LUT) or data directly from m

Page 38 - 38 AN269REV1

AN269AN269REV1 43** Global Data:* |>I | O | IO<|, |>dataname<|*** END_FUNC *******************************************************

Page 39

44 AN269REV1AN269 int start_position)/* Description:* This allows a small range of LUT entries to be replaced.*** Exception Handling (if a

Page 40

AN269AN269REV1 45Here is the Red grayscale LUT, in the order as would be seen in the EP93xx User’s Guide table “GrayscaleLook-Up Table (GrySclLUT)”. N

Page 41

46 AN269REV1AN269As mentioned in the EP93xx User’s Guide, each pixel from the frame buffer may go through the color LUT,followed by the grayscale LUT,

Page 42 - 7. GRAYSCALE LOOK-UP TABLES

AN269AN269REV1 47The interpretation of this diagram is simple. For the first video frame, if the color Red[7:5] = 001b covers theentire screen, then t

Page 43 - AN269REV1 43

48 AN269REV1AN269For the case of Red[7:5] = 011b, the following output patterns will be generated:For this pixel input value, the pixel output value i

Page 44 - 44 AN269REV1

AN269AN269REV1 49To edit the entries in the grayscale LUT, the first step is to create the pixel pattern for each frame. As notedin the EP93xx User’s

Page 45 - AN269REV1 45

AN269AN269REV1 5When the output of the horizontal down counter rolls over, it will decrement the vertical down counter at one countper horizontal line

Page 46 - Gray Sc ale Generator

50 AN269REV1AN269Table entries that are don’t cares (indicated by gray shading) are written as 0, but can be written as 1. If thepixel value of 010b f

Page 47

AN269AN269REV1 518. RASTER MEMORY BUS BANDWIDTH CALCULATIONSince the raster engine uses the main memory of the EP93xx, the total memory bandwidth shou

Page 48

52 AN269REV1AN269Appendix A: Example HSYNC/VSYNC-Style LCD Display - LG/Philips’s LB064V02-B1The display used in this example is an LG/Philips LB064V

Page 49

AN269AN269REV1 53values of 2, 2.5, and 3. This yields possible values of VDIV. Using those values as PDIV and VDIV, we can computethe error in VIDCLK

Page 50 - 50 AN269REV1

54 AN269REV1AN269HActiveStop = HBlankStopHActiveStop = 22Since no clock gating is required, the HClkStart should be set to HClkTotal and HClkStop shou

Page 51

AN269AN269REV1 55The output mode for this display (taken from table “Output Pixel Transfer Modes“ in the Raster section of the EP93xxUser’s Guide) is

Page 52

56 AN269REV1AN269Appendix B:Example Frame Type 1 Display - Kyocera’s KCS057QV1AJ-G20For this section, we will be using the Kyocera KCS057QV1AJ-G20 3-c

Page 53

AN269AN269REV1 57Once the VIDCLKDIV register has been setup, the actual VIDCLK rate can be used for setting up the horizontalLOAD/HSYNC pulse timing.

Page 54

58 AN269REV1AN269The output mode for this display is 2-2/3 mode, and can be seen in Figures 5, 6, and 7, which yields the connectionsshown in Table 18

Page 55

AN269AN269REV1 59Appendix C:Example 4-BIT STN-Style LCD DisplayThe display used in this example is monochrome STN LCD display as HOSIDEN HLAM6323. The

Page 56

6 AN269REV1AN269Figure 2. Offset for HSync, HActive, VSync and HCLKHSync and Blank must be raised high after the last byte of data is transferred.Fin

Page 57

60 AN269REV1AN269The first step in setting up the EP93XX raster engine for this display involves determining the proper SPCLK rate. Using the followin

Page 58

AN269AN269REV1 61Next, the Horizontal Synchronization Signals can be determined, using the following equations:HClkTotal = tHORIZ - 1HClkTotal = 90 -

Page 59 - AN269REV1 59

62 AN269REV1AN269Figure 24. HOSIDEN HLAM6323 Signal Timing in an EP93xx System(PIXMODE = 0x1401 - 4 Bits per Pixel)Table 20. EP93xx to HOSIDEN HLAM63

Page 60

AN269AN269REV1 63C.1 Frame Buffer Organization, 1 Bit per Pixel, 320 x 240Figure 25. Frame Buffer Organization for HOSIDEN HLAM6323(1 bit per Pixel,

Page 61

64 AN269REV1AN269C.2 Reference Schematic for HOSIDEN HLAM6323 in an EP93xx System5V_D05V_D15V_D25V_D35V_FRAME5V_M5V_CL15V_CL25V_DOFFGNDVEE(-20V)12Jump

Page 62 - HLM6323

AN269AN269REV1 65Contacting Cirrus Logic SupportFor all product questions and inquiries contact a Cirrus Logic Sales Representative. To find one neare

Page 63 - AN269REV1 63

AN269AN269REV1 7The Calculations for HClksTotal areHClksTotal = Number of Horizontal Clocks - 1= 20 -1= 19The Calculations for HSyncStart areHSyncStar

Page 64 - 64 AN269REV1

8 AN269REV1AN269The Calculations for HClkStrt areHClkStrt = HClkstotal - Offset of HClk = 19 - 6 = 13The Calculations for HClkStop areHClkStop = HClks

Page 65 - AN269REV1 65

AN269AN269REV1 95. GENERAL DESCRIPTION OF PIXEL OUTPUT MODESEach display type specifies the number of bits (and therefore bits per color) clocked out

Commentaires sur ces manuels

Pas de commentaire