H2004A LCD Module Manual: Character 20X4
H2004A LCD Module Manual: Character 20X4
Contents
 1.   Precautions in use of LCD Modules
2. General Specification
4. Electrical Characteristics
5. Optical Characteristics
8. Function Description
                                   1
1. Precautions in use of LCD Modules
 (1)Avoid applying excessive shocks to the module or making any alterations or modifications to it.
 (2)Don’t make extra holes on the printed circuit board, modify its shape or change the components
    of LCD module.
 (3)Don’t disassemble the LCM.
 (4)Don’t operate it above the absolute maximum rating.
 (5)Don’t drop, bend or twist LCM.
 (6)Soldering: only to the I/O terminals.
 (7)Storage: please storage in anti-static electricity container and clean environment.
2. General Specification
                                                   2
4. Electrical Characteristics
5. Optical Characteristics
Contrast Ratio CR - - 3 - -
                                      3
  Definition of Operation Voltage (Vop)                                  Definition of Response Time ( Tr , Tf )
                                                                     Non-selected                                Non-selected
                                                                      Conition             Selected Conition      Conition
     Intensity                Selected Wave
         100¢ H                            Non-selected Wave         Intensity
                                                                                                                                10¢ H
      Cr Max
                                              Cr = Lon / Loff                                    90¢ H
                                                                       100¢ H
                              Vop
                                           Driving Voltage(V)                         Tr                          Tf
Conditions :
                      Operating Voltage : Vop                   Viewing Angle(θ) : 0°
                      Frame Frequency : 64 HZ                   Driving Waveform : 1/N duty , 1/a bias
ϕ = 270°X ϕ = 90°X
ϕ = 0°X
                                                                4
6. Interface Pin Function
                                         5
7. Contour Drawing &Block Diagram
                                                       98.0 0.5
            0.6                                          96.8
                   10.5                                77.0(VA)                                                                                        1        Vss
                    13.8                               70.4(AA)
                                                                                                                                                       2        Vdd
                   10.0      P2.54*15=38.06                                                                13.6 MAX
                                 2.0                                                                               9.0
                                                                                                                                                      3          Vo
2.5
                                                                                         2.5
                                                                                                                                                       4         RS
                                                                                                                                                      5         R/W
     10.35
                                                                                                                                                       6         E
                                                                                                                                                       7        DB0
                                                                                                                                                       8        DB1
   60.0 0.5
                                                                                                                                                       9        DB2
   25.2(VA)
   20.8(AA)
                                                                                         55.0
      39.3
                                                                                                                                                      10        DB3
                                                                                                                                                      11        DB4
                                                                                                                                                      12        DB5
                                                                                                                                                      13        DB6
                                                                                                                                                      14        DB7
                                49.0                                                     4- 2.5 PTH                    1.6                            15         A
           2.5                                           93.0                            4- 5.0 PAD                                                   16         K
                                                                                                             LEDB/L
                                                                                  2.95          0.6
                                                                          0.6
                                                                         0.55
DOT SIZE
                  RS                                                Com1~16
                                                                                                                                                LEDB/L Drive Method
                                                                                                                                                1.Drive fromA,K
                  R/W                     Controller/ComDriver
       MPU
                  E
                   DB0~DB7
                                               HD44780
                                                    or
                                                               Com17~32
                                                                                                  20X4 LCD                                              R
                                                                                                                                                            A
     80 series
        or                                     Equivalent                                                                                                          B/L
                                                                                                                                                            K
     68 series
                                                                                                      Seg41~120          Seg120~200
                                                                           D
                   VR        Vo
                                       Bias and
                                                                          CL2
                             Vee
                                                                  Vdd,Vss,V1~V5
                                       N.V.
   Character located        1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   DDRAMaddress            00 01 02 03 04 05 06 07 08 09 0A0B0C0D0E 0F 10 11 12 13
   DDRAMaddress            40 41 42 43 44 45 46 47 48 49 4A4B4C4D4E 4F 50 51 52 53
   DDRAMaddress            14 15 16 17 18 19 1A1B1C1D1E 1F 20 21 22 23 24 25 26 27
   DDRAMaddress            54 55 56 57 58 59 5A5B5C5D5E 5F 60 61 62 63 64 65 66 67
                                                                                                                   6
8. Function Description
 The LCD display Module is built in a LSI controller, the controller has two 8-bit registers, an
 instruction register (IR) and a data register (DR).
 The IR stores instruction codes, such as display clear and cursor shift, and address information for
 display data RAM (DDRAM) and character generator (CGRAM). The IR can only be written from
 the MPU. The DR temporarily stores data to be written or read from DDRAM or CGRAM. When
 address information is written into the IR, then data is stored into the DR from DDRAM or
 CGRAM. By the register selector (RS) signal, these two registers can be selected.
  RS     R/W                                          Operation
   0       0    IR write as an internal operation (display clear, etc.)
   0       1    Read busy flag (DB7) and address counter (DB0 to DB7)
   1       0    Write data to DDRAM or CGRAM (DR to DDRAM or CGRAM)
   1       1    Read data from DDRAM or CGRAM (DDRAM or CGRAM to DR)
                                                  7
Character Generator ROM (CGROM)
The CGROM generate 5×8 dot or 5×10 dot character patterns from 8-bit character codes. See
Table 2.
                                                8
   Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character
   patterns
Table 1.
 F o r 5 * 8 d o t c h a r a c te r p a tte rn s
             C h a ra c te r C o d e s                                             C h a ra c te r P a tte rn s
                                                     C G R A M A d d ress
             ( D D R A M d a ta )                                                  ( C G R A M d a ta )
         7     6   5    4   3   2   1    0               5     4   3   2   1   0   7    6   5   4   3    2    1   0
               H ig h           Low                   H ig h   Low                     H ig h       Low
                                                               0 0             0   *    * *                       0
                                                               0 0             1   *    * *         0    0    0
                                                               0 1             0   *    * *         0    0    0
                                                               0 1             1   *    * *                       0   C h a ra c te r
                                                         0 0 0 1 0             0   *    * *         0         0   0   p a tte rn ( 1 )
         0     0    0   0   * 0      0   0
                                                                1 0            1   *    * *         0    0        0
                                                                1 1            0   *    * *         0    0    0
                                                                1 1            1   *    * *     0   0    0    0   0   C u rs o r p a tte r n
                                                               0 0             0   *    * *         0    0    0
                                                               0 0             1   *    * *     0        0        0
                                                               0 1             0   *    * *
                                                               0 1             1   *    * *     0   0         0   0   C h a ra c te r
         0     0   0    0   * 0     0    1               0 0 1  1 0            0   *    * *                           p a tte rn ( 2 )
                                                                1 0            1   *    * *     0   0         0   0
                                                                1 1            0   *    * *     0   0         0   0
                                                                1 1            1   *    * *     0   0    0    0   0   C u rs o r p a tte r n
                                                               0 0             0   *    * *
                                                               0 0             1
         0     0   0    0   *   1   1    1               1     1   1   1   0   0
                                                                       1   0   1
                                                                       1   1   0
                                                                       1   1   1   *    *   *
F o r 5 * 1 0 d o t c h a r a c te r p a tte r n s
             C h a ra c te r C o d e s                                             C h a ra c te r P a tte rn s
                                                     C G R A M A d d ress
             ( D D R A M d a ta )                                                  ( C G R A M d a ta )
         7     6   5    4   3   2   1    0               5     4   3   2   1   0   7    6   5   4   3    2    1   0
               H ig h           Low                   H ig h           Low             H ig h           Low
                                                                   0   0   0   0   *    *   * 0     0    0    0   0
                                                                   0   0   0   1   *    *   * 0     0    0    0   0
                                                                   0   0   1   0   *    *   *       0             0
                                                                   0   0   1   1   *    *   *            0    0
                                                                   0   1   0   0   *    *   *       0    0    0
         0     0   0    0   * 0     0    0               0     0   0   1   0   1   *    *   *       0    0    0
                                                                   0   1   1   0   *    *   *                     0   C h a ra c te r
                                                                   0   1   1   1   *    *   *       0    0    0   0   p a tte rn
                                                                   1   0   0   0   *    *   *       0    0    0   0
                                                                   1   0   0   1   *    *   *       0    0    0   0
                                                                   1   0   1   0   *    *   * 0     0    0    0   0   C u rs o r p a tte r n
1 1 1 1 * * * * * * * *
: " H ig h "
                                                                           9
9. Character Generator ROM Pattern
 Table.2
      Upper
        4 bit
  Lower         LLLL LLLH LLHL LLHH LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH HHHL HHHH
   4 bit
                CG
                RAM
  LLLL          (1)
LLLH (2)
LLHL (3)
LLHH (4)
LHLL (5)
LHLH (6)
LHHL (7)
LHHH (8)
HLLL (1)
HLLH (2)
HLHL (3)
HLHH (4)
HHLL (5)
HHLH (6)
HHHL (7)
HHHH (8)
                                                10
10. Instruction Table
                                      Instruction Code
                                                                                                                                 Execution time
  Instruction                                                                                  Description
                                                                                                                                 (fosc=270Khz)
                 RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
I/D = 0 : Decrement C=0 : Cursor OFF R/L = 0 : Left Shift F = 1 : 5x10 Dots
S=0 : No display shift B=0 : Blink OFF DL = 0 : 4 Bits BF = 0 : Can Accept Data
D=0 : Display OFF S/C = 0 : Cursor Move N = 0 : 1 Line ADD : DD RAM Address
* : don't care
                                                              11
11. Timing Characteristics
11.1   Write Operation
                                 VIH1                                                           VIH1
              RS                 VIL1                                                           VIL1
t AS t AH
                                                        PW EH                            t AH
                                                                                        t Ef
                                            VIH1                        VIH1
              E                             VIL1                        VIL1                                         VIL1
                                               t   Er
                                                                t DSW                    tH
                                                         VIH1                                   VIH1
          DB0 to DB7                                     VIL1            Valid data             VIL1
                                                                               t cycE
                                                         12
                                        VIH1                                                 VIH1
              RS                        VIL1                                                 VIL1
                                           tAS                                         tAH
                                        VIH1                                                  VIH1
              R/W
                                                             PW    EH                   t
                                                                                        AH
                                                                                       tEf
                                                    VIH1                VIH1
              E                                     VIL1                VIL1                                  VIL1
                                                       tEr     tDDR                    tDHR
                                                              VOH1                           VOH1
         DB0 to DB7                                           VOL1*
                                                                         Valid data
                                                                                             *VOL1
                                                                               tcycE
                                                                   13
12. Backlight Information
Specification
                                       14
13. Initializing of LCM
Power on
   RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0                   Function set ( Interface is 8 bits long. Specify
    0  0   0   0   1   1   N   F   *   *                    the number of display lines and font. )
    0  0   0   0   0   0   1   0   0   0                    The number of display lines and character font
    0  0   0   0   0   0   0   0   0   1                    can not be changed after this point.
    0  0   0   0   0   0   0   1 I/D S                        Display off
                                                              Display clear
                                                              Entry mode set
Initialization ends
8-Bit Ineterface
                                                 15
                    Power on
         RS R/W DB7 DB6 DB5 DB4                      BF can be checked after the following instructions.
          0  0   0   0   1   0                       When BF is not checked , the waiting time between
          0  0   0   0   1   0                       instructions is longer than execution instruction time.
          0  0   N F     *   *
                                                    Function set ( Set interface to be 4 bits long. )
          0  0   0   0   0   0                      Interface is 8 bits in length.
          0  0   1   0   0   0
          0  0   0   0   0   0                      Function set ( Interface is 4 bits long. Specify
          0  0   0   0   0   1                      the number of display lines and character font. )
          0  0   0   0   0   0                      The number of display lines and character font
          0  0   0   1 I/D S                        can not be changed after this point.
                                                    Display off
                                                    Display clear
                                                    Entry mode set
Initialization ends
4-Bit Ineterface
16