Home
        SC2004 20x4 Characters Serial LCD Module
         Contents
1.  40     Level    254  43    length    254  44    length    254  45    row number      254  46    column number          Set outputs    OxFE  0x2F    output value      254  47    output value         Set P2 as GPIO    Set P2 as Keypad Inputs    OxFE  0x30  Ox FF    OxFE  0x30  OxFE    254  48  255    254 48  254          Set cursor position    OxFE  0x32    row number      column  number     www siliconcraft net    254  50    row number       column num   ber      4 27 2010       SILIGCON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual                            Command Code  Hexadecimal  Code  Decimal   Draw Vertical Graph OxFE  0x33    column number     height  254  51   column number      height    Print stored texts on selected row OxFE  0x34    row number       memory 254  52    row number      memory loca   location   tion    Print big numbers OxFE  0x63    4 bytes ASCII numbers   254  99    4 bytes ASCII numbers    Define Custom Characters OxFE  0x64    64 Bytes Bitmap Data   254  100    64 Bytes ASCII Bitmap Data    Defines texts messages OxFE    memory location       20 Bytes text 254    memory location       20 bytes text  message   message    95 0    1 a as ie es a a eae A ne  Ho WoW Wo Woo   II  AS  E JL JL Ji    gt  JDL JIEL JIL   AR o a   a ei aa a Se AS Se  O O Se A O A Hoo n MO N  Sa p e S pal ee   ee   s   AAA  o a al a a i o ee i iia i  TEE ET Hoo oe oT  E AE AE AE A eS IE AE  l EE    L  JL  JL  L  Iw ae   a Sa a ii A E ae A as Ide ae  Ho
2.  oT WoW om I oUt  JE AE HEEE SE aI eee alee Se   pa ee   E   Le  ESE    AA A   emer   epee      r        ie  F      L   r      Es  F        L        R250 x 4    Figure  19  Mechanical Dimension   units in mm   Maximum height   27 mm    10 www siliconcraft net 4 27 2010    SILICON CRAFT SC2004A   20x4 Characters Serial LCD Display User   s Manual    125 0    85 0          42 5             111 0       Figure 20   Mounting Kit dimension   units in mm   Thickness   1 5 mm    11 www siliconcraft net 4 27 2010    
3. 4   Row 4    103  Row 3    102  Row 2    101  Row 1    COM    o    anna    0 5V de   a Je   GESS    Analog E  Inputs  e us    ie 2  i   14  s    na E   x  z o a Bal        q   N  4    P2  Header    000000000       Y  N    Fig 5  GPIO   Keypad Connector       Fig 4  SC2004A Back View       O  Not Used  5 Not Used  Ol TXD  TTL       O  RXD TIL     O  TXD RS232   E O  RXD RS232     O  COM  Pl  Fig 7  Mating Connector for P1 P2   Molex C Grid 0 1      Fig 6  Communication Port    DB9 Female Connector       Fig 8  Connection to RS232 DB9 Connector Fig  9 Optional Accessories  RS232 Cable    Communication   Communication with SC2004 is through its UART serial port either RS232 or TTL interface   8 data bits  no parity   1 stop bit   8 N 1     Baud rate is programmable to 9600  bps or 19200 bps    Factory default    Displaying texts  SC2004A displays whatever characters it receives from the serial port  starting from the top left corner  Supported    internal characters is listed in Table 1     2 www siliconcraft net 4 27 2010    SILICON    CRAFT SC2004A   20x4 Characters Serial LCD Display User   s Manual    S  voor wo  wi wow  ve  CG a  oom  MPO   Sop    ome HADA a FFOaq Table 1  Supported Characters  wwa    AEN PREM AA  pomo  LSI S    LIMITES pe  so  FSD TE   DR PL  wwo  EE    a es Ly  slo BIPM   FAN  wmf    POW Iw FFF ION  woes  co   S   PUES  coma AAD TY  coun KET 212 LTO   F  coo FEREK A   APE OR  ewj  ALL E   coo  SIM  Vitae  a eS  wolo  fa LIM   aE A  wfo  APPO   RO    Contr
4. D Display User   s Manual    GPIO on P2    IO Mode   Each pin can be configured as input or output      When configured as input  internal pull up resistor is activated   When configured as output  each IO is capable of sinking or sourcing 20 mA of current at 5V       Configure GPIO command    O    OxFE   0x32     GPIO Direction      Each bit in    GPIO Direction     set the direction of  the GPIO  where    1    set to output and  0    set to  input     To control GPIOs set as output use command  OxFE  Ox2F     output         1    to set      0    to clear   Bit on GPIO set as input   will be ignored     060000000090  0600400009090    MM      m  LCD will send  p7 p7 OxFC  0x00     input    Fig 15  Tact Switch Con  Fig 16  LED Connection when the input is activated   nection Example IO 1 con  Example IO 3 configured   Switch pressed    figured as input as output    Keypad Mode    Column 1    To set P2 header as keypad input  send command    Column 2    OxFE  0x30   OxFE       Column 3    Keypress Response Code          1 OxFC  OxFE  OxFF ee   2 OxFC  OxEF  OxFF   3 OxFC  OxFF  OxFE   A OxFC  OxFF  OxEF   4 OxFC  OxFD  OxFF Fig 17  Keypad Connection to P2  5 OxFC  OxDF  OxFF   6 OxFC  OxFF  OxFD   B OxFC  OxFF  0xDF a ia   1 OxFC  OxFB  OxFF 5 106   Column 2     8 OxFC  OxBF  OxFF O   ear   9 OxFC  OxFF  OxFB O o   C OxFC  OxFF  OxBF e 101  Row 1      OxFC  0xF7  OxFF E   0 OxFC  Ox7F  OxFF p2     OxFC  OxFF  0xF7   D OxFC  OxFF  0x7F   7 www siliconcraft net 4 27 2010    SILIG
5. ON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual    Saving the user   s settings onto non volatile Flash Memory  User   s setting         Backlight brightness level    e Custom Characters   e Texts Messages   o P2 Headers Functions     Baud rate    Can be made permanent so that its retains the user   s setting even after the module is powered down    To do this   send the save settings command after you have entered all your settings    OxFE  0x20   When settings is saved  the module response with OxFE  0x20 0x20 indicating successful save operation     Changing the Baud Rate  9600 bps command  OxFE  OxlE    19200 bps command  OxFE  0x1F  Send save settings command  Baud rate will only be changed on the next power up cycle     SC2004A pp Software  This software runs on Windows PC designed to test and configure SC2004     Available for free from www siliconcraft net download htm   You can use it to create the custom characters  define the stored texts messages and test all the functionality of  SC2004    Hexadecimal code of all command sent to the LCD will be displayed along with all the responded code from the  LCD     Communication Data Monitor  HEX     Transmitted Bytes    Received Bytes      Figure 18  Communication Monitor from SC2004App Software    Electrical Specification    Power Supply  9 to 12VDC Communication Interface   RS232   TTL  Current consumption   25mA   Backlight Off   Maximum input voltage at TTL input  5 5V  Backlight Off Output Hig
6. SILIGON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual       Fig 1  SC2004A YG    SC2004A is an intelligence LCD module design to ease  project development that requires a LCD display    Its RS232 interface board receives and interpret serial data  and output the data to the LCD display accordingly   SC2004A works with any host controller with serial UART  port     SC2004A replaces older version SC2004     Display Option Available  1  SC2004A YG Dark Characters on Yellow Green    LED backlight  SC2004A Features Features 2  SC2004A B White Characters on Blue LED     RS232 or serial TTL interface backlight  o Controllable LED backlight brightness 3  SC2004A W Dark Characters on White LED     85 Bytes UART receive buffer eliminates backlight    delay requirement between commands  Bar graph drawing commands  20 messages storage for easy retrieval  each    ANKA N N A A A  o    20 characters wide        eeee  Large Numbers Display Function   8 GPIOs individually configurable as input or  output    4x4 Keypad Interface   2 Analog Inputs  0 to 5V range     8 User   s Define Characters   Programmable baud rate 9600 19200 bps   9 to 12VDC Power Supply       Fig 2  SC2004A B       Fig 3  SC2004A W       Fig 4  Optional Aluminum Panel Mounting Plate    www siliconcraft net 4 27 2010    SILICON   CRAFT SC2004A   20x4 Characters Serial LCD Display User   s Manual    Connecting SC2004A    108   Column 4    107   Column 3   9 12VDC 106   Column 2    IO5   Column 1    10
7. eously     Cursor Control   Cursor is the indicator of the current position on the  LCD where the character is to be displayed  By de   fault  the cursor is hidden  To turn it on send com   mand   OxFE 0x01 for underline type cursor or OxFE 0x02  for block blinking type of cursor   To hide it   send command OxFE 0x03    Figure 11  Row and Column Positions       Cursor can be moved to any position on the screen by command  OxFE 0x32  row number   column number    Example  to move cursor to row 2  column 10  OxFE 0x32 0x02 0x0A    Delete row  Texts on any row can be cleared by command OxFE 0x2D  row number   Cursor is moved to the beginning of the selected row after execution of this command    Delete column    Texts on any row can be cleared by command OxFE 0x2E  column number   Cursor is moved to the next column at row 3 after execution of this command    4 www siliconcraft net 4 27 2010    SILIGON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual    LED Backlight Control  The backlight is turn on by command OxFE 0x06 and turn off by command OxFE 0x07    Brightness is control with command OxFE 0x28    Brightness level    Where brightness level   50 min  250 max  Backlight is turn on when the module is powered up     Texts Messages Storage  20 memory locations is reserved for storage of commonly used messages  Each is 20 characters wide     Messages can be programmed by user with the command   OxFE   memory location address      20 bytes texts including spac
8. es    Where memory location address is OxC8   200 Decimal   for location 0 and OxDB   219 Decimal   for location 19  respectively    Messages is retrieved and displayed with command   OxFE 0x34   row number where text to be displayed      memory location address 0 to 19      Big Numbers  SC2004 is capable of drawing 4 big numbers each spanning 4 rows by 4 columns     Initialize big numbers command must be issued before this command can be used  OxFE   0x08  Draw big numbers command is OxFE  0x63     4 digits ASCII numbers     Supported numbers are 0 to 9 and space   0x20      To draw numbers     2004     on the screen  First clear the LCD   Initialized big number    OxFE 0x08     Send OxFE 0x63   0x32   0x30  0x30   0x34       Figure 12   Draw Big Numbers Example    Analog Ports    0 5VDC AN  Fig 13  Analog Ports Inputs       gt   COM    Analog 1  amp  2 measure voltage of O to 5V    Read Analog 1   Command  OxFE  0x0B   Response  OxFA   ADC Value MSB    ADC Value LSB   Read Analog 2   Command  OxFE  0x0C   Response  OxFB   ADC Value MSB    ADC Value LSB     ADC value is 1024 if input is 5V    5 www siliconcraft net 4 27 2010    SILIGON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual    Bar Graph    Graph can be drawn from left to right or right to left  The  starting point of the graph is the current cursor position   Initialize horizontal graph command   OxFE 0x04   must be  issued before this command can be used    In the example in Figure 15  the star
9. h Voltage Level   SV  SC2004A YG Max 300mA   Min 150mA Maximum sink source current at output pin   20mA    SC2004A B W Max 50mA   Min 30mA  Operating Temperature  0  C to 50  C    Storage Temperature   10  C to 60  C  LCD Data    Viewing Direction  6 o   clock  Character size  2 95 x 4 75 mm  Dot Size  0 55 x 0 55 mm  Dot pitch  0 60 x 0 60 mm    8 www siliconcraft net 4 27 2010    SC2004A   20x4 Characters Serial LCD Display User   s Manual                         Command Summary   Command Code   Hexadecimal   Code   Decimal    Cursor Home Ox0B 11  Move cursor to the beginning of the next Ox0C 12   row   Clear LCD Ox0D 13  Cursor On   Underline   OxFE   0x01 254  1  Cursor On   Blinking   OxFE  0x02 254  2  Cursor Off OxFE  0x03 254  3  Initialize horizontal graph OxFE  0x04 254  4  Initialize vertical graph OxFE  0x05 254 5  Backlight On OxFE  0x06 254  6  Backlight Off OxFE  0x07 254  7  Initialize Custom Characters OxFE  0x08 254  8  Initialize Big Numbers OxFE  0x09 254  9  Read Analog 1 Value OxFE  Ox0A 254  10  Read Analog 2 Value OxFE  O0x0B 254  11  Set baud rate to 9600 bps OxFE  0x1E 254  30  Set baud rate to 19200 bps OxFE  Ox1F 254  31  Save settings OxFE  0x20 254  32    Set Backlight Brightness   Draw horizontal graph   left to right    Draw horizontal graph   right to left    Clear selected row    Clear selected column    OxFE  0x28     Level    OxFE  0x2B     length    OxFE  0x2C    length    OxFE  0x2D    row number       OxFE  0x2E   column number      254 
10. ol Characters          Ox08 Backspace Move cursor one position left and delete the character  OxOB Cursor Home Send cursor to top left corner   LCD screen unchanged   Ox0C Next Line Move cursor to the beginning of the next line    Ox0D Clear Screen Clear LCD screen and send cursor home    Ox0E Cursor Left Move cursor one position to the left    OxOF Cursor Right Move cursor one position to the right     Text Display Example  To display    LCD Demonstration  4 2 2       Send      LCD Demonstration      OxOC  0x34 0x20   OxXFD  0x20  0x32  0x3D 0x32  Total   25 Bytes    3 www siliconcraft net 4 27 2010    SILIGON  GRAF 1 SC2004A   20x4 Characters Serial LCD Display User   s Manual    User   s Defined Characters  Apart from the character set listed in Figure 11  8 memory spaces are reserved for user   s defined characters   Each custom character is 5 x 8 pixels matrix represented by 8 bytes of data     munan Figure 10  Example of a Custom Character    Custom character above is represented by   0x04  0x06  0x07  0x04  0x04  0x04  0x04  Ox 1F   Custom characters can be defined by sending command  OxFE   0x64    8 Bytes x 8 Bytes Custom Characters Bitmap      Before these custom characters can be displayed  it must be loaded to the LCD memory    This is done by command OxFE 0x08    Send 0x00 through 0x07 to display custom character O to 7 respectively    Note   Graph drawing command shares the same bitmap memory with custom characters on the LCD  Thus  both  cannot be used simultan
11. ting point of the graph is  at column 10        Figure 13  Horizontal Bar Graph    To draw the graph at row 0  first set the cursor to row 0  column 10  Then issue the draw left to right graph com   mand   OxFE   Ox2B     length of the graph  in this case 26     The maximum length of the graph depends on the starting position of the graph  In the example above  maximum  length is 50    If a new graph is drawn over the existing graph  the existing graph will not be automatically override  This is OK if  the new graph length is greater than the existing one  However  if the new graph is shorter in length  the graph must  be erase first before a new graph is drawn    Ensure that cursor position is set to the beginning of the graph first     Uertical Gr E   Vertical bar graph can be drawn in any column with row 3 as  be ori  A a ar arr bottom of the graph  Maximum height is 32  Demonstration Before the vertical graph command can be used  initialize  vertical graph command must be issued   OxFE  0x05    Vertical graph 1s draw by command   OxFE 0x33   column number    height    Unlike horizontal graph  drawing a new graph over the exist   ing one will automatically erase the existing graph first        Figure 14  Vertical Bar Graph    Note   Custom Characters  Horizontal graph   Vertical Graph and Big Numbers shares the same characters set   Thus  only one of them can be used at any one time     6 www siliconcraft net 4 27 2010    SILIGON  GRAF 1 SC2004A   20x4 Characters Serial LC
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Mode d`emploi  Bioenno Power SC-1220JU SOLAR CHARGE  L`artiste et son œuvre, le curateur et son exposition, le critique d`art  Samsung ML-2250 用戶手冊  Choosing the right tools for the job  取扱説明書    Nomad User Manual    Copyright © All rights reserved. 
   Failed to retrieve file