+ All Categories
Home > Documents > Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

Date post: 02-Jun-2018
Category:
Upload: lookb64
View: 233 times
Download: 0 times
Share this document with a friend

of 71

Transcript
  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    1/71

    USING THE

    PICBASIC Plus! COMPILER

    WITH

    GRAPHICS LCD DISPLAYs

    Version 1.0

    Crownhill PIC BASIC Plus compiler - for the 14-bit range of PIC microswww.letbasic.com

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    2/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200193

    5.50. PRINT

    Syntax : PRINT Item{ , Item...}

    Overview : Send Text to an LCD module using the Hitachi 44780 controller or a

    graphic LCD based on the Samsung S6B0108 chipset.

    Operators : Itemmay be a constant, variable, expression, modifier, or string list.There are no operators as such, instead there are modifiers. For ex-ample, if an at sign @ precedes an Item, the ASCII representationfor each digit is sent to the LCD.

    The modifiers are listed below: -

    Modifier Operation

    AT ypos (1 to n),xpos(1 to n)Position the cursor on the LCDBIN{1..16} Send binary digitsCLS Clear the LCD (also creates a 30ms delay)DEC{1..5} Send decimal digitsHEX{1..4} Send hexadecimal digitsREP c\n Send character c repeated n times

    The numbers after the BIN, DEC, and HEX modifiers are optional. Ifthey are omitted, then the default is all the digits that make up the

    value will be displayed.

    The Xpos and Ypos values in the ATmodifier both start at 1. For ex-ample, to place the text HELLO WORLD on line 1, position 1, thecode would be: -

    PRINTAT1, 1, HELLO WORLD

    Example : DIMVar as BYTEDIMWrd as WORD

    PRINTHello World Display the text Hello WorldPRINTVar= , DECVar Display the decimal value of VARPRINTVar= , HEXVar Display the hexadecimal value of VARPRINTVar= , BINVar Display the binary value of VARPRINTVar= , @Var Display the decimal value of VAR

    Declares : There are six DECLARES for use with an alphanumeric LCD andPRINT: -

    DECLARE LCD_TYPE 1or 0, GRAPHICor ALPHAInform the compiler as to the type of LCD that the PRINTcommandwill output to. If GRAPHIC or 1 is chosen then any output by thePRINTcommand will be directed to a graphic LCD based on the

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    3/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200194

    Samsung S6B0108 chipset. A value of 0 or ALPHA, or if the DE-CLARE is not issued will target the standard alphanumeric LCD type

    Targeting the graphic LCD will also enable commands such as PLOT,UNPLOT, LCDGET, and LCDPUT.

    DECLARE LCD_DTPIN PORT.PINAssigns the Port and Pins that the LCDs DT (data) lines will attach to.

    The LCD may be connected to the PICmicro using either a 4-bit busor an 8-bit bus. If an 8-bit bus is used, all 8 bits must be on one port. Ifa 4-bit bus is used, it must be connected to either the bottom 4 or top4 bits of one port. For example: -

    DECLARE LCD_DTPINPORTB.4 Used for 4-line interface.

    DECLARE LCD_DTPINPORTB.0 Used for 8-line interface.

    In the examples above, PortB is only a personal preference. TheLCDs DT lines may be attached to any valid port on the PIC. If theDECLARE is not used in the program, then the default Port and Pin isPortB.4, which assumes a 4-line interface.

    .DECLARE LCD_ENPIN PORT.PINAssigns the Port and Pin that the LCDs EN line will attach to.

    If the DECLARE is not used in the program, then the default Port andPin is PortB.2.

    DECLARE LCD_RSPIN PORT.PINAssigns the Port and Pins that the LCDs RS line will attach to.

    If the DECLARE is not used in the program, then the default Port andPin is PortB.3.

    DECLARE LCD_INTERFACE 4or 8Inform the compiler as to whether a 4-line or 8-line interface is re-quired by the LCD.

    If the DECLARE is not used in the program, then the default interfaceis a 4-line type.

    DECLARE LCD_LINES 1, 2, or 4Inform the compiler as to how many lines the LCD has.

    LCDs come in a range of sizes, the most popular being the 2 line by16 character types. However, there are 4-line types as well. Simplyplace the number of lines that the particular LCD has, into the declare.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    4/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200195

    If the DECLARE is not used in the program, then the default numberof lines is 2.

    Notes : If no modifier precedes an item in a PRINTcommand, then the char-acters value is sent to the LCD. This is useful for sending control

    codes to the LCD. For example: -

    PRINT$FE, 128

    Will move the cursor to line 1, position 1 (HOME).

    Below is a list of useful control commands: -

    Control Command Operation

    $FE, 1 Clear display$FE, 2 Return home (beginning of first line)$FE, $0C Cursor off$FE, $0E Underline cursor on$FE, $0F Blinking cursor on$FE, $10 Move cursor left one position$FE, $14 Move cursor right one position$FE, $C0 Move cursor to beginning of second line$FE, $94 Move cursor to beginning of third line$FE, $D4 Move cursor to beginning of fourth line

    Note that if the command for clearing the LCD is used, then a smalldelay should follow it: -

    PRINT$FE, 1: DELAYMS30

    The above diagram shows the default connections for an alphanu-meric LCD module. In this instance, connected to the 16F84PICmicro.

    RB7VDD

    RB6

    RB5RB4RB3RB2RB1RB0

    13

    RA4RA3RA2RA1RA0

    MCLR

    OSC1

    OSC2

    VSS

    14

    PIC16F84

    C422pF

    C110uF

    C20.1uF

    R14.7k

    5 Volts

    C322pF

    4MHzCrystal

    12

    1110

    9

    8

    7

    6

    3

    2

    1

    18

    17

    5

    4

    16

    15

    0V

    INTELLIGENT LCD

    MODULE

    DB7

    DB6

    DB5

    DB4

    DB3

    DB2

    DB1

    DB0

    EN

    R/W

    RS

    Vo

    Vdd

    Vss

    Contrast47K

    linear

    +5V

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    5/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200196

    Using a Graphic LCD

    Once a graphic LCD has been chosen using the DECLARELCD_TYPEdirective, all PRINToutputs will be directed to that LCD.

    The standard modifiers may also be used with the graphics LCD: -

    AT ypos (0 to 7),xpos (0 to 20)Position the cursor on the LCDBIN{1..16} Send binary digitsCLS Clear the LCDDEC{1..5} Send decimal digitsHEX{1..4} Send hexadecimal digitsREP c\n Send character c repeated n times

    Most of the above modifiers still work in the expected manner, how-

    ever, the ATmodifier now starts at Ypos 0 and Xpos 0, where values0,0 will be the top left corner of the LCD.

    There are also four new modifiers. These are: -

    FONT 0 to n Choose the nthfont, if available

    INVERSE 0-1 Invert the characters sent to the LCDOR 0-1 OR the new character with the originalXOR 0-1 XOR the new character with the original

    Once one of the four new modifiers has been enabled, all futurePRINTcommands will use that particular feature until the modifier isdisabled. For example: -

    Enable inverted characters from this pointPRINTAT0, 0, INVERSE1, HELLO WORLDPRINT AT 1, 0 , STILL INVERTED Now use normal charactersPRINTAT2, 0, INVERSE0, NORMAL CHARACTERS

    If no modifiers are present, then the characters ASCII representationwill be displayed: -

    Print characters A and BPRINTAT0, 0, 65 , 66

    Declares : There are six declares associated with a graphic LCD.

    DECLARE LCD_DTPORT PORTAssign the port that will output the 8-bit data to the graphic LCD.

    If the DECLARE is not used, then the default port is PORTD.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    6/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200197

    DECLARE LCD_RWPIN PORT.PINAssigns the Port and Pin that the graphic LCDs RW line will attach to.

    If the DECLARE is not used in the program, then the default Port andPin is PortE.0.

    DECLARE LCD_CS1PIN PORT.PINAssigns the Port and Pin that the graphic LCDs CS1 line will attachto.

    If the DECLARE is not used in the program, then the default Port andPin is PortC.0.

    DECLARE LCD_CS2PIN PORT.PINAssigns the Port and Pin that the graphic LCDs CS2 line will attach

    to.

    If the DECLARE is not used in the program, then the default Port andPin is PortC.2.

    Note : Along with the new declares, two of the existing LCD declares mustalso be used. Namely, RS_PIN and EN_PIN.

    DECLARE INTERNAL_FONT ON- OFF, 1or 0The graphic LCDs that are compatible with PICBASIC PLUS are non-

    intelligent types, therefore, a separate character set is required. Thismay be in one of two places, either externally, in an I2C eeprom, or in-

    ternally in a CDATAtable.

    If the DECLARE is omitted from the program, then an external font isthe default setting.

    If an external font is chosen, the I2C eeprom must be connected to the

    specified SDA and SCL pins (as dictated by DECLARE SDA and DE-CLARE SCL).

    If an internal font is chosen, it must be on a PIC device that has selfmodifying code features, such as the 16F87X range.

    The CDATA table that contains the font must have a label, namedFONT: preceding it. For example: -

    FONT:- { data for characters 0 to 64 }CDATA$7E , $11, $11, $11, $7E, $0 Chr 65 ACDATA$7F, $49, $49, $49, $36, $0 Chr 66 B{ rest of font table }

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    7/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200198

    Notice the dash after the fonts label, this disables any bank switchingcode that may otherwise disturb the location in memory of the CDATAtable.

    The font table may be anywhere in memory, however, it is best placed

    after the main program code.

    The font is built up of an 8x6 cell, with only 5 of the 6 rows, and 7 ofthe 8 columns being used for alphanumeric characters. See the dia-gram below.

    However, if a graphic character is chosen (chr 0 to 31), the whole ofthe 8x6 cell is used. In this way, large fonts and graphics may be eas-ily constructed.

    A list of the graphic characters is shown at the end of the PRINTde-scription.

    The character set itself is 128 characters long (0 -127). Which meansthat all the ASCII characters are present, including $, %, &, # etc.

    There are two programs on the compilers CDROM, that are for usewith internal and external fonts. INT_FONT.BAS, contains a CDATAtable that may be cut and pasted into your own program if an internal

    font is chosen. EXT_FONT.BAS, writes the character set to a 24C32I2C eeprom for use with an external font. Both programs are fully com-

    mented.

    $7E

    $00

    $11

    $11

    $11

    $7E

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    8/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 200199

    DECLARE FONT_ADDR 0to 7Set the slave address for the I

    2C eeprom that contains the font.

    When an external source for the font is used, it may be on any one of8 eeproms attached to the I

    2C bus. So as not to interfere with any

    other eeproms attached, the slave address of the eeprom carrying thefont code may be chosen.

    If the DECLARE is omitted from the program, then address 0 is thedefault slave address of the font eeprom.

    Important : Because of the complexity involved with interfacing to the graphicLCD, fiveof the eight stack levels available are used when the PRINTcommand is issued with an external font. Therefore, be aware that if

    PRINTis used within a subroutine, you must limit the amount ofsub-routine nesting that may take place.

    If an internal font is implemented, then only four stack levels areused.

    If the default setting of PORTE is used for the LCDs CS1, CS2, andRW pin connections, then these pins should be set to digital by issu-ing the following line of code near the beginning of the program: -

    ADCON1= 7 Set PORTA and PORTE to all digital

    You will need to refer to the PICs datasheet for ADCON1 settings ifPORTA is to be used for analogue inputs.

    The diagram showsthe connections requiredfor an external font.The eeprom hasa slave address of 0.If an internal font isused, then theeeprom may beomitted.

    RB7

    VDD

    RB6RB5RB4RB3RB2RB1RB0

    RA4RA3RA2RA1RA0

    MCLR

    OSC1

    OSC2

    VSS

    32

    PIC16F877

    C4

    15pF

    C20.1uF

    C110uF

    C3

    15pF

    5 Volts

    26

    RC0RC1RC2RC3RC4RC5RC6RC7

    VSS

    RA5

    20MHz

    Crystal

    0V

    R14.7k

    25

    24

    23

    18

    17

    16

    15

    40

    39

    38

    37

    36

    35

    34

    33

    7

    6

    5

    4

    3

    2

    3112

    14

    13

    1

    RD0RD1RD2RD3RD4RD5RD6RD7

    RE0RE1RE2VDD

    11

    10

    9

    8

    30

    29

    28

    27

    22

    21

    20

    19

    5 Volts

    Contrast47k

    VCC

    WP

    SCL

    A1A2

    VSS

    24C32

    7

    8

    A0

    SDA

    1

    2

    3

    4

    6

    5

    2x4.7k

    5 Volts

    64x128

    DOT MATRIX

    GRAPHIC LCD

    DB7

    DB6

    DB5

    DB4

    DB3

    DB2

    DB1

    DB0

    EN

    R/W

    RS

    Vo

    Vcc

    Gnd

    CS1

    CS2

    RST

    -Vout

    120

    LEDA

    LEDK

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    9/71

    PICBASIC PLUS Compiler

    Copyright Crownhill 2001100

    The below diagram lists the graphic characters available. For exam-ple, to display a single horizontal bar, the BASIC code would be: -

    PRINTAT0, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8

    Any of the character set may be altered to suit your personal needs,however, characters 26 to 31 are left blank to be used for user de-fined characters.

    Symbol Code

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    Symbol Code

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    10/71

    Date : 2000/10/27 AMPIRE CO., LTD. 3

    1 FEATURES

    (1) Display format : 128 64 dot-matrix ; 1/ 64 duty.

    (2) Construction : STN / FSTN LCD, Bezel, Zebra, Heat Seal and PCB.

    (3) Optional Edge LED or EL backlight.

    (4) Controller : KS0108B.

    (5) 5V single power input. Built-in DC/DC converter for LCD driving.

    (6) Normal / Extended temperature type.

    2 NUMBERING SYSTEM

    AG-12864C _ _ _ _ - _

    1 2 3 4 5

    No Code Value Description Remark

    G STN gray type LCD

    Y STN yellow green type LCD

    S STN negative type LCD

    1

    F FSTN type LCD

    LCD Type

    A Reflective type / 6:00 view

    B Reflective type / 12:00 view

    I Transflective type / 6:00 view

    J Transflective type / 12:00 view

    T Negative type / 6:00 view

    2

    U Negative type / 12:00 view

    Polarizer / Viewing Angel

    None Without backlight

    Q 5V Edge type LED

    3

    E EL

    Backlight type

    None Without backlight

    Y Yellow-green (LED)

    B Blue (EL)

    4

    W White (EL, LED)

    Backlight color

    None Normal temperature type5

    H Extended temperature type

    LCM temperature type

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    11/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    12/71

    Date : 2000/10/27 WWW.LETBASIC.COM 5

    4 ELECTRO-OPTICAL CHARACTERISTICS

    Parameter Symbol Condition Min Typ Max Unit Note

    ----- Electronic Characteristics -----

    Logic CircuitSupply Voltage

    VDD-VSS -- 4.5 5.0 5.5 V

    -20 C 8.4 9.2 10.0

    0C 8.4 9.2 10.0

    25C 8.4 9.2 10.0

    50C 8.4 9.2 10.0

    LCD DrivingVoltage

    VDD-VO

    70 C 8.4 9.2 10.0

    V 0 ~ 50 C for

    Normal Temp.

    type

    -20 ~ 70 C for

    Extended Temp.

    type

    VIH -- 0.7 VDD -- VDD VInput Voltage

    VIL -- VSS -- 0.3 VDD VLogic Supply

    Current

    IDD VDD = 5V -- 3 4 mA

    ----- Optical Characteristics -----

    STN type -- 4.2 --Contrast CR

    FSTN type 7

    Note 1

    Rise Time tr 25C -- 140 -- ms

    Fall Time tf 25C -- 240 -- ms

    Note 2

    f -- 40 --b -- 35 --

    l -- 35 --

    Viewing AngleRange

    r

    25C &CR2

    -- 35 --

    Deg.Note 3

    Frame Frequency fF 25C -- 70 -- Hz

    ----- Yellow-green LED Back-light Characteristics -----

    Forward Voltage VF -- -- 4.05 4.3 V Supply Voltage

    between A&K

    Forward Current IF VF=4.05V -- 100 -- mABare LED Luminous intensity VF=4.05V -- 20 -- cd/m2

    LCM Luminous intensity VF=4.05V -- 7 -- cd/m2

    A

    KA

    K

    Active Area

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    13/71

    Date : 2000/10/27 WWW.LETBASIC.COM 6

    ----- White Edge LED Back-light Characteristics -----

    Forward Voltage VF -- 7.2 7.6 8.0 V Supply Voltagebetween A&K

    Forward Current IF VF=7.6V -- 100 -- mA

    Bare LED Luminous intensity VF=7.6V -- 30 -- cd/m2

    LCM Luminous intensity VF=7.6V -- 10 -- cd/m2

    A

    K

    A

    K

    Parameter Min Typ Max Unit Note

    ----- EL Back-light Characteristics -----

    Driving Voltage -- 110 -- Vrms

    Frequency -- 400 -- Hz

    Bare EL Luminous intensity -- 50 -- cd/m2

    LCM Luminous intensity -- 15 -- cd/m2

    (NOTE 1) Contrast ratio :

    CR = (Brightness in OFF state) / (Brightness in ON state)

    ( NOTE 2 ) Response time :

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    14/71

    Date : 2000/10/27 WWW.LETBASIC.COM 7

    (NOTE 3) Viewing angle

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    15/71

    Date : 2000/10/27 WWW.LETBASIC.COM 8

    5 BLOCK DIAGRAM & POWER SUPPLY

    64

    COM Driver

    KS0107

    LCD Panel

    128 x 64 Dots

    SEG Driver

    KS0108B

    64

    RS, R/W, E, /RES,

    DB0 - DB7

    SEG Driver

    KS0108B

    64

    LCD BiasCircuit

    DC/DC

    Converter

    CS1

    CS2

    V0,V2,V3,

    V5,VEE

    V0,V1,V4,

    V5,VEE

    M,FRM,

    CLK1,CLK2,

    CL2

    LCM

    VEE

    (-10V)

    VO

    VDD

    VSS

    VDD

    EL Back-light

    EL1

    EL2

    AC110V(400Hz)

    LCM

    LED Back-lightLED_A

    LED_K

    5V4.05V

    LCM

    Using LED Back-light

    Using EL Back-light

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    16/71

    Date : 2000/10/27 WWW.LETBASIC.COM 9

    6 PIN CONNECTIONS

    No. Symbol Function

    1 /CSA Chip Selection For ICA

    2 /CSB Chip Selection For ICB

    3 VSS Ground (0V)

    4 VDD Supply Voltage for Logic (+5V)

    5 VO Contrast adjustment

    6 D/I Data or Instruction

    7 R/W Read or Write

    8 E Enable signal

    9-16 DB0-DB7 Data Bus Line

    17 /RST Reset

    18 VEE Negative Power Supply Output ( -5V )

    19 LEDA LED Back-light Power Supply + (5V)

    20 LEDK LED Back-light Power Supply - (5V)

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    17/71

    Date : 2000/10/27 WWW.LETBASIC.COM 10

    7 TIMING CHARACTERISTICS

    Item Symbol Min Typ Max Unit

    Enable Cycle Time tCYCLE 1000 - - ns

    High Level PWEH 450 - - nsEnable Pulse WidthLow Level PWEL 450 - - ns

    Enable Rise & Fall Time tER,tEF - - 25 ns

    Address Set-Up Time tAs 140 - - ns

    Address Hold Time tAH 10 - - ns

    Data Set-Up Time tDSW 200 - - ns

    Data Delay Time tDDR -- - 320 ns

    Data Hold Time(Write) tDHW 10 - - ns

    Data Hold Time(Read) tDHW 20 - - ns

    Write Timing Chart

    tCYCLE

    PWEL

    PWEH

    tAS

    tAS

    tAH

    tDHWtDSW

    tERtEF

    E

    R/W

    CS,D/I

    DB0 DB7

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    18/71

    Date : 2000/10/27 WWW.LETBASIC.COM 11

    Read Timing Chart

    tCYCLE

    PWELPWEH

    tAS

    tAS

    tAH

    TDHR

    tERtEF

    E

    R/W

    CS,D/I

    DB0 DB7

    TDDR

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    19/71

    Date : 2000/10/27 WWW.LETBASIC.COM 12

    7.1 Power ON/OFF Sequence

    VDD

    VO

    Signal

    POWER ON SEQUENCE

    0~50 ms

    VSS

    VSS

    VSS

    T!20 ms

    T!0

    ms

    POWER OFF SEQUENCE

    0 ~ 50 ms

    VDD

    VO

    Signal

    VSS

    VSS

    VSS

    T!20 ms

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    20/71

    Date : 2000/10/27 WWW.LETBASIC.COM 13

    8 INSTRUNTION SET

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    21/71

    Date : 2000/10/27 WWW.LETBASIC.COM 14

    9 QUALITY AND RELIABILITY

    9.1 TEST CONDITIONS

    Tests should be conducted under the following conditions :

    Ambient temperature : 25 5C

    Humidity : 60 25% RH.

    9.2 SAMPLING PLAN

    Sampling method shall be in accordance with MIL-STD-105E , level II, normal

    single sampling plan .

    9.3 ACCEPTABLE QUALITY LEVEL

    A major defect is defined as one that could cause failure to or materially reduce

    the usability of the unit for its intended purpose. A minor defect is one that does not

    materially reduce the usability of the unit for its intended purpose or is an infringement from

    established standards and has no significant bearing on its effective use or operation.

    9.4 APPEARANCE

    An appearance test should be conducted by human sight at approximately 30 cm

    distance from the LCD module under flourescent light. The inspection area of LCD panel

    shall be within the range of following limits.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    22/71

    Date : 2000/10/27 WWW.LETBASIC.COM 15

    9.5 INSPECTION QUALITY CRITERIA

    Item Description of defects Class of

    Defects

    Acceptable level

    (%)

    Function Short circuit or Pattern cut Major 0.65

    Dimension Deviation from drawings Major 1.5

    Ave . dia . D area A area B

    D0.2 Disregard

    0.2

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    23/71

    Date : 2000/10/27 WWW.LETBASIC.COM 16

    9.6 RELIABILITY

    Test ConditionsTest Item

    Normal Temp. type Extended Temp. typeNote

    High Temperature Operation 503C , t=96 hrs 703C , t=96 hrs

    Low Temperature Operation 03C , t=96 hrs -203C , t=96 hrs

    High Temperature Storage 703C , t=96 hrs 803C , t=96 hrs 1,2

    Low Temperature Storage -203C , t=96 hrs -303C , t=96 hrs 1,2

    Temperature Cycle

    -20C ~ 25C ~ 70C

    30 m in. 5 min. 30 min.

    ( 1 cycle )

    Total 5 cycle

    -30C ~ 25C ~ 80C

    30 min. 5 min. 30 min.

    ( 1 cycle )

    Total 5 cycle

    1,2

    Humidity Test 40 C, Humidity 90%, 96 hrs 1,2

    Vibration Test (Packing)

    Sweep frequency : 10 ~ 55 ~ 10 Hz/1min

    Amplitude : 0.75mmTest direction : X.Y.Z/3 axis

    Duration : 30min/each axis

    2

    Note 1 : Condensation of water is not permitted on the module.

    Note 2 : The module should be inspected after 1 hour storage in normal conditions

    (15-35C , 45-65%RH).

    Definitions of life end point :

    !

    Current drain should be smaller than the specific value.! Function of the module should be maintained.

    ! Appearance and display quality should not have degraded noticeably.

    ! Contrast ratio should be greater than 50% of the initial value.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    24/71

    Date : 2000/10/27 WWW.LETBASIC.COM 17

    10 HANDLING PRECAUTIONS

    (1)A LCD module is a fragile item and should not be subjected to strong mechanical shocks.

    (2)Avoid applying pressure to the module surface. This will distort the glass and cause a

    change in color.

    (3)Under no circumstances should the position of the bezel tabs or their shape be modified.

    (4)Do not modify the display PCB in either shape or positioning of components.

    (5)Do not modify or move location of the zebra or heat seal connectors.

    (6)The device should only be soldered to during interfacing. Modification to other areas of

    the board should not be carried out.

    (7)In the event of LCD breakage and resultant leakage of fluid do not inhale, ingest or make

    contact with the skin. If contact is made rinse immediately.

    (8)When cleaning the module use a soft damp cloth with a mild solvent, such as Isopropyl or

    Ethyl alcohol. The use of water, ketone or aromatic is not permitted.

    (9)Prior to initial power up input signals should not be applied.

    (10)Protect the module against static electricity and observe appropriate anti-static

    precautions.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    25/71

    Date : 2000/10/27 WWW.LETBASIC.COM 18

    11 OUTLINE DIMENSION

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    26/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    1

    INTRODUCTION

    The S6B0107 (TQFP type: S6B2107) is an LCD driver LSI with 64 channel outputs for dot matrix liquid

    crystal graphic display systems. This device provides 64 shift registers and 64 output drivers. Itgenerates the timing signal to control the S6B0108 (64 channel segment driver TQFP type: S6B2108).The S6B0107 is fabricated by low power CMOS high voltage process technology, and is composed of theliquid crystal display system in combination with the S6B0108 (64 channel segment driver).

    FEATURES

    Dot matrix LCD common driver with 64 channel output

    64-bit shift register at internal LCD driver circuit

    Internal timing generator circuit for dynamic display

    Selection of master/ slave mode

    Applicable LCD duty: 1/ 48, 1/ 64, 1/ 96, 1/ 128

    Power supply voltage: + 5V 10%

    LCD driving voltage: 8V - 17V (VDD-VEE)

    Interface

    Driver

    COMMON SEGMENTController

    Other S6B0107 S6B0108 MPU

    High voltage CMOS process

    100QFP / 100TQFP or bare chip available

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    27/71

    64 CH SEGMENT DRIVER FOR DOT MATRIX LCD

    June. 2000.

    Ver. 0.0

    S6B0108

    Contents in this document are subject to change without notice. No part of this document may be reproduced

    or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express

    written permission of LCD Driver IC Team.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    28/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    2

    INTRODUCTION

    The S6B0108 is a LCD driver LSI with 64 channel output for dot matrix liquid crystal graphic display systems.

    This device consists of the display RAM, 64 bit data latch, 64 bit drivers and decoder logic. It has the internal dis-

    play RAM for storing the display data transferred from a 8 bit micro controller and generates the dot matrix Iiquid

    crystal driving signals corresponding to stored data. The S6B0108 composed of the liquid crystal display systemin combination with the S6B0107 (64 channel common driver).

    FEATURES

    Dot matrix LCD segment driver with 64 channel output

    Input and output signal

    - Input: 8 bit parallel display data control signal from MPU divided bias voltage

    (V0R, V0L, V2R, V2L, V3R, V3L, V5R, V5L)

    - Output: 64 channel for LCD driving.

    Display data is stored in display data RAM from MPU.

    Interface RAM

    - Capacity: 512 bytes (4096 bits)

    - RAM bit data: RAM bit data = 1: On

    RAM bit data = 0: Off

    Applicable LCD duty: 1/32-1/64

    LCD driving voltage: 8V-17V (VDD-VEE)

    Power supply voltage: + 5V 10%

    Interface

    Drivers

    Common Segment Controller

    S6B0107 Other S6B0108 MPU

    High voltage CMOS process.

    Bare chip available

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    29/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    3

    BLOCK DIAGRAM

    InstructionDecoder

    LCD Driver

    Data Latch

    Display Data RAM512 8 = 4096bits

    DisplayOn/Off

    Disp

    lay

    Start

    Line

    Reg

    ister

    I/OBu

    ffer

    88

    6

    3

    6

    S64

    S63

    S2

    S1

    V5R

    V3R

    V2R

    V0R

    M

    V5L

    V3L

    V2L

    V0L

    FRM

    CL

    ADC

    RSTB

    E

    RS

    R/W

    CS3

    CS2BCS1B

    CLK2

    CLK1

    DB

    Input

    Register

    Output

    Register

    Busy

    Y-Counter

    Y-CounterX-Decoder

    Z-Deco

    der

    Page

    Se

    lec

    tor

    6 64

    1

    6

    64

    64

    64

    8

    8

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    30/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    4

    PAD DIAGRAM

    3 2 1 100

    99

    98

    97

    96

    95

    94

    93

    92

    91

    90

    89

    88

    87

    86

    85

    84

    83

    82

    81

    80

    79

    78

    VDD

    M ADC

    FRM

    E CLK1

    CLK2

    CL

    RS

    R/W

    RSTB

    CS1B

    CS2B

    CS3

    NC

    NC

    NC

    DB7

    DB6

    DB5

    DB4

    DB3

    DB2

    DB1

    DB0

    VSS

    4

    5

    6

    7

    8

    9

    10

    11

    12

    1314

    15

    16

    17

    18

    19

    20

    21

    22

    2324

    25

    26

    27

    28

    29

    V3R

    V2R

    V5R

    V0R

    VEE2

    S64

    S63

    S62

    S61

    S60S59

    S58

    S57

    S56

    S55

    S54

    S53

    S52

    S51

    S50S49

    S48

    S47

    S46

    S45

    S44

    Chip size: 4090 4020PAD size: 100 100

    Unit :m

    (0, 0) X

    Y

    77

    76

    75

    74

    73

    72

    71

    70

    69

    6867

    66

    65

    64

    63

    62

    61

    60

    59

    5857

    56

    55

    54

    53

    52

    V3L

    V2L

    V5L

    V0L

    VEE1

    S1

    S2

    S3

    S4

    S5S6

    S7

    S8

    S9

    S10

    S11

    S12

    S13

    S14

    S15S16

    S17

    S18

    S19

    S20

    S21

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    51

    S43

    S42

    S41

    S40

    S39

    S38

    S37

    S36

    S35

    S34

    S33

    S32

    S31

    S30

    S29

    S28

    S27

    S26

    S25

    S24

    S23

    S22

    There is mark of S6B0108 on the bottom left in the chip.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    31/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    5

    PAD CENTER COORDINATES

    Coordinate Coordinate CoordinatePAD

    Number

    PAD

    Name X Y

    Pad

    Number

    Pad

    Name X Y

    Pad

    Number

    Pad

    Name X Y

    1 ADC -1140 1845 35 S38 -687 -1845 69 S4 1882 791

    2 M -1275 1845 36 S37 -562 -1845 70 S3 1882 916

    3 VDD -1410 1845 37 S36 -437 -1845 71 S2 1882 1041

    4 V3R -1882 1809 38 S35 -312 -1845 72 S1 1882 1166

    5 V2R -1882 1684 39 S34 -187 -1845 73 VEE1 1882 1310

    6 V5R -1882 1559 40 S33 -62 -1845 74 V0L 1882 1435

    7 V0R -1882 1434 41 S32 62 -1845 75 V5L 1882 1559

    8 VEE2 -1882 1309 42 S31 187 -1845 76 V2L 1882 1684

    9 S64 -1882 1165 43 S30 312 -1845 77 V3L 1882 1809

    10 S63 -1882 1040 44 S29 437 -1845 78 VSS 1412 1845

    11 S62 -1882 915 45 S28 562 -1845 79 DB0 1277 1845

    12 S61 -1882 790 46 S27 687 -1845 80 DB1 1142 1845

    13 S60 -1882 665 47 S26 812 -1845 81 DB2 1007 1845

    14 S59 -1882 540 48 S25 937 -1845 82 DB3 882 1845

    15 S58 -1882 415 49 S24 1062 -1845 83 DB4 757 1845

    16 S57 -1882 290 50 S23 1187 -1845 84 DB5 632 1845

    17 S56 -1882 165 51 S22 1487 -1845 85 DB6 507 1845

    18 S55 -1882 40 52 S21 1882 -1379 86 DB7 382 1845

    19 S54 -1882 -84 53 S20 1882 -1239 87 NC

    20 S53 -1882 -209 54 S19 1882 -1099 88 NC

    21 S52 -1882 -334 55 S18 1882 -959 89 NC22 S51 -1882 -459 56 S17 1882 -834 90 CS3 245 1845

    23 S50 -1882 -584 57 S16 1882 -709 91 SC2B 120 1845

    24 S49 -1882 -709 58 S15 1882 -584 92 SC1B -5 1845

    25 S48 -1882 -834 59 S14 1882 -459 93 RSTB -130 1845

    26 S47 -1882 -959 60 S13 1882 -334 94 R/W -255 1845

    27 S46 -1882 -1099 61 S12 1882 -209 95 RS -380 1845

    28 S45 -1882 -1239 62 S11 1882 -84 96 CL -505 1845

    29 S44 -1882 -1379 63 S10 1882 41 97 P2 -630 1845

    30 S43 -1487 -1845 64 S9 1882 166 98 P1 -755 1845

    31 S42 -1187 -1845 65 S8 1882 291 99 E -880 1845

    32 S41 -1062 -1845 66 S7 1882 416 100 FRM -1005 1845

    33 S40 -937 -1845 67 S6 1882 541

    34 S39 -812 -1845 68 S5 1882 666

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    32/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    6

    PIN DESCRIPTION

    Table 1. Pin Description

    Pin Number

    QFP(TQFP)Symbol

    Input /

    OutputDescription

    3(1)

    78(76)

    73(71), 8(6)

    VDDVSS

    VEE1.2

    Power

    For internal logic circuit (+5V 10%)

    GND (0V)

    For LCD driver circuit

    VSS = 0V, VDD = +5V 10%, VDD-VEE = 8V - 17V

    VEE1 and VEE2 is connected by the same voltage.

    74(72), 7(5)

    76(74), 5(3)

    77(75), 4(2)

    75(73), 6(4)

    V0L, V0R

    V2L, V2R

    V3L, V3R

    V5L, V5R

    Power

    Bias supply voltage terminals to drive the LCD.

    Select Level

    V0L(R), V5L(R)

    Non-Select Level

    V2L(R), V3L(R)

    V0L and V0R (V2L & V2R, V3L & V3R, V5L & V5R) should be

    connected by the same voltage.

    92(89)

    91(87)

    90(86)

    CS1B

    CS2B

    CS3

    Input

    Chip selection

    In order to interface data for input or output, the terminals

    have to be CS1B = L, CS2B = L, and CS3 = H.

    2(100) M Input Alternating signal input for LCD driving.

    1(99) ADC Input

    Address control signal to determine the relation between Y

    address of display RAM and terminals from which the data is

    output.

    ADC = H Y0: S1 - Y63: S64

    ADC = L Y0: S64 - Y63: S1

    100(98) FRM Input

    Synchronous control signal.

    Presets the 6-bit Z counter and synchronizes the common

    signal with the frame signal when the frame signal becomeshigh.

    99(97) E Input

    Enable signal.

    Write mode (R/W = L) data of DB is latched at the

    falling edge of E.

    Read mode (R/W = H) DB appears the reading data

    while E is at high level.

    98(96)

    97(95)

    CLK1

    CLK2Input

    2 phase clock signal for internal operation.

    Used to execute operations for input/output of display RAM

    data and others.

    96(94) CL Input

    Display synchronous signal.

    Display data is latched at rising time of the CL signal andincrements the Z-address counter at the CL falling time.

    95(93) RS Input

    Data or Instruction.

    RS = H DB: Display RAM data

    RS = L DB: Instruction data

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    33/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    7

    Table 1. Pin Description (Continued)

    Pin Number

    QFP(TQFP)Symbol

    Input /

    OutputDescription

    94(92) R/W Input

    Read or Write.

    R/W = H Data appears at DB and can be read by the

    CPU while E = H, CS1B = L, CS2B = L and CS3 = H .

    R/W = L Display data DB can be written at falling of E

    when CS1B = L, CS2B = L and CS3 = H.

    79-86

    (77-84)DB0-DB7 Input/Output

    Data bus.

    Three state I/O common terminal.

    72-9

    (70-7)S1-S64 Output

    LCD segment driver output.

    Display RAM data 1: On

    Display RAM data 0: Off (relation of display RAM data & M)

    M

    L

    Data

    L

    H

    Output Level

    L

    H

    H

    V2

    V0

    V3

    V5

    93(91) RSTB Input

    Reset signal.

    When RSTB=L,

    - ON / OFF register becomes set by 0. (display off)

    Display start line register becomes set by 0 (Z-address 0

    set,

    display from line 0)

    After releasing reset, this condition can be changed only by

    instruction.

    87(85), 88(88)

    89(90) NC No connection. (open)

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    34/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    8

    MAXIMUM ABSOLUTE LIMIT

    Characteristic Symbol Value Unit Note

    Operating voltage VDD -0.3 to +7.0 V (1)

    Supply voltage VEE VDD-19.0 to VDD+0.3 V (4)

    VB -0.3 to VDD+0.3 V (1), (3)Driver supply voltage

    VLCD VEE-0.3 to VDD+0.3 V (2)

    Operating temperature TOPR -30 to +85 C

    Storage temperature TSTG -55 to +125 C

    NOTES:1. Based on VSS= 0V.

    2. Applies the same supply voltage to VEE1and VEE2. VLCD=VDD-VEE.

    3. Applies to M, FRM, CL, RSTB, ADC, CLK1, CLK2, CS1B, CS2B, CS3, E, R/W, RS and DB0 - DB7.

    4. Applies to V0L(R), V2L(R), V3L(R) and V5L(R).

    Voltage level: VDD V0L = V0R V2L = V2R V3L = V3R V5L = V5R VEE.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    35/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    9

    ELECTRICAL CHARACTERISTICS

    DC CHARACTERISTICS (VDD = +5V 10%, VSS = 0V, VDD-VEE = 8 to 17V, Ta =-30 to +85C)

    Characteristic Symbol Condition Min Typ Max Unit Note

    VIH1 - 0.7VDD - VDD V (1)Input high voltage

    VIH2 - 2.0 - VDD V (2)

    VIL1 - 0 - 0.3VDD V (1)Input low voltage

    VIL2 - 0 - 0.8 V (2)

    Output high voltage VOH IOH = -200A 2.4 - - V (3)

    Output low voltage VOL IOL = 1.6mA - - 0.4 V (3)

    Input leakage current ILKG VIN = VSS- VDD -1.0 - 1.0 A (4)

    Three-state(off) input

    current

    ITSL VIN = VSS- VDD -5.0 - 5.0 A (5)

    Driver input leakage

    currentIDIL VIN = VEE- VDD -2.0 - 2.0 A (6)

    IDD1 During display - - 100 A (7)

    Operating currentIDD2

    During access

    Access cycle = 1MHz- - 500 A (7)

    On resistance RONVDD-VEE = 15V

    ILOAD = 0.1mA- - 7.5 K (8)

    NOTES:1. CL, FRM, M RSTB, CLK1, CLK2

    2. CS1B, CS2B, CS3, E, R/W, RS, DB0 - DB7

    3. DB0 - DB7

    4. Except DB0 - DB7

    5. DB0 - DB7 at high impedance

    6. V0L(R), V2L(R), V3L(R), V5L(R)

    7. 1/64 duty, FCLK = 250kHz, frame frequency = 70HZ, output: no load8. VDD- VEE= 15.5V

    V0L(R) > V2L(R) = VDD- 2/7 (VDD-VEE) > V3L(R) = VEE+ 2/7 (VDD-VEE) > V5L(R)

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    36/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    10

    AC CHARACTERISTICS (VDD = +5V 10%, VSS = 0V, Ta =-30 to +85C)

    Clock Timing

    Characteristic Symbol Min Typ Max Unit

    CLK1, CLK2 cycle timetCY 2.5 - 20 s

    CLK1 "low" level width tWL1 625 - -

    CLK2 "low" level width tWL2 625 - -

    CLK1 "high" level width tWH1 1875 - -

    CLK2 "high" level width tWH2 1875 - -

    CLK1-CLK2 phase difference tD12 625 - -

    CLK2-CLK1 phase difference tD21 625 - -

    CLK1, CLK2 rise time tR - - 150

    CLK1, CLK2 fall time tF

    - - 150

    ns

    CLK1

    CLK2

    tCY

    tWH1

    tF

    tR

    tWL1

    tD12

    tD21

    tWL2

    tF

    tR

    tWH2

    tCY

    0.7VDD

    0.3VDD

    0.7VDD

    0.3VDD

    Figure 1. External Clock Waveform

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    37/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    11

    Display Control Timing

    Characteristic Symbol Min Typ Max Unit

    FRM delay time tDF -2 - +2 us

    M delay time tDM -2 - +2 us

    CL "low" level width tWL 35 - - us

    CL "high" level width tWH 35 - - us

    0.7VDD

    0.3VDD

    tWL

    0.7VDD

    0.3VDD

    tDF

    tDF

    tWH

    tDM

    0.7VDD

    0.3VDD

    Figure 2. Display Control Waveform

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    38/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    12

    MPU Interface

    Characteristic Symbol Min Typ Max Unit

    E cycle tC 1000 - - ns

    E high level width tWH 450 - - ns

    E low level width tWL 450 - - ns

    E rise time tR - - 25 ns

    E fall time tF - - 25 ns

    Address set-up time tASU 140 - - ns

    Address hold time tAH 10 - - ns

    Data set-up time tDSU 200 - - ns

    Data delay time tD - - 320 ns

    Data hold time (write) tDHW 10 - - ns

    Data hold time (read) tDHR 20 - - ns

    E

    R/W

    CS1B, CS2B,

    CS3, RS

    DB0 - 7

    tC

    tWL

    tWH

    tR

    tF

    tAH

    tASU

    tASU

    tAH

    0.8V 2.0V

    tDSU

    tDHW

    2.0V

    0.8V

    Figure 3. MPU Write Timing

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    39/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    13

    E

    R/W

    CS1B, CS2B,

    CS3, RS

    DB0 - 7

    tC

    tWL

    tWH

    tR

    tF

    tAH

    tASU

    tASU

    tAH

    tD

    tDHR

    Figure 4. MPU Read Timing

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    40/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    41/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    15

    RESET

    The system can be initialized by setting RSTB terminal at low level when turning power on, receiving instruction

    from MPU.

    When RSTB becomes low, following procedure is occurred.

    Display off

    Display start line register become set by 0. (Z-address 0)

    While RSTB is low, No instruction except status read can be accepted. Therefore, execute other instructions after

    making sure that DB4 = 0 (clear RSTB) and DB7 = 0 (ready) by status read instruction. The Conditions of power

    supply at initial power up are shown in table 1.

    Table 2. Power Supply Initial Conditions

    Item Symbol Min Typ Max Unit

    Reset timetRS 1.0 - - us

    Rise time tR - - 200 ns

    tR

    tRS

    4.5VVDD

    RSTB 0.7VDD0.3V

    DD

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    42/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    43/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    17

    Display ON / OFF Flip - Flop

    The display on/off flip-flop makes on/off the liquid crystal display. When flip-flop is reset (logical low), selective

    voltage or non selective voltage appears on segment output terminals. When flip-flop is set (logic high), non

    selective voltage appears on segment output terminals regardless of display RAM data. The display on/off flip-

    flop can changes status by instruction. The display data at all segment disappear while RSTB is low. The status

    of the flip-flop is output to DB5 by status read instruction. The display on/off flip-flop synchronized by CL signal.

    X Page Register

    X page register designates pages of the internal display data RAM. Count function is not available. An address is

    set by instruction.

    Y Address Counter

    Y address counter designates address of the internal display data RAM. An address is set by instruction and is

    increased by 1 automatically by read or write operations of display data.

    Display Data RAMDisplay data RAM stores a display data for liquid crystal display. To indicate on state dot matrix of liquid crystal

    display, write data 1. The other way, off state, writes 0.

    Display data RAM address and segment output can be controlled by ADC signal.

    ADC = H Y-address 0:S1 - Y address 63:S64

    ADC = L Y-address 0:S64 - Y address 63:S1

    ADC terminal connect the VDDor VSS.

    Display Start Line Register

    The display start line register indicates of display data RAM to display top line of liquid crystal display. Bit data

    (DB) of the display start line set instruction is latched in display start line register. Latched data is

    transferred to the Z address counter while FRM is high, presetting the Z address counter. It is used for scrolling of

    the liquid crystal display screen.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    44/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    45/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    46/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    20

    STATUS READ

    RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

    0 1 BUSY 0 ON/OFF RESET 0 0 0 0

    BUSYWhen BUSY is 1, the Chip is executing internal operation and no instructions are accepted.

    When BUSY is 0, the Chip is ready to accept any instructions.

    ON/OFF

    When ON/OFF is 1, the display is OFF.

    When ON/OFF is 0, the display is ON.

    RESET

    When RESET is 1, the system is being initialized.

    In this condition, no instructions except status read can be accepted.

    When RESET is 0, initializing has finished and the system is in the usual operation condition.

    WRITE DISPLAY DATA

    RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

    1 0 D7 D6 D5 D4 D3 D2 D1 D0

    Writes data (D0 - D7) into the display data RAM. After writing instruction, Y address is increased by 1

    automatically.

    READ DISPLAY DATA

    RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

    1 1 D7 D6 D5 D4 D3 D2 D1 D0

    Reads data (D0 - D7) from the display data RAM. After reading instruction, Y address is increased by 1

    automatically.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    47/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    21

    APPLICATION CIRCUIT

    1/64 DUTY COMMON DRIVER (S6B0107) INTERFACE CIRCUIT

    DIO1

    DIO2

    M

    FRM

    CLK1

    CLK2

    CL2

    C1

    C64

    RCR C

    RSTB

    DB7

    -

    DB0E

    RS

    R/W

    CS3

    CS2B

    CS1B

    VDD

    ADC

    Open

    Open

    S1 S64

    SEG1 SEG64

    LCD

    COM1

    COM64

    From MPU

    V0R

    , V0L

    V5R

    , V5L

    V2R

    , V2L

    V3R

    , V3L

    VEE1

    , VEE2

    VSS

    VDD

    V0

    V5

    V2

    V3

    VSS

    M

    FRM

    CLK1

    CLK2

    CL2

    S6B0108

    S6B0107

    V0R

    , V0L

    V5R

    , V5L

    V1R

    , V1L

    V4R

    , V4L

    VEE

    V0

    V5

    V1

    V4

    VEE

    VSS

    DS1

    SD2

    PCLK2

    MS

    FS

    SHL

    VDD

    VDD

    VDD

    R1

    R1

    R2

    R1

    R1

    VEE

    V5

    V4

    V3

    V2

    V1

    V0

    -

    VEE

    R1

    R2

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    48/71

    S6B0108 64CH SEGMENT DRIVER FOR DOT MATRIX LCD

    22

    TIMING DIAGRAM (1/64 DUTY)

    CLK1

    1 2 3 48 49

    64 1 2 3 64 1 2 3 64 1

    1 Frame 1 Frame

    V4

    V5

    V1

    V4

    V1

    V5

    V1

    V0

    V4

    V4

    V0

    V4

    V5

    V1

    V4

    V0

    V1

    V5

    V4

    V0

    V1

    V2

    V2

    V5V3

    V5

    V3

    V3

    V0

    V2

    V0

    V2

    V3

    CLK2

    CL

    FRM

    M

    C1

    C2

    C64

    S1

    S64

    Input

    Common

    Segment

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    49/71

    64CH SEGMENT DRIVER FOR DOT MATRIX LCD S6B0108

    23

    LCD PANEL INTERFACE APPLICATION CIRCUIT

    LCD Panel(128 512dots)

    S6B0108

    No. 1

    S1 ..... S64

    S6B0108

    No. 2

    S1 ..... S64

    S6B0108

    No. 8

    S1 ..... S64

    .....

    C1

    C2

    C3

    C64

    CR

    R

    COM1

    COM2

    COM3

    COM64

    S6B0107

    (master)

    C1C2

    C3

    C64

    S6B0107

    (slave)

    COM65

    COM66

    COM67

    COM128

    ..... ..... .....

    S1 ..... S64

    No. 9

    S6B0108

    S1 ..... S64

    No. 10

    S6B0108

    S1 ..... S64

    No. 16

    S6B0108

    .....

    ..... ..... .....

    Cf

    Rf

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    50/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    51/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    3

    PIN CONFIGURATION

    100 QFP

    S6B0107

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    80

    79

    78

    77

    76

    75

    74

    73

    72

    71

    70

    69

    68

    67

    66

    65

    64

    63

    62

    61

    60

    59

    58

    57

    56

    55

    54

    53

    52

    51

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    100

    99

    98

    97

    96

    95

    94

    93

    92

    91

    90

    89

    88

    87

    86

    85

    84

    83

    82

    81

    C22

    C21

    C20

    C19

    C18

    C17

    C16

    C15

    C14

    C13

    C12

    C11

    C10

    C9

    C8

    C7

    C6

    C5

    C4

    C3

    C2

    C1

    VEE

    V1L

    V4L

    V5L

    V0L

    VDD

    DIO1

    FS

    C23

    C24

    C25

    C26

    C27

    C28

    C29

    C30

    C31

    C32

    C33

    C34

    C35

    C36

    C37

    C38

    C39

    C40

    C41

    C42

    DS1

    DS2 C

    NC R

    NC

    CR

    NC

    SHL

    V

    SS

    NC

    MS

    CLK2

    CLK1

    NC

    FR

    MMNC

    PCLK

    2

    DIO2

    C43

    C44

    C45

    C46

    C47

    C48

    C49

    C50

    C51

    C52

    C53

    C54

    C55

    C56

    C57

    C58

    C59

    C60

    C61

    C62

    C63

    C64

    VEE

    V1R

    V4R

    V5R

    V0R

    NC

    CL2

    NC

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    52/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    4

    PAD DIAGRAM (CHIP LAYOUT FOR THE 100QFP)

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    51

    52

    53

    1 100

    99

    98

    97

    96

    95

    94

    93

    92

    91

    90

    89

    88

    87

    86

    85

    84

    83

    82

    81

    80

    C22

    C23

    C24

    C25

    C26

    C27

    C28

    C29

    C30

    C31

    C32

    C33

    C34

    C35

    C36

    C37

    C38

    C39

    C40

    C41

    C42

    C43

    VDD

    DIO1

    FS

    DS1

    DS2 C

    NC R

    NC

    CR

    NC

    SHL

    VSS

    NC

    MS

    CLK2

    CLK1

    NC

    FRMMN

    C

    PCLK2

    DIO2

    NC

    CL2

    NC

    2

    3

    4

    5

    6

    7

    8

    9

    1011

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    2425

    26

    27

    C21

    C20

    C19

    C18

    C17

    C16

    C15

    C14

    C13C12

    C11

    C10

    C9

    C8

    C7

    C6

    C5

    C4

    C3

    C2

    C1

    VEE

    V1LV4L

    V5L

    V0L

    Chip size: 3450 4000

    PAD size: 100 100

    Unit :m

    (0, 0) X

    Y

    79

    78

    77

    76

    75

    74

    73

    72

    7170

    69

    68

    67

    66

    65

    64

    63

    62

    61

    60

    59

    58

    5756

    55

    54

    C44

    C45

    C46

    C47

    C48

    C49

    C50

    C51

    C52C53

    C54

    C55

    C56

    C57

    C58

    C59

    C60

    C61

    C62

    C63

    C64

    VEE

    V1RV4R

    V5R

    V0R

    There is the mark S6B0107 on the center of the chip.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    53/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    5

    PAD CENTER COORDINATES (100QFP)

    Pad

    Number

    Pad

    Name

    Coordinate Pad

    Number

    Pad

    Name

    Coordinate Pad

    Number

    Pad

    Name

    Coordinate

    X Y X Y X Y

    1 C22 -1314.5 1775.4 32 DS2 -677.6 -1775 71 C52 1500.9 630

    2 C21 -1499.9 1630 34 C -527.6 -1775 72 C51 1500.9 755

    3 C20 -1499.9 1505 35 R -377.6 -1775 73 C50 1500.9 880

    4 C19 -1499.9 1380 37 CR -227.6 -1775 74 C49 1500.9 1005

    5 C18 -1499.9 1255 39 SHL -77.6 -1775 75 C48 1500.9 1130

    6 C17 -1499.9 1130 40 VSS 113.8 -1775 76 C47 1500.9 1255

    7 C16 -1499.9 1005 42 MS 308.7 -1775 77 C46 1500.9 1380

    8 C15 -1499.9 880 43 CLK2 458.7 -1775 78 C45 1500.9 15059 C14 -1499.9 755 44 CLK1 608.7 -1775 79 C44 1500.9 1630

    10 C13 -1499.9 630 46 FRM 758.7 -1775 80 C43 1310.5 1775.4

    11 C12 -1499.9 505 47 M 908.7 -1775 81 C42 1185.5 1775.4

    12 C11 -1499.9 380 49 PCLK2 1058.7 -1775 82 C41 1060.5 1775.4

    13 C10 -1499.9 255 50 DI02 1208.7 -1775 83 C40 935.5 1775.4

    14 C9 -1499.9 130 52 CL2 1358.7 -1775 84 C39 810.5 1775.4

    15 C8 -1499.9 5 54 V0R 1500.9 -1495 85 C38 685.5 1775.4

    16 C7 -1499.9 -120 55 V5R 1500.9 -1370 86 C37 560.5 1775.4

    17 C6 -1499.9 -245 56 V4R 1500.9 -1245 87 C36 435.5 1775.418 C5 -1499.9 -370 57 V1R 1500.9 -1120 88 C35 310.5 1775.4

    19 C4 -1499.9 -495 58 VEE 1500.9 -995 89 C34 185.5 1775.4

    20 C3 -1499.9 -620 59 C64 1500.9 -870 90 C33 60.5 1775.4

    21 C2 -1499.9 -745 60 C63 1500.9 -745 91 C32 -64.5 1775.4

    22 C1 -1499.9 -870 61 C62 1500.9 -620 92 C31 -189.5 1775.4

    23 VEE -1499.9 -995 62 C61 1500.9 -495 93 C30 -314.5 1775.4

    24 V1L -1499.9 -1120 63 C60 1500.9 -370 94 C29 -439.5 1775.4

    25 V4L -1499.9 -1245 64 C59 1500.9 -245 95 C28 -564.5 1775.4

    26 V5L -1499.9 -1370 65 C58 1500.9 -120 96 C27 -689.5 1775.4

    27 V0L -1499.9 -1495 66 C57 1500.9 5 97 C26 -814.5 1775.4

    28 VDD -1345.6 -1775 67 C56 1500.9 130 98 C25 -939.5 1775.4

    29 DI01 -1127.6 -1775 68 C55 1500.9 255 99 C24 -1064.5 1775.4

    30 FS -977.6 -1775 69 C54 1500.9 380 100 C23 -1189.5 1775.4

    31 DS1 -827.6 -1775 70 C53 1500.9 505

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    54/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    6

    100 TQFP (S6B2107)

    C19

    C18

    C17

    C16

    C15

    C14

    C13

    C12

    C11

    C10

    C9

    C8

    C7

    C6

    C5

    C4

    C3

    C2

    C1

    VEE

    V1L

    V4L

    V5L

    V0L

    VDD

    S6B2107

    (100 TQFP)

    1 2 3 4 5 6 7 8 9 10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    75

    74

    73

    72

    71

    70

    69

    68

    67

    66

    65

    64

    63

    62

    61

    60

    59

    58

    57

    56

    55

    54

    53

    52

    51

    50

    49

    48

    47

    46

    45

    44

    43

    42

    41

    40

    39

    38

    37

    36

    35

    34

    33

    32

    31

    3029

    28

    27

    26

    76

    77

    78

    79

    80

    81

    82

    83

    84

    85

    86

    87

    88

    89

    90

    91

    92

    93

    94

    95

    96

    97

    98

    99

    100

    C44

    C43

    C42

    C41

    C40

    C39

    C38

    C37

    C36

    C35

    C34

    C33

    C32

    C31

    C30

    C29

    C28

    C27

    C26

    C25

    C24

    C23

    C22

    C21

    C20

    NC

    CL2

    NC

    DIO2

    PCLK2

    NC

    M

    FRMNC

    CLK1

    CLK2

    MS

    NC

    VSS

    SHL

    NC

    CR

    NC

    R

    NC

    C

    DS2

    DS1

    FS

    DIO1

    C45

    C46

    C47

    C48

    C49

    C50

    C51

    C52

    C53

    C54

    C55

    C56

    C57

    C58

    C59

    C60

    C61

    C62

    C63

    C64

    VEE

    V1R

    V4R

    V5R

    V0R

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    55/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    7

    PAD DIAGRAM (CHIP LAYOUT FOR THE 100-TQFP)

    75

    74

    73

    72

    71

    70

    69

    68

    67

    66

    65

    64

    63

    62

    61

    60

    59

    58

    57

    56

    55

    54

    53

    52

    51

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    100

    99

    98

    97

    96

    95

    94

    93

    92

    91

    90

    89

    88

    87

    86

    85

    84

    83

    82

    81

    80

    79

    78

    77

    76

    C20

    C21

    C22

    C23

    C24

    C25

    C26

    C27

    C28

    C29

    C30

    C31

    C32

    C33

    C34

    C35

    C36

    C37

    C38

    C39

    C40

    C41

    C42

    C43

    C44

    DIO1

    FS

    DS1

    DS2 C

    NCR

    NC

    CR

    NC

    SHL

    VSS

    NC

    MS

    CLK2

    CLK1

    NC

    FRMMN

    C

    PCLK2

    DIO2

    NC

    CL2

    NC

    C45

    C46

    C47

    C48

    C49

    C50

    C51

    C52

    C53

    C54

    C55

    C56

    C57

    C58

    C59

    C60

    C61

    C62

    C63

    C64

    VEE

    V1R

    V4R

    V5R

    V0R

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    C19

    C18

    C17

    C16

    C15

    C14

    C13

    C12

    C11

    C10

    C9

    C8

    C7

    C6

    C5

    C4

    C3

    C2

    C1

    VEE

    V1L

    V4L

    V5L

    V0L

    VDD

    Chip size: 3850 X 100

    PAD size: 100 X 100

    Unit : m

    (0, 0) X

    Y

    There is the mark S6B2107 on the center of the chip.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    56/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    8

    PAD CENTER COORDINATES (100-TQFP)

    Pad

    Number

    Pad

    Name

    Coordinate Pad

    Number

    Pad

    Name

    Coordinate Pad

    Number

    Pad

    Name

    Coordinate

    X Y X Y X Y

    1 C19 -1697 1534 35 NC 69 C51 1697 7842 C18 -1697 1409 36 SHL -195 -1821 70 C50 1697 909

    3 C17 -1697 1284 37 VSS 0 -1821 71 C49 1697 10344 C16 -1697 1159 38 NC 72 C48 1697 1159

    5 C15 -1697 1034 39 MS 195 -1821 73 C47 1697 12846 C14 -1697 909 40 CLK2 345 -1821 74 C46 1697 1409

    7 C13 -1697 784 41 CLK1 495 -1821 75 C45 1697 15348 C12 -1697 659 42 NC 76 C44 1500 18229 C11 -1697 534 43 FRM 645 -1821 77 C43 1375 1822

    10 C10 -1697 409 44 M 795 -1821 78 C42 1250 1822

    11 C9 -1697 284 45 NC 79 C41 1125 182212 C8 -1697 159 46 PCLK2 945 -1821 80 C40 1000 182213 C7 -1697 34 47 DIO2 1095 -1821 81 C39 875 182214 C6 -1697 -91 48 NC 82 C38 750 1822

    15 C5 -1697 -216 49 CL2 1245 -1821 83 C37 625 182216 C4 -1697 -341 50 NC 84 C36 500 1822

    17 C3 -1697 -466 51 V0R 1697 -1466 85 C35 375 182218 C2 -1697 -591 52 V5R 1697 -1341 86 C34 250 1822

    19 C1 -1697 -716 53 V4R 1697 -1216 87 C33 125 182220 VEE -1697 -841 54 V1R 1697 -1091 88 C32 0 182221 V1L -1697 -966 55 VEE 1697 -966 89 C31 -125 1822

    22 V4L -1697 -1091 56 C64 1697 -841 90 C30 -250 1822

    23 V5L -1697 -1216 57 C63 1697 -716 91 C29 -375 182224 V0L -1697 -1341 58 C62 1697 -591 92 C28 -500 182225 VDD -1697 -1466 59 C61 1697 466 93 C27 -625 182226 DIO1 -1245 -1821 60 C60 1697 -341 94 C26 -750 1822

    27 FS -1095 -1821 61 C59 1697 -216 95 C25 -875 182228 DS1 -945 -1821 62 C58 1697 -91 96 C24 -1000 1822

    29 DS2 -795 -1821 63 C57 1697 34 97 C23 -1125 182230 C -645 -1821 64 C56 1697 159 98 C22 -1250 1822

    31 NC 65 C55 1697 284 99 C21 -1375 182232 R -495 -1821 66 C54 1697 409 100 C20 -1500 182233 NC 67 C53 1697 534

    34 CR -345 -1821 68 C52 1697 659

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    57/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    9

    PIN DESCRIPTION

    Table 1. Pin Description

    Pin Number

    QFP (TQFP)

    Symbol I/ O Description

    28(25)40(37)23(20), 58(55)

    VDDVSSVEE

    Power For internal logic circuit (+5V 10%)GND ( = 0 V)For LCD driver circuit

    27(24), 54(51)24(21), 57(54)25(22), 56(53)26(23), 55(52)

    V0L, V0RV1L, V1RV4L, V4RV5L, V5R

    Power Bias supply voltage terminals to drive LCD.

    Slelect Level

    V0L (R), V5L (R)

    Non-Select Level

    V1L (R), V4L (R)

    V0L and V0R (V1L & V1R, V4L & V4R, V5L & V5R) shouldbe connected by the same voltage.

    42(39) MS Input Selection of master/ slave mode- Master mode (MS = 1)DIO1, DIO2, CL2 and M is output state.

    - Slave mode (MS = 0)SHL = 1 DIO1 is input state (DIO2 is output state)SHL = 0 DIO2 is input state (DIO1 is output state)CL2 and M are input state.

    39(36) SHL Input Selection of data shift direction.

    SHL

    H

    L

    Data Shift Direction

    DIO1 C1 ...... C64 DIO2

    DIO2 C64 ...... C1 DIO1

    49(46) PCLK2 Input Selection of shift clock (CL2) phase.

    PCLK2

    H

    L

    Shift Clock (CL2) Phase

    Data shift at the rising edge of CL2

    Data shift at the falling edge of CL2

    30(27) FS Input Selection of oscillation frequency.- Master mode

    When the frame frequency is 70 Hz, the oscillationfrequencyshould befosc = 430kHz at FS = 1(VDD)

    fosc = 215kHz at FS = 0(VSS)

    - Slave modeConnect to VDD.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    58/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    10

    Table 1. Pin Description (Continued)

    Pin Number

    QFP (TQFP)

    Symbol I/ O Description

    31(28)32(29)

    DS1DS2

    Input Selection of display duty.

    - Master mode

    DS1

    L

    DS2

    L

    L

    H

    H

    L

    Duty

    1/48

    1/64

    1/96

    H H 1/ 128

    - Slave mode

    Connect to VDD33(30)35(32)37(34)

    CR

    CR

    RC Oscillator- Master mode: Use these terminals as shown below.

    S6B0107

    R C

    Rf

    CR

    Cf

    S6B0107

    R CCR

    Open OpenExternal

    - Slave mode: Stop the oscillator as shown below.

    R CCR

    Open Open

    VDD

    44(41)43(40)

    CLK1CLK2

    Output Operating clock output for the S6B0108- Master mode: connection to CLK1 and CLK2 of theS6B0108

    - Slave mode: open

    46(43) FRM Output Synchronous frame signal.- Master mode: connection to FRM of the S6B0108- Slave mode: open

    47(44) M Input/Output

    Alternating signal input for LCD driving.- Master mode: output state Connection to M of theS6B0108- Slave mode: input state Connection to the controller

    52(49) CL2 Input /Output

    Data shift clock- Master mode: output state Connection to CL of theS6B0108- Slave mode: input state Connection to shift clockterminal ofthe controller.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    59/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    11

    29(26)50(47)

    DIO1DIO2

    Input/Output

    Data input/ output pin of internal shift register.

    MS

    H

    DS2

    H

    L

    L

    L

    DIO1

    Output

    Output

    InputH

    Output

    DIO2

    Output

    Output

    Output

    Input

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    60/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    12

    Table 1. Pin Description (Continued)

    Pin Number

    QFP (TQFP)

    Symbol I/ O Description

    22-1(19-1)100-59(100-56)

    C1-C64 Output Common signal output for LCD driving.

    Data

    L

    L

    H

    H

    M Out

    L

    H

    L

    H

    V1

    V4

    V5

    V0

    34(31), 36(33)38(35), 41(38)45(42), 48(45)

    51(48), 53(50)

    NC No connection

    MAXIMUM ABSOLUTE LIMIT

    Characteristic Symbol Value Unit Note

    Operating voltage VDD -0.3 to +7.0 V (1)

    Supply voltage VEE VDD-19.0 to VDD+0.3 V (4)

    Driver supply voltage VB -0.3 to VDD+0.3 V (1),(2)

    VLCD VEE-0.3 to VDD+0.3 V (3), (4)

    Operating temperature TOPR -30 to +85 C -

    Storage temperature TSTG -55 to +125 C -

    NOTES:1. Based on VSS = 0V

    2. Applies to input terminals and I/ O terminals at high impedance. (Except V0L(R), V1L(R), V4L(R) and V5L(R))

    3. Applies to V0L(R), V1L(R), V4L(R) and V5L(R).4. Voltage level: VDD V0L = V0R V1L = V1R V4L = V4R V5L = V5R VEE.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    61/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    13

    ELECTRICAL CHARACTERISTICS

    DC CHARACTERISTICS (VDD= +5V 10%, VSS= 0V, |VDD-VEE| =8 - 17V, TA = -30 - +85C)

    Characteristic Symbol Condition Min Typ Max Unit Note

    High VIH - 0.7VDD - VDD V (1)Input Voltage

    Low VIL VSS - 0.3VDD

    High VOH IOH = -0.4mA VDD-0.4 - - V (2)Outputvoltage Low VOL IOL = 0.4mA - - 0.4

    Input leakage current ILKG VIN = VDD-VSS -1.0 - 1.0 A (1)

    OSC frequency fOSC

    Rf = 47k2%

    Cf = 20pf 5%315 450 585 kHz

    On resistance (VDIV-Ci)

    RONVDD-VEE = 17V

    Load current = 150A

    - - 1.5 K

    Operating current IDD1Master mode1/ 128 Duty

    - - 1.0 mA (3)

    IDD2Slave mode1/ 128 Duty

    - - 200 A (4)

    Supply current IEEMaster mode1/ 128 Duty

    - - 100 (5)

    Operating fop1Master modeExternal clock

    50 - 600 kHz

    Frequency fop2 Slave mode 0.5 - 1500

    NOTES:

    1. Applies to input terminals FS, DS1, DS2, CR, SHL, MS and PCLK2 and I/ O terminals DIO1, DIO2, M and CL2 in

    the

    input state.

    2. Applies to output terminals CLK1, CLK2 and FRM and I/O terminals DIO1, DIO2, M and CL2 in the output

    state.3. This value is specified at about the current flowing through VSS. Internal oscillation circuit: Rf = 47k, Cf =

    20pF. Eachterminal of DS1, DS2, FS, SHL and MS is connected to VDDand out is no load.

    4. This value is specified at about the current flowing through VSS. Each terminal of DS1, DS2, FS, SHL, PCLK2

    and CR isconnected to VDD, and MS is connected to VSS.CL2, M, DIO1 is external clock.

    5. This value is specified at about the current flowing through VEE. Dont connect to VLCD(V1-V5).

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    62/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    63/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    15

    Master Mode

    Characteristic Symbol Min Typ Max Unit

    Data setup time tSU 20 - - s

    Data hold time tDH 40 - -

    Data delay time tD 5 - -

    FRM delay time tDF -2 - 2

    M delay time tDM -2 - 2

    CL2 low level width tWLC 35 - -

    CL2 high level width tWHC 35 - -

    CLK1 low level width tWL1 700 - - ns

    CLK2 low level widtht

    WL2 700 - -CLK1 high level width tWH1 2100 - -

    CLK2 high level width tWH2 2100 - -

    CLK1-CLK2 phase difference tD12 700 - -

    CLK2-CLK1 phase difference tD21 700 - -

    CLK1, CLK2 rise/ fall time tR/ tF - - 150

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    64/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    16

    Slave Mode (MS = VSS)

    tWLC

    tWHC1

    CL2 (PLK2 = VSS

    )

    CL2 (PLK2 = VDD

    )

    DIO1 (SHL = VDD

    )

    DIO2 (SHL = VSS

    )

    Input Data

    DIO1 (SHL = VDD

    )

    DIO2 (SHL = VSS )Onput Data

    tF

    tR

    tWLC1

    0.7VDD

    0.3VDD

    0.7VDD

    0.3VDD

    0.7VDD

    0.3VDD

    tWHC2

    tSU

    tR

    tF

    tD

    tHCL

    tH

    Characteristics Symbol Min Typ Max Unit Note

    CL2 low level width tWLC1 450 - - ns PCLK2 = VSS

    CL2 high level width tWHC1 150 - - ns PCLK2 = VSS

    CL2 low level width tWLC2

    150 - - ns PCLK2 = VDD

    CL2 high level width tWHL 450 - - ns PCLK2 = VDD

    Data setup time tSU 100 - - ns

    Data hold time tDH 100 - - ns

    Data delay time tD - - 200 ns (NOTE)

    Output data hold time tH 10 - - ns

    CL2 rise/ fall time tR/ tF - - 30 ns

    NOTE: Connect load CL = 30pF

    Output

    30pF

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    65/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    17

    FUNCTIONAL DESCRIPTION

    RC Oscillator

    The RC Oscillator generates CL2, M, FRM of the S6B0107, and CLK1 and CLK2 of the S6B0108 by theoscillation resister R and capacitor C. When selecting the master/ slave mode, the oscillation circuit is asfollowing:

    Master Mode: In the master mode, use these terminals as shown below.

    S6B0107

    R C

    Rf

    CR

    Cf

    47K 20pF

    Internal Oscillation

    S6B0107

    R CCR

    Open Open

    External Clock

    External

    Clock

    Slave Mode: In the slave mode, stop the oscillator as shown below.

    S6B0107

    R CCR

    Open OpenV

    DD

    Timing Generation Circuit

    It generates CL2, M, FRM, CLK1 and CLK2 by the frequency from the oscillation circuit.

    Selection of Master/Slave (M/ S) Mode- When M/ S is H, it generates CL2, M, FRM, CLK1 and CLK2 internally.- When M/ S is L, it operates by receiving M and CL2 from the master device.

    Frequency Selection (FS)To adjust FRM frequency by 70Hz, the oscillation frequency should be as follows:

    FS Oscillation Frequency

    H fOSC= 430kHz

    L fOSC= 215kHz

    In the slave mode, it is connected to VDD.

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    66/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    18

    Duty Selection (DS1, DS2)

    It provides various duty selections according to DS1 and DS2.

    DS1 DS2 DUTY

    L L 1/48

    H 1/ 64

    H L 1/ 96

    H 1/ 128

    Data Shift & Phase Select Control

    Phase Selection

    It is a circuit to shift data on synchronization or rising edge, or falling edge of the CL2 according toPCLK2.

    PCLK2 Phase Selection

    H Data shift on rising edge of CL2

    L Data shift on falling edge of CL2

    Data Shift Direction Selection

    When M/ S is connected to VDD, DIO1 and DIO2 terminal is only output.

    When M/ S is connected to VSS, it depends on the SHL.

    MS SHL DIO1 DIO2 Direction of Data

    H H Output Output C1 C64

    L Output Output C64 C1

    L H Input Output DIO1 C1 C64 DIO2

    L Output Input DIO2 C64 C1 DIO1

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    67/71

    64CH COMMON DRIVER FOR DOT MATRIX LCD S6B0107

    19

    TIMING DIAGRAM

    1/ 48 DUTY TIMING (MASTER MODE)

    Condition: DS1 = L, DS2 = L, SHL = H(L), PCLK2 = H

    Relation of CL2 & DIO1 ( DIO2 )

    C

    CLK1

    CLK2

    CL2

    FRM

    DIO1 ( DIO2 )

    M

    C1 ( C48 )

    C2 ( C47 )

    C47 ( C2 )

    C48 ( C1 )

    DIO2 ( DIO1 )

    CLK2

    CL2

    DIO1 ( DIO2 )

    1 2 3 63 64

    1 2 3 46 47 48 1 2 3 46 47 48

    V0

    V4

    V0

    V1

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    ~~

    V1

    V4

    V4

    V5

    V1

    V1

    V5V1

    V4

    V0

    V4

    V4

    V0

    V4

    V4

    V1

    V1

    V4

    V1

    V5

    V5

    V1

    V1

    V5

    V5

    V0

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    68/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    69/71

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    70/71

    S6B0107 64CH COMMON DRIVER FOR DOT MATRIX LCD

    22

    POWER DRIVER CIRCUIT

    To

    S6B0108

    V0

    V1

    V2

    V3

    V4

    V5

    VDD

    R1

    R1

    R2

    R1

    R1

    VR

    V0L/ R

    V1L/R

    V4L/ R

    V5L/ R VEE

    S6B0107

    VDD

    VEE

    Relation of Duty & Bias

    Duty Bias RDIV

    1/ 48 1/ 8 R2 = 4R1

    1/ 64 1/ 9 R2 = 5R1

    1/ 96 1/ 11 R2 = 7R1

    1/ 128 1/ 12 R2 = 8R1

    When duty factor is 1/ 48, the value of R1 & R2 should satisfy.

    R1/ (4R1 + R2) = 1/ 8

    R1 + 3k, R2 = 12k

  • 8/11/2019 Using The Picbasic Plus Compiler With Graphics Lcd Displays.pdf

    71/71


Recommended