Home
LCD Module User Manual - Solar LED lighting,LED lighting,LCD
Contents
1. example EERE EEE EERE EEE Graphic Text EERE EEE B EERE EEE EERE EEE EEE AND EXOR Note Only text display is attributed because attribute data is located in graphic RAM area Attribute function Reverse display Character blink and Inhibit are called Attribute The attribute data is written into the graphic area defined by Control word set command Only text display is possible in Attribute Function mode graphic display is automatically disabled However the Display Mode command must be used to turn both Text and Graphic on in order for the Attribute function to be available The attribute data of the 1st character in text area is written at the 1st 1 byte in graphic area and attribute data of n th character is written at the n th 1 byte in graphic area Attribute function is defined as follows Attribute RAM 1 Bye X X X X d3 de di do d2 di do 0 normal display d olo 1 o 1 reverse display o 1 1 inbibitdisplay o o blink of normal display 1 1 blink of reverse display FUNCTION 0 o 0 X don t care 12 2 4
2. TG12864F 04WAO0 A00 Page 18 of 27 Vatronix Note A Status check for auto mode STA2 STA3 should be checked between each data Auto reset should be performed after checking STA3 1 STA2 1 Refer following flow chart e 3T a 1 Repetition Status check 2 Auto reset B2H STAQ 1 STA2 Set Address Pointer Status check 1 STAD 1 Set Address data upper 8 bits see et Address Pointer Status check 1 YES RETURN Send Set Address Pointer command ee m Repetition PE STAO 1 STA3 Status check 2 YES RETURN TG12864F 04WAO0 A00 Page 19 of 27 Vatronix 12 2 7 Data read write 3 4 11000100 Data Write and Nonvariable ADP 11000101 C5H Data Read and Nonvariable ADP This command is used for data write from MPU to external display RAM to MPU Data write read should be executed after setting address by address pointer can be automatically increment or decrement by setting this command Note This command is necessary for each 1 byte data H H 11000011 Data Read and Decrement ADP C4H i i Refer following flow chart Address pointer 1000H STAO 1 Example Data AAH AAH is written in 1000H address Address
3. 30 O WR ALE P 19 5V 9 20 VSS 31 12 RD EA VP INTO 19 18 1 X2 TG12864F 04WAO0 A00 Page 8 of 27 Vatronix 10 Timing Characteristics D NENNEN DO to D7 m __ m DH DO to 07 tacc Test Conditions Unless Otherwise Noted VDD 5 0 V 10 VSS 0 V 20 75 C Item Symbol Test conditions C D Set up Time tcps C D Hold Time tcDH CE RD WR pulse width CE tap Data Set up Time tps Data Hold Time tDH Access Time tACC Output Hold Time TG12864F 04WAO0 A00 Page 9 of 27 Vatronix 11 Flowchart of communications with MPU 11 1 Status Read A status check must be performed before data is read or written Status Check Status of LCM can be read from data lines Data bus RD L WR H CE L C D H 00 07 Status word LCM The LCM Status word format is as follows MSB LSB STAO capability of command execution ______ 0 disable 1 STA1 check capability of data read write 0 disable 1 enable STA2 check capability of auto mode data read 0 disable 1 enable check capability of auto mode data write 0 disable 1 enable 4 not use STA5 capability of controller operation 0 disable 1 enable STA6 error flag using screen peek copy command 0 no error STA 7 check the condition blink 0 display off 1 normal display Note1 It is necessary
4. ORmode 0 10007001 81W 89H EXOR intemal CG ROM F1000011 83HeBH AND 10007100 84Hi amp CH TexAtrbud External CG RAM Display Mode 10010000 90H 92H bink off oonan 93H blinkon 94H Text on graphic off 98H _ Text off graphic on oona 9cH Texton graphicon Cursor Patern 10100020 A0H A7H 1 6Lines CURSOR Height 10110000 BoH __ SetData Auto Write ReadMrite 1010001 em Set Data Auto Read B2M EXIT auto operation 11000000 _ Data Write and Increment ReadwWite _ 11000001 __ Read and increment ADP 11000010 2 DATA Data Write and Decrement ADP 110000 Read and Decrement ADP 11000100 C4H Data Data Wile and Nonvariable ADF 111000101 csH Data Read and Nonvariable ADP Screen Peek 1100000 EOH Seeenpek Screen Copy 1101000 EBH Copy Bit SeReset 11100x FOHGF7H fex TG12864F 04WAO0 A00 Page 12 of 27 Vatronix 12 2 Description of command 12 2 1 Regist
5. OO0BF 00 HI 9067 oor ooo HI OO0FD Mm HI 0127 0128 mm 0123 0128 0129 0122 mm 0137 osc 013D 014 014 III 0148 ___________ LCD 4 The address in graphic area can be continuous and RAM area can be used without ineffective area if graphic area is defined the same number as the actual column number of LCD display 12 2 3 Mode set xx owm Fio Nw mode TEXTATTRIBUTE mde 10000000 intemal character generatormode 10001xxx external character generator mode X invalid The display mode is defined by this command The display mode doesn t change until this command is sent Logically OR EXOR AND of text and graphic display can be displayed When internal character generator mode is selected character code OOH 7FH are selected from built in character generator RM The character code 80H FFH are automatically selected from external character generator RAM TG12864F 04WAO0 A00 Page 16 of 27 Vatronix
6. to check STAO and STA1 at the same time There is a possibility of error operation due to a hardware interrupt Note 2 For most modes STAO STA1 are used as a status check Note 3 2 5 are valid in Auto 5 5 are invalid Status checking flow a b STATUS AUTO MODE STATUS 1 STA2 1 Read or 5 1 Write YES RETURN RETURN Note 4 It is impossible to save status check in the case of command that is MSB 0 To have the delay time cannot be save status check The interrupt of hardware is happened at the end of lines If command of MSBO is sent in this period the command executing is waited The state of waiting is not known without to check status The sending next command or data is disregarded or rewrites data of waiting command TG12864F 04WAO0 A00 Page 10 of 27 Vatronix 11 2 Data Set When using the LCM first set the data 1 or 2 data then set the command Procedure for sending a command a The case of 1 data b The case of 2 data 1 T STAO 1 STAO 1 Note When sending more than two data the last datum or last two data is valid TG12864F 04WAO0 A00 Page 11 of 27 Vatronix 12 User instruction Definitions 12 1 Command Table SeusRead sos O Reg Setting Set Contro Word 01000001 ByeNma OOH Settexarea ________ Mode Set 1000000
7. 01 TG12864F 04WAO0 A00 Page 26 of 27 Vatronix 16 Revision records Version Ref pages Revision Items Date 00 All Pages New release 2008 08 29 TG12864F 04WAO0 A00 Page 27 of 27
8. 63c cannot separate upper screen data and lower screen data Refer following flow chart Screen copy start Set Address Pointer Status check 1 Screen copy E8H STAO 1 1 Status check 5 1 2 Status check STAO 1 1 Note This command is available when hardware column number and software column number are the same The column number of this LCD module is fixed to CL 32 Software column number is related to Set Text Area and Set Graphic Area command TG12864F 04WAO0 A00 Page 22 of 27 Vatronix 12 2 10 Bit set reset FUNCTION CODE BIN CODE HEX Bit reset 11110XXX FOH F7H Bit set 11111XXX F8H FFH This command is used to set or reset a bit of 1 byte is specified by address pointer Plural bits in the 1 byte data cannot be set reset at a time o STAO 1 TG12864F 04WAO0 A00 Page 23 of 27 Vatronix 13 Initializing flow chart Initialize of LCM is required for Mode set Control word set after power on Following is the one example of initialize procedure of 240x64 dots display In case of 6x8 dots font Foor ower on Power on ard reset use reset terminal RESET L 1msec minimum after VDD gt 4 75V Modest 1 10000000 Control word set Graphic home position set 00000000 home address Graphic home position 000 00000000 01000010 command Numbe
9. AL O OO ta Addon 128X64 DOTS ODOT 28817 5628 AL VA 62 00 0 30 1 60 68 00 0 30 76 50 0 30 78 00 0 30 DBO IAA Control Signals DB7 a VSS VDD 128SEGs VO LCD AVR Controller IRD T6963C C es ponen 128 64 DOTS LED BACKLIGHT R Current Limited resistor TG12864F 04WAO0 A00 Page 7 of 27 Vatronix 9 Application circuit 9 1 The LCD module can be directly connected to a 8080 series MCU The LCM can be used with a 8080 series MPU as shown in the following application circuit 10V Interfaces with the 8080 series MPU TO Tl gt ta e e wor 10 11 12 P13 14 15 16 17 RXD TXD INTO X1 X2 wih ojo PSEN_ ALE P RESET EA VP AT89C52 MCU P20 P00 P01 P02 P03 P04 P05 P06 P07 INTI 32 13 TG12864F 9 2 Interfaces with the 6800 series MPU 5V 10V 10K CON1 L 1 VSS 10K 2 VSS 3 VDD 4 VO 3 13 ol INTI 6 RDO To AT89C52 MCU 7 15 M avs 39 11 38 co 10 1 TXD 1 37 N DBO P10 P02 2 11 3 12082 3 12 L 33 He 13 DB3 4 34 P13 P05 14 DB4 5 33 P14 P06 15 DB5 6 pls 32 16 DB6 7 P16 17 DB7 8 p17 PSEN b 22 18 FS 16 E
10. Display mode CODE 10010000 1001XX10 cursor on blink off 100101XX text on graphic off 100110XX text off graphic on TG12864F 04WAO0 A00 Page 17 of 27 Vatronix _ jo Cursor blink on 1 off 0 Cursor display on 1 off 0 Text display on 1 off 0 Graphic display on 1 off 0 Note It is necessary to turn on text display and graphic display in following case 1 Combination of text graphic display 2 Attribute function 12 2 5 Cursor pattern select CODE FUNCTION AOH A7H 1 8 line cursor When cursor display is ON this command selects the cursor pattern from 1 line to 8 lines The cursor address is defined by cursor pointer set command 1 line cursor 2 lines cursor 8 lines cursor 12 2 6 Data auto read write CODEN _ CODE HEX 81H Dataautoreadset This command is convenient to send full screen data from external display RAM After setting auto mode data write or read command is not necessary between each data Data auto write or read command should follow the Address pointer set and address pointer is automatically increment by 1 after each data auto reset is necessary to return normal operation because all data is regarded display data and no command can be accepted in the auto mode
11. H 0060H 0080H ____ _ o0CoH _ OfMFH 2 Oi21H 0140H oH OSH 0160H oeth O1COH OIDFH 3 Text area set D1 00 41H The columns of display are defined by the hardware setting This command can be used to adjust columns of display TG12864F 04WAO0 A00 Page 15 of 27 Vatronix example LCD size 20 columns 4 lines Text home address OOOOH Text area 0014H CL 32 columns 4 lines 0000 0001 Ono 0013 0014 0014 0015 Mie 0027 0028 002 008 003C 003 0035 LU gt ec 4 Graphic area set D1 00 43H The columns of display are defined by the hardware setting This command can be used to adjust columns of graphic display example LCD size 20 columns 2 lines Graphic home address 0000H Graphic area 0014H CL 32 columns 2 lines 00277 0028 mmm 0033 004 0o50 005B 0008 0064 O06F 0077 0078 mm 0083 008 0 0097 oor ooo HI 0083 0
12. Vatronix LCD Module User Manual Customer MASS PRODUCTION CODE TG12864F 04WAO DRAWING NO M TG12864F 04WAO0 A00 Approved By Customer Approved By Checked By Prepared By Vatronix Holdings Limited ADD 5F No 10 BLG WenGuang Industrial Zone XiLi Nanshan District Shenzhen China TEL 0086 755 83234801 83233058 FAX 0086 755 83225058 E mail sales Vatronix com Http Www vatronix com TG12864F 04WAO0 A00 Page 1 of 27 Vatronix Contents 1 Precautions in Use of LOM P3 2 General Specification P3 Absolute Maximum RatingS P3 4 Electrical CharactersliGSsseeeeeuunreu sun en s enin esu meu senem eii rni P4 5 Backlight Information P4 6 Optical Characteristic Baeseskeasnunee neni iiie Kain Rudi P5 7 Interface Description P6 8 Contour Drawing amp Block Diagram P7 9 Application P8 10 Timing Characteristics P9 11 Flowchart of communications with MPU P10 12 User instruction Definitions P12 13 Initi
13. alizing flow chart P24 14 LCD RAM P25 15 Standard Character pattern P26 16 Revision recordS P27 TG12864F 04WAO0 A00 Page 2 of 27 Vatronix 1 Precautions in Use of LCD Module 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 Outline dimension 78 0 W X70 0 H X12 1MAX T View area 62 0 W X44 0 H Active area 56 28 W X38 36 H Dot size 0 40 W X0 56 H Dot pitch 0 44 W X0 60 H 3 Absolute Maximum Ratings TG12864F 04WAO0 A00 Page 3 of 27 Vatronix 4 Electrical Characteristics as es v ww mae _ www w ve v Input Low Volt V IL 5 Backlight Information Absolute Maximum ratings 25 Reverse voltage 0 Js vj R
14. arting address of external display RAM for Text display is defined by this command The text home address shows the left end and most upper position The relationship of external display RAM address and display position TH O TH CGL TH TA TH TA CL TA TA PTH 2TA CL TH 2TA TA O Cee E S ____ TH n1 CL TH Text Home address TA Text Area number columns CL this LCD module fixed to CL 32 example Text home address 0000H Text area 0020H CL 32 columns 4 lines TG12864F 04WAO0 A00 Page 14 of 27 Vatronix 0000H O01EH 001FH 0020H 0021H 003FH 0040H 0041H O005EH 005FH 0060H 0000H 007 007FH 2 Graphic home address set D1 D2 42H The starting address of external display RAM for Graphic display is defined by this command The graphic home address shows the left end and most upper line The relationship of external display RAM address and display position G e ______ GeGAMGA _ GHe GAL Graphic Home address GA Graphic area number columns CL this LCD module fixed to CL 32 example Graphic home address 0000H Graphic area 0020H CL 32 columns 2 lines _ 0000H 0020H __ 0040H O05
15. er setting CODE FUNCTION D1 D2 00100001 CURSOR POINTER SET X address Y address 00100010 OFFSET REGISTER SET DATA DBO DBA is valid 00H 00100100 ADDRESS POINTER SET LOW address HIGH address 1 CURSOR POINTER SET D1 D2 21H The position of cursor is specified by X address Y address The cursor position is moved only by this command The cursor pointer doesn t have the function of increment and decrement The shift of cursor are set by this command X address Y address are specified following X address OOH 4FH lower 7bits are valid Y address OOH 1FH lower 5bits are valid 1 1 screen drive 2 2 screen drive X ADRS 00 4FH X ADRS 00 4FH Y ADRS 00 0 Y ADRS OH 0OFH upper screen YADRS 10H 1FH lower screen 2 OFFSET REGISTER SET D1 00 22H The offset register is used to determine external Character Generator RAM area The LCM assign External character generator when character code set 80H to FFH in using internal character generator Character code OOH to 80H assign External Character Generator when External generator mode The senior five bits define the start address in external memory of the CG RAM area The next eight bits represent the character code of the character In internal CG ROM mode character codes 00H to 7FH represent the predefined internal CG ROM characters and codes 80H to FFH represent the user s own external characters In external CG RAM mode all 256 codes from 00H to FFH can be used to rep
16. everse Curent k ___ fua Absolute maximum forward Curent lim 1 Ime plus 10 Duty Power dissipation Pe _____ o mw Operating Temperature Range T oper 99 480 lt Storage Temperature Range ott 40 90 lt Electrical Optical Characteristics Ta 25 C If 80mA Wavelength Spectral line half Operating Voltage V Forward p nm widthA nm 0 15V Current mA TG12864F 04WAO0 A00 Page 4 of 27 Vatronix 6 Optical Characteristics ITEM SYMBOL CONDITION MIN TYPE MAX UNIT cer fo rat o u w m HB View Angles lllContrast Ratio z Visual angle direction Ge gt Brightness at non selected tate Selected state E Non selected state 3 8 ob E Bg Operating voltage for LCD driving time Nonselected Condition Selected Condition Nonselected Condition Brightness Decay Time fall time tf TG12864F 04WAO0 A00 Page 5 of 27 Vatronix 7 Interface Description s m Lead signalactveLow s om HL Hcommmd mer 5 TG12864F 04WAO0 A00 Page 6 of 27 Vatronix 8 Contour Drawing amp Block Diagram 12 10 4Q N 13 00 4 P2 54 19 48 26 800 AR
17. pointer is 1001H TG12864F 04WAO0 A00 Page 20 of 27 Vatronix 12 2 8 Screen peek CODE BIN CODE HEX FUNCTION This command is used to transfer displayed 1 byte data to data stack and this 1 byte data can be read from MPU by data access The logical combination data of text and graphic display on LCD screen can be read by this command The status STA6 should be checked just after screen peek command If the address command is not in graphic area this command ignored and status flag STA6 is set Refer following flow chart Screen peek start Set Status check 1 Screen EOH e Status check STA6 0 YES Status check 1 STAO 1 Note This command is available when hardware column number and software column number are the same The column number of this LCD module is fixed to CL 32 Software column number is related to Set Text Area and Set Graphic Area command TG12864F 04WAO0 A00 Page 21 of 27 Vatronix 12 2 9 Screen copy CODE BIN FUNCTION mooo This command is used to copy displayed 1 line data to graphic area The start point of 1 line data in the screen is determined by the address pointer Note a When the attribute of text is used this command cannot be used because attribute data is in the graphic area b In case of 2 screen drive this command cannot be used because T69
18. r of graphic area set 00101000 number of area Graphic 40x6 dots 00000000 0100001 1 command Text home position set 00000000 text home address Text home position 1000H 00010000 01000000 command Number of text area set 00101000 number of area text 40 column 00000000 01000001 command 00000000 graphic home address 00000000 00100100 command 01010101 11100000 10101010 11100000 XXXXXXXX Address pointer set 00000000 text home address address pointer 1000H 00010000 00100100 Data write text 00110100 11000000 00101111 Data 11000000 XXXXXXXX Display Mode Set text graphicon 1 10011100 Note 1 status check should be inserted between all command and data 2 Display mode set register is cleared no display mode by the hard reset and no display is appeared on LCD panel And just after Display Mode set 9CH written data is display on the LCD nitialize end Data Write Address pointer set address pointer 0000H TG12864F 04WAO0 A00 Page 24 of 27 Vatronix 14 LCD RAM map DOT 0 0 DOT 127 0 DOT 0 63 DOT 127 63 bit x 1 8bitx16 Line 1 ps 00 Line 64 loz oe o p po 02 01 loo TG12864F 04WAO0 A00 Page 25 of 27 Vatronix 15 Standard Character pattern The relation between character codes and character pattern CG ROM TYPE 01
19. resent the user s own characters The three least significant bits indicate one of the eight rows of eight dots that define the character s shape MSB LSB AD15 AD14 AD13 012 AD11 AD10 AD9 AD8 07 AD6 AD2 ADO Offset Register Data 5 bit Character Code 8 bit Line Scan 3 bit The relationship between display RAM address and offset register TG12864F 04WAO0 A00 Page 13 of 27 Vatronix Example 1 Offset register 02H Character code 80H Character generator RAM start address 1400H MSB AD15 014 AD13 AD12 AD9 0 0 0 1 0 1 0 0 0 Character generator RAM start address 1400H address data 1400H 00H 2 1402H 04H 1403H 04H 1404H 04H 1405H 04H 1406H 04H 1407H 00H 3 Set Address Pointer D1 D2 24H The address point set command is used to indicate the start address for writing to or reading from external RAM 12 2 2 Control word set CODE HEX FUNCTION D1 D2 01000000 40H TEXT HOME ADDRESS SET Low address High address 01000001 41H TEXT AREA SET Columns 00H 01000010 42H GRAPHIC HOME ADDRESS SET Low address High address 0100001 1 43H GRAPHIC AREA SET Columns 00H The home address and column size are defined by this command 1 Text home address set D1 D2 40H The st
Download Pdf Manuals
Related Search
Related Contents
AOC L47H861 Owner's Manual MANUALE DI SERVIZIO MANUEL D`UTILISATION FRANCO & Fils Philips SWV3032W User's Manual ScanFront300e/300eP Setup Guide Manuale generale ist0361V1.3 Added Features of Version 1.3 Zusätzliche Funktionen in Copyright © All rights reserved.
Failed to retrieve file