Home
ETC ELCD user`s manual
Contents
1. DIMENSION 80 4 gt 4 75 gt l 64 5 lo 2 5PIE ELCD162 or ELCD162 BL 98 4 4 23 A b lo 9 d N o O 2 5PIE ELCD204 or ELCD204 BL Comfile Technology PC RS232 9 PIN 6 7 8 9 87 7 4 gt 82 gt i 618 E lo LO Q 2 5PIE ELCD164 or ELCD164 BL 122 115 99 5 EN FO T ELCD162 BIG or ELCD162 BIG BL ELCD SERIES CIRCUIT DRAWING 5V 5V 3 COMFILE Technology ELCD SERIES HOW TO USE Connect 3kines connector attached to LCD module to HOST Microcontroller and PC can be used as HOST and connect 5V and GND connect RX line to TX terminal of PC or I O port of PICmicro 5V ELCD module If you need to connect to RS232C port of PC or other devices you have to organize extra level conversion circuit as the following picture Because that 10V flows through RS232C line you need to convert it into 5V level If you use ERX port it is same as using the following circuit 5V 10K ohm RS232C TX ELCD module 10Kohm Send 5V level of signal in the forms of 8bit NONE parity 1 STOP bit to RX terminal of ELCD module Bit Time gt 5V GND Start BO Bl B2 B3 B4 B5 B6 B7 Stop Comfile Technology ELCD SERIES Bit Time determines baud rate When Bit Tine is 52mS relate
2. Comfile Technology ELCD SERIES OPTIONR EQU 01H PAGE 1 PCL EQU 02H TRISA EQU 05H TRISB EQU 06H VARIABLE LOOP CNT OCH VARIABLE VARIABLE DELAY TIMER VARIABLE DELAYT TIMER QFH VARIABLE FETCH SEQ 10H DEFINE Io TX 0 BIT DEFINITION CF EQU 0 STATUS DC EQU 4 ZF EQU 2 PD EQU 3 TO EQU 4 RPO EQU 5 RBIF EQU 0 INTCON REGISTER INTF EQU 4 RTIF EQU 2 RBIE EQU 3 INTE EQU 4 RTIE EQU 5 EEIE EQU 6 GIE EQU 7 INTEDG EQU 6 RBPU EQU 7 MAIN ROUTINE ORG 0 GOTO SIJAK GOTO SIJAK GOTO SIJAK GOTO SIJAK SIJAK RAM_CLEAR MOVLW MOVWF FSR RAM 4 INDIR INCF FSR BTFSS FSR6 GOTO RAM 1 BSF STATUS RPO MOVLW 00000000 MOVWF TRISA 1 COMFILE Technology ELCD SERIES MOVLW MOVWF MOVLW MOVWF BCF CLRF MAIN LINE 0 NEXT 0 BTFSC GOTO CALL CALL INCF GOTO NEXT 01 CLRF MOVLW CALL LINE 1 MOVLW CALL MOVLW CALL MOVLW CALL MOVLW CALL NEXT 1 BTFSC GOTO CALL CALL INCF GOTO NEXT 11 CLRF MOVLW CALL GOTO Comfile Technology B 00000000 TRISB B 00001111 OPTIONR STATUS RPO PCLATH OAOH TX PROC 200 DELAY US OA1H TX PROC 00H TX PROC 00H TX PROC 2 TX PROC FETCH NEXT 01 DATAO TBL TX PROC FETCH SEQ NEXT 0 FETCH SEQ 00H TX PROC OA1H TX PROC 00H TX PROC 01H TX PROC 2 TX PROC FETCH SEQA NEXT 11 DATA1 TBL TX PROC FETCH SEQ NEXT 1 FETCH SEQ 00H TX PROC MAIN LOOP Enable Wa
3. Refer to the following simple example SET PICBUS HIGH CLS LOCATE 0 0 PRINT SERIAL LCD MOD LOCATE 9 1 PRINT COMFILE HOW TO USE USER DEFINED AREA ELCD has eight user defined areas and users can stored certain BITMAP data in the area and display on LCD screen In order the process PICBASIC uses BUSOUT command The following example show how to display arrow mark on LCD BITMAP has 5 8 of size SET PICBUS HIGH LCDINIT BUSOUT amp 5 8 0 0 0 15 15 0 0 0 BUSOUT amp HA5 9 0 amp H10 amp H18 amp H1C amp H1C amp H18 amp H10 0 LOCATE 0 0 PRINT 8 9 USAGE WITH PICMICRO ASSEMBLY LANGUAGE The following example is to control serial LCD by in Assembly language Although some devices which have built in UART such as PIC16C7X can make it by hardware TX function it is recommended to make it by software In order to execute the following program RX terminal of serial LCD must be connected to portO of PORTB Device is PIC16C711 using 4MHz clock The delay time used in the following program is for execution at 48 baud rate 4MHz If you execute it at 19200 baud rate you should adjust the delay time When you execute the program 16x2 of serial LCD displays follows LINE 1 COMFILE TECHNOLO LINE 2 LCD CONTROLLER LIST 16 711 F INHX8M FILE DEFINITION INDIR EQU 00H PAGEO RTCC EQU 01H PC EQU 02H STATUS EQU 03H FSR EQU 04H PORTA EQU 05H PORTB EQU 06H PCLATH EQU OAH
4. 1 rcv PIN BO byte TRISB 0x85 byte PORTB 5 void main char i TRISB 1 delay ms 200 Wait for initialization of LCD printf c c 0xa3 0xa1 while 1 9 1 0 0 II locate 0 0 printf Y cCOMFILE SERIAL 2 0 printf c c c 0xa1 0 1 II locate 0 1 MODULE ed 96c 0xa2 i 0 i Comfile Technology 10
5. ELCD SERIES INTRODUCTION ALCD is Serial LCD module which is controlled through Serial communication Most of existing LCD adopts Parallel communication which needs lots of control lines and complicated control On the other hand ALCD adopts Serial communication which needs only one or two lines to transmit data and display it on LCD In addition ALCD allows users to use LCD with easy even they don t have comprehensive knowledge of LCD module GENERAL DESCRIPTION Various size from 16x2 lines to 20x4lines 3lines interface GND 5V RX 5V level of RS232C protocol select one of 19200 and 4800 baud rate Built in functions such as location control screen clear cursor management and etc MODEL Model Range of display Backlight ELCD 162 16BY2 N A ELCD 162 BL 16BY2 LED ELCD 164 16BY4 N A ELCD 164 BL 16BY4 LED ELCD 204 20 BY 4 N A ELCD 204 BL 20 BY 4 LED ELCD 162 BIG 16 BY 2 N A ELCD 162 BIG BL 16 BY 2 LED LAYOUT amp OUTLINE RX 5V GND lt Piicture 1 gt Front view lt Picture 2 gt Rear view When JP1 is cut baud rate is 4800 Otherwise baud rate is 19200 Factory default is that JP1 is shorted JP1 is jumper type in some model 1 COMFILE Technology ELCD SERIES ERX is port receiving 10V of RS232 signal directly You can make direct control from PC with connection shown as the following picture ELCDxxx
6. d baud rate is 9200 When 104 5 then 4800 baud rate To display characters on ELCD screen you have to send data in the forms of command and data For instance when you send LOCATE command you have to send 0A1H command code first and send two bytes of location data X axis Y axis continuously The following table describes command code and format of ELCD Command Example Transmitte Execution Description Hexadecimal d bytes time p Initialize LCD AO AO 1 10mS There needs 10mS of delay at least after sending command Clear LCD screen A301 52 1 2 Display location is set at 0 0 automatically Appoint location of display AES et Pr STEM 3 X axis is from 0 to 20 Y axis is from 0 to 3 Y Display characters on LCD screen sing 9 pee ee variable 0 must be sent at end of string End Code A3 0C A3 0C 2 Cursor OFF A3 OE 2 Cursor ON Default A4 08 03 01 OB Eight character code from 8 to 15 is available for A4 Code Data 8 10 user defined area By sending certain BITMAP AA A3 80 30 f data to the area users can display special codes COMFILE Technology ELCD SERIES USAGE IN PICBASIC Because that PICBASIC has dedicated command for control serial LCD users don t have to take care of LCD command code They can use serial LCD module with ease by only LOCATE PRINT CLS etc Refer to PICBASIC databook for detailed information
7. tch dog 1 8 LCD initialization command DELAY aroud 600US LOCATE 0 0 ROW 0 COLO String command PRINT End of string ELCD SERIES DATAO TBL MOVF ANDWF ADDWF RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW DATA1 TBL MOVF ANDWF ADDWF RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW RETLW TX PROC MOVWF MOVLW MOVWF BCF CALL TX 1 CLRWDT RRF BTFSS BCF BTFSC BSF CALL DECFSZ GOTO BSF CALL FETCH_SEQ W OFH PC O M F T T H O U O FETCH SEQW OFH PC O T R O BF1 8 Because 8BIT transmission LOOP IO TX DELAY ONE BF1 STATUS CF IO TX STATUS CF IO TX DELAY ONE LOOP CNT TX 1 IO TX DELAY ONE COMFILE Technology ELCD SERIES RETURN DELAY ONE 4800 gt 208US Delay 64 192000 gt 52US Delay 14 MOVLW 44 19200 Baud Rate MOVLW 64 4800 Baud Rate DELAY_US MOVWF DELAY TIMER DLO DECFSZ DELAY TIMER GOTO DLO RETURN END USAGE WITH PICMICRO C LANGUAGE If you use C language you can control serial LCD much simpler The following example is for controlling serial LCD by CCS C PlCmicro C compiler CCS Device is PIC16C711 using 4MHz clock include 16c711 h fuse lt 4000000 When 4MHz fuse rs232 baud 19200 xmit B
Download Pdf Manuals
Related Search
Related Contents
Owner's Manual - TOSHIBA ESTIA Luft Wasser Wärmepumpe Autronica Autroprime User guide ーnstructi。n MP工こ * JUXTA Manuaー PT信芍変換器 Sony VAIO C140G TZ-HDT620/621シリーズ向け DiXiM CATV Player説明書(Android版) Protocol (96-well) - Norgen Biotek Corp. 80773 Bouncer 2L IB 1_8_OUT Muvit MUSLI0536 mobile phone case Copyright © All rights reserved.
Failed to retrieve file