gr128x32display

download gr128x32display

of 6

Transcript of gr128x32display

  • 7/28/2019 gr128x32display

    1/6

    1

    1

    2

    2

    3

    3

    4

    4

    A A

    B B

    C C

    D D

    Title

    Number RevisionSize

    A

    Date: 12-Mar-2000 Sheet of Fil e: C:\ PFWSCH\GR12632.SCH Drawn By:

    KS0105 128 x 32 LCD

    KS0108 KS0108

    DC/DC CONV. and BIAS

    64 64

    32

    CS0DATA/CTRL

    CS1

    VDDVSSV0VEE

    10K - 20K

    CONTRAST ADJUST

    MODULE

    Vdd2

    3 V0

    Vee18

    BLOCK DIAGRAM

    128 x 32 Graphic M odule

    Pinout:Pin: Function1234567891011121314151617181920

    VssVddV0RSR/WEDB0DB1DB2DB3DB4DB5DB6DB7

    CS0CS1

    /RESETVeeLED+ Vf =4.2V @ 15mALED-

    GND. 0V+5VdcCONTRAST ADJUST INPUTH= DATA, L= INSTRUCTIONSH= READ, L= WRITEENABLE PULSEDATA BUS

    DATA BUS

    LEFT SIDE CHIP SELECT (SEGS 1 - 64)RIGHT SIDE CHIP SELECT (SEGS 65 - 128)

    L= RESET-5Vdc LCD BIAS VOLTAGE

  • 7/28/2019 gr128x32display

    2/6

    NOTES ON INITIALIZING THE 128X32 MODULE

    This module uses two KS0108 Ram enabled segment drivers. The KS0108 has four controlinstructions. They are:

    1. Display ON/OFF

    2. Set Address ( Y or column address 0 - 63 )3. Set Page Address ( X address 0 - 7 ) each page is 64 bytes4. Set Start Line ( line at top of screen 0 - 63 )

    This instruction can also be used to vertically scroll the display.There is also a status read with the msb indicating BUSY status.

    The two KS0108 chips are selected by CS_0 or CS_1.A low on CS_0 selects the left half of the Display (segments 1 - 64).A low on CS_1 selects the right half of the display (segments 65 - 128).

    The KS0108 Display Data ram stores pixel data for the LCD. It is a 64 Column X 64 Rowaddressable array, as shown on the attached drawings. The 64 rows are divided into 8 pages of 8lines. Data is read from or written to the 8 lines of each page directly through DB0 to DB7. On this

    display only four of the eight pages areDisplayed at any time.

    To Write to the display you must :set a page addressset a column addressset a start line addressbegin writing data.

    The column address increments after a write.A reset does not initialize the display ram.Here is a typical sequence to start the display.(Note: this must be done for both halves of the display)

    3EH Display Off 0C0H Set Ram Line 0 to be the initial display line

    0B8H Set Page Address (to page 0)40H Set (Y) Address = 0

    Write 64 bytes of data (initial display data or zeros to clear display ram)Repeat for each display page until display full

    3FH Display ON

    Use the display start line command to access the rest of the display ram. IE if the start line is 0 thenpage 0 is at the top of the display. If it is 8 then page 1 is at the top of the display and so on. You canchange the start line in increments of one to implement a smooth scroll.Note that the KS0108 is strictly dot matrix graphic and does not have an internal charactergenerator . Any characters displayed must be sent as bitmap graphic information. However thisallows you to define any size characters that will fit in the 32 lines.

    The LED backlight on this module is Vf = 4.2V @ 15mA.

  • 7/28/2019 gr128x32display

    3/6

    1

    1

    2

    2

    3

    3

    4

    4

    5

    5

    6

    6

    7

    7

    8

    8

    Title

    Number RevisionSize

    B

    Date: 13-Mar-2000 Sheet of F il e: C :\ PF WS CH \B G_ GR AF.S CH D ra wn B y:

    0 10 20 30 0 10 20 3001234567

    B I T

    1234567

    B I T

    0

    012

    34567

    B I T

    1234567

    B I T

    0

    01234567

    B I T

    1234567

    B I T

    0

    01234567

    B I T

    12

    34567

    B I T

    0

    PAGE 0

    PAGE 1

    PAGE 2

    PAGE 3

    PAGE 4

    PAGE 5

    PAGE 6

    PAGE 7

    ADDRESSES (H)/CS0 /CS1

    01111111

    01001001 1

    0010010 0

    1001001 0

    1101100 0

    0000000 0

    0000010 0

    0000000 0

    1111110

    01234567

    B I T

    1st. KS0108 2nd. KS0108

    NOTE:

    ONLY FOUR RAM PAGES ARE DISPLAYED AT A TIME

    RAM TO DISPLAY MAPPING

  • 7/28/2019 gr128x32display

    4/6

    KS0108B

    LCD Driver IC

    CD-ROM (Edition 4.01) This Data Sheet is subject to change without notice. (C) 1997 SAMSUNG Electronics13 / 18 Page Printed in Korea

  • 7/28/2019 gr128x32display

    5/6

    KS0108B

    LCD Driver IC

    CD-ROM (Edition 4.01) This Data Sheet is subject to change without notice. (C) 1997 SAMSUNG Electronics8 / 18 Page Printed in Korea

  • 7/28/2019 gr128x32display

    6/6

    KS0108B

    LCD Driver IC

    CD-ROM (Edition 4.01) This Data Sheet is subject to change without notice. (C) 1997 SAMSUNG Electronics9 / 18 Page Printed in Korea