embedded LCD-DISPLAY Issue 02.2014 240x128 WITH INTELLIGENCE Dimension: 113x70x12mm TECHNICAL DATA * LCD GRAPHICS DISPLAY WITH A RANGE OF GRAPHICS FUNCTIONS * 8 BUILT-IN SOFT-FONTS * FONT ZOOM FROM approx. 2mm TO approx. 50mm, also ROTATED BY 90° * 3 DIFFERENT ONBOARD INTERFACES: RS-232, I²C BUS OR SPI BUS * 240x128 PIXELS WITH LED BACKLIGHT, BLUE NEGATIVE OR * BLACK&WHITE POSITIVE, FSTN TECHNOLOGY OR AMBER * POWER SUPPLY +5V@ TYPICAL 75mA / 210mA (WITHOUT / WITH LED BACKLIGHT) * POSITIONING ACCURATE TO THE PIXEL WITH ALL FUNCTIONS * STRAIGHT LINE, POINT, AREA, AND/OR/EXOR, BAR GRAPH... * CLIPBOARD FUNCTIONS, PULL-DOWN MENUS * UP TO 256 IMAGES STORABLE INTERNALLY * UP TO 256 MACROS PROGRAMMABLE (32 kB EEPROM ONBOARD) * COMBINATIONS OF TEXT AND GRAPHICS, FLASHING ATTRIBUTES: ON/OFF/INVERTED * BACKLIGHT CAN BE SWITCHED BY SOFTWARE * ANALOG TOUCH PANEL: VARIABLE GRID * FREELY DEFINABLE KEYS AND SWITCHES ORDERING CODES DISPLAYS 240x128 DOTS, WHITE LED-BACKLIGHT, BLUENEGATIVE AS ABOVE, BUT WITHTOUCH PANEL 240x128 DOTS, WHITE LED-BACKLIGHT, POSITIVE MODE, FSTN AS ABOVE, BUT WITHTOUCH PANEL 240x128 DOTS, WHITE LED-BACKLIGHT, POSITIVE MODE, FSTN AS ABOVE, BUT WITHTOUCH PANEL STARTERKIT INCLUDES EAeDIP240B-7LWP AND EVALUATION BOARDWITH USB FOR DIRECT CONNECTIONTO PC AND INTERFACE BOARDS FOR CONNECTIONWITHYOUR HOST SYSTEM AS ABOVE, BUTWITH EA eDIP240J-7LWTP ADDTIOTNAL PARTS MOUNTING BEZEL (ALUMINIUM), BLACK ANODIZED SOCKET 1x20, 4.5mm HIGH (1 piece) EA eDIP240B-7LW EA eDIP240B-7LWTP EA eDIP240J-7LW EA eDIP240J-7LWTP EA eDIP240J-7LA EA eDIP240J-7LATP EA EVALeDIP240B EA EVALeDIP240J EA 0FP241-7SW EA B254-20 Zeppelinstraße 19 · D-82205 Gilching · Phone +49-(0)8105-778090 · Fax +49-(0)8105-778099 · www.lcd-module.de · [email protected] Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 2 Documentation of revision Date Type 15.02.04 V1.0 24.11.04 V1.1 18.01.05 Old New Reason / Description Preliminary version Modulo 8 New Command Macro-Process #MD../#MZ../#MS.. Adaptor MAX232 circuit diagramm Modulo 256 new firmware typing error in protocol description V1.2 New Command Terminal-Cursor Save/Restore #TS/#TR New Command Bargraph send continous #AQ 2 new firmware 07.04.05 V1.3 New addressable 2-wire RS485 Interface with SN75176 New 32 additional I2C Addresses New Commands #AG, #SI, #KA new firmware 13.05.05 V1.4 Bugfix in SPI- I2C-Mode after wrong Packet (NAK) new firmware 04.10.05 V1.5 some problems with opertating >60°C (display corrupted) New Protocoll Info Command 'DC2 1 P bcc' Bugfix in #GZ (pointsize), #B RLOU (typ2+3 linewitdh) new firmware 18.10.05 V1.6 OUT-port functionality on not used configuration pins new firmware 17.02.06 - Drawing for mounting panel EA 0FP241-7SW included - 27.04.06 - 29.06.07 - V/A 61.0mm Revised drawing (V/A = 60.4mm and pcb Rev.D) Insert EA eDIP240J-7LA CONTENTS GENERAL ..................................................................................................................... 3 ELECTRICAL SPECIFICATIONS ................................................................................... 4 RS-232 .......................................................................................................................... 5 SPI ................................................................................................................................ 6 I²C ................................................................................................................................ 7 SOFTWARE PROTOCOL ............................................................................................ 8-9 TOUCH PANEL ............................................................................................................ 10 CHARACTER SETS .................................................................................................. 11-12 COMMANDS / FUNCTIONS INTABULAR FORM ..................................................... 13-15 ACKNOWLEDGEMENTS FROM THE CONTROL PANEL............................................. 16 PROGRAMMING EXAMPLE ........................................................................................ 17 PROGRAMMING MACROS ...................................................................................... 18-19 DIMENSIONS .............................................................................................................. 20 Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 3 GENERAL The EA eDIP240-7 is the world’s first display with integrated intelligence! As well as a number of built-in fonts which can be used with pixel accuracy it also features a whole range of sophisticated graphics functions. Supplied with 5V, the display is ready for operation immediately. It is controlled via one of the 3 integrated RS232, SPI or I²C interfaces. Graphics commands similar to high-level languages are used for programming. There is no longer any need for the time-consuming programming of character sets and graphics routines. The ease of use of this display with its touch panel reduces development time dramatically. HARDWARE The display is designed to work with an operating voltage of +5V. Data transfer is either serial and asynchronous using the RS-232 format or synchronous using the SPI or I²C specification. A simple protocol is used for all data transfer variants to improve data reliability. ANALOGTOUCH PANEL The EA eDIP240B-7LWTP and EA eDIP240J-7LWTP versions are equipped with an integrated touch panel. You can make entries and menu or bar graph settings by touching the display. The labeling of the “keys” is flexible and can also be changed during runtime (different languages, icons). The drawing of the individual “keys” and the labeling is handled by the integrated software. LED BACKLIGHT,TYPES B AND J All displays in blue-and-white (B) and black-and-white (J) are equipped with a modern, low power consumption LED backlight. Whereas the black&white and the amber-colored display can still be read even when the backlight is switched off completely, the blue-white display requires a minimum level of illumination to be legible. The backlight can be switched off with a software command and the brightness can be adjusted. We recommend the black&white version for use in direct sunlight. For all other applications, we recommend the high-contrast, blue-white version. Note that the white LED backlight is subject to aging. That means switching off or dimming backlight is a must for 24-hour-applications. Not so for the amber backlight. SOFTWARE The display is programmed by means of commands, such as Draw a rectangle from (0,0) to (64,15). No additional software or drivers are required. Strings can be placed with pixel accuracy. Flashing attributes can be assigned as often as you like – for graphics as well. Text and graphics can be combined at any time. Up to 16 different character sets can be used. Each one can be zoomed from 2 to 4 times. With the largest character set, the words and numbers displayed will fill the screen. ACCESSORIES Evaluation-Board (Programmer) for internal data flash memory The display is shipped fully programmed and with all fonts. The additional Evaluation-Board is thus generally not required. However, if the internal character sets have to be changed or extended, or if images or macros have to be stored internally, the Evaluation-Board EA 9777-2USB, which is available as an accessory, will burn the data/images you have created into the on-board EEPROM (32/64 kB) permanently. The Evaluation-Board runs under Windows and is connected to the PC’s USB interface. It is shipped with an interface cable and the installation software. The Evaluation-Board is equipped with serveral LEDs, pushbottons and potentiometer to test all peripherial modes of the eDIP. Interface-Expansion for Evaluation-Board (included in the Starter-Kit): Wtih the expansion EA 9777-2PE for the Evaluation-Board all interfaces of the display are made available with the help from small adapter boards: RS-232, RS-485, SPI, I²C, RS-232 (CMOS level). Further information you will find in the datasheet of the Evalution-Board. Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 4 SPEZIFICATION AND CHARACTERISTICS Characteristics Value Condition min. typ. max. Unit Operating Temperature -20 +70 °C Storage Temperature -30 +80 °C 90 %RH 5.5 V Storage Humidity < 40°C Operating Voltage 4.5 5.0 Input Low Voltage -0.5 0.2*VDD V Input High Voltage Pin Reset only 0.9*VDD VDD+0.5 V Input High Voltage except Reset 0.6*VDD VDD+0.5 V Input Leakage Current Pin MOSI only 1 uA 50 kOhms 0.7 V Input Pull-up Resistor 20 Output Low Voltage Output High Voltage 4.0 V Output Current 20 mA Backlight off 75 mA Backlight on 210 mA Current OUTPUT Beginning with firmware V1.6 and the higher the EA eDIP240 is able to provide up to 7 digital output for driving an external LED for example. Depending on the choosen interface mode RS232, SPI or I2C all non used configuration pins can be used as separate output lines. All lines used for output (open drain with internal pull-up) are like 1=HIGH level for interface mode configuration. Each output can be set by command ‘ESC YW n1 n2’ individually. Maximum current is 10mA per line. Because of internal pull-up construction the max. current is valid for L level only. So theoretically each line is able drive a LED direct. Larger current need to be amplified by use of a transistor or MOSFET. Relation Output <-> Pin No. Output No. RS232/RS422 SPI I2C Pin No. Symbol Pin No. Symbol Pin No. Symbol OUT1 OUT2 6 7 BAUD0 BAUD1 10 12 DORD OUT2 6 7 BA0 BA1 OUT3 OUT4 8 9 BAUD2 ADR0 13 14 DPOM CPOL 8 9 SA0 SA1 OUT5 OUT6 13 14 DPOM ADR1 15 CPHA 10 11 SA2 BA2 OUT7 15 ADR2 13 DPOM Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 5 RS-232/RS-422 INTERFACE Wiring the display as shown below selects the RS-232/RS-422 interface. The pin assignment is shown in the table on the right. The RxD and TxD lines have a 5V Pinout eDIP240-7 CMOS line level. If “genuine” RS- Pin Symbol In/Out Function Pin Symbol Function Ground Potential for logic (0V) 21 N.C. not connected 232 levels are required (e.g. for 1 GND 2 VDD Power supply for logic (+5V) 22 N.C. not connected direct connection to a PC), an 3 VADJ In Operating voltage for LC driving 23 N.C. not connected (input) external level converter such as the 4 VOUT Out Output voltage for LC driving 24 N.C. not connected 5 RESET L: Reset 25 N.C. not connected ICL232 is necessary. 6 BAUD0 In Baud Rate 0 26 N.C. not connected RS-232 / RS-422 mode 7 8 9 10 11 12 BAUD1 BAUD2 ADR0 RxD TxD EN485 In In In In Out Out Baud Rate 1 Baud Rate 2 Address 0 for RS-485 (V1.3 or later) Receive Data Transmit Data Transmit Enable for RS-485 driver L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 ADR1 In Address 1 for RS-485 (V1.3 or later) 15 ADR2 In Address 2 for RS-485 (V1.3 or later) 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer 27 28 29 30 31 32 N.C. N.C. N.C. N.C. N.C. N.C. not connected not connected not connected not connected not connected not connected 33 N.C. not connected 34 35 36 37 38 39 N.C. N.C. N.C. N.C. N.C. N.C. not connected not connected not connected not connected not connected not connected 40 N.C. not connected Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system. BAUD RATES The baud rate is set with pins 6, 7 and 8 (Baud0 through 2). The data format is set permanently to 8 data bits, 1 stop bit, no parity. RTS/CTS handshaking lines are not required. The integrated software protocol takes on the necessary control functions (see pages 8 and 9). Baud rates Baud0 Baud1 Baud2 0 0 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 1 1 Application example Data format 8,N,1 1200 2400 4800 9600 19200 38400 57600 115200 Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 6 SPI INTERFACE Wiring the display as shown below activates SPI mode. Data is then transferred over the serial, synchronous SPI interface. The DORD, CPOL and CPHA inputs are used to match the hardware conditions to the master. For Pinout eDIP240-7 example (see diagram below). Pin Symbol In/Out Function Pin Symbol Function SPI mode A reasonable communication is possible up to 100 kHz. Clock frequency may be rised up to 3 MHz, but in this case make shure, that there is a pause between 2 bytes of min. 100 µs. Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system. 1 2 GND VDD - Ground Potential for logic (0V) Power supply for logic (+5V) Operating voltage for LC driving 3 VADJ In (input) 4 VOUT Out Output voltage for LC driving 5 RESET L: Reset 6 SS In Slave Select 7 MOSI In Serial In 8 MISO Out Serial Out 9 CLK In Shift Clock 10 DORD In Data Order (0=MSB first; 1=LSB first) 11 SPIMODE In connect to GND for SPI interface open-drain with internal pullup 20..50k 12 OUT2 Out (V1.6 or later) L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 CPOL In Clock Polarity (0=LO 1=HI when idle) Clock Phase 15 CPHA In (sampled on 0=1st 1=2nd edge) 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer DATATRANSFER SPI Via the pins DORD, CPOL and CPHA transfer parameter will be set. Write operation: a clock rate up to 100 kHz is allowed without any stop. Together with a pause of 100 µs between every data byte a clock rate up to 3 MHz an be reached. Read operation: to read data (e.g. the "ACK" byte) a dummy byte (e.g . 0xFF) need to be sent. Note that the EA eDIP240-7 for internal operation does need a short time before providing the data; therefore a short pause of min. 6µs (no activity of CLK line) is needed for each byte. Same is with 100kHz operation. Application example 21 22 N.C. N.C. not connected not connected 23 N.C. not connected 24 25 26 27 28 29 30 31 N.C. N.C. N.C. N.C. N.C. N.C. N.C. N.C. not connected not connected not connected not connected not connected not connected not connected not connected 32 N.C. not connected 33 N.C. not connected 34 N.C. not connected 35 N.C. not connected 36 37 38 39 N.C. N.C. N.C. N.C. not connected not connected not connected not connected 40 N.C. not connected Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 7 I²C BUS INTERFACE Wiring the display as shown below allows the display to be operated directly on an I²C bus. 4 different base addresses and 8 Pinout eDIP240-7 different slave addresses can be Pin Symbol In/Out Function Pin Symbol Function 1 GND Ground Potential for logic (0V) 21 N.C. not connected selected at the display. 2 VDD Power supply for logic (+5V) 22 N.C. not connected A data transmission rate of up to 3 VADJ In Operating voltage for LC driving 23 N.C. not connected (input) 100kHz is possible. 4 VOUT Out Output voltage for LC driving 24 N.C. not connected L: Reset 25 N.C. not connected If transmitter will pause for min. 56 RESET BA0 In Basic Address 0 26 N.C. not connected In Basic Address 1 27 N.C. not connected 100 µs between each byte, SCL 7 BA1 8 SA0 In Slave Address 0 28 N.C. not connected may rise u to max. 400 kHz. 9 SA1 In Slave Address 1 29 N.C. not connected I²C-Bus mode 10 SA2 11 BA2 12 I2CMODE Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system. In In In Slave Address 2 Basic Address 2 (V1.3 or later) connect to GND for I²C interface L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 SDA Bidir. Serial Data Line 15 SCL In Serial Clock Line 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer 30 31 32 N.C. N.C. N.C. not connected not connected not connected 33 N.C. not connected 34 35 36 37 38 39 N.C. N.C. N.C. N.C. N.C. N.C. not connected not connected not connected not connected not connected not connected 40 N.C. not connected Note: The pins BA0 to 2, SA0 to 2, DPOM, DPROT and TEST/SBUF have an internal pullup, which is why only the LO level (L=0=GND) is to be actively applied. These pins must be left open for a Hi level (H=1). On pin 20 (SBUF) the display indicates with a low level that data is ready to be retrieved from the internal send buffer. The line can be connected to an interrupt input of the host system, for example. I²C - Address Pin 11,7,6 Base BA2 BA1 BA0 address L L L $10 L L H $20 L H L $30 L H H $40 H L L $70 H L H $90 H H L $B0 H H H $D0 I²C address D7 D6 D5 D4 D3 D2 D1 0 0 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 D0 S A 2 S A 1 S R A W 0 DATA TRANSFER I²C-BUS principle I2C-bus transfer: all pins open: Write $DE Read $DF - I²C-Start - Master-Transmit: EA eDIP-I²C-address (e.g. $DE), send smallprotocol package (data) - I²C-Stop - I²C-Start - Master-Read: EA eDIP-I²C-Address (e.g. $DF), read ACK-byte and opt. smallprotocoll package (data) - I²C-Stop Read operation: for internal operation the EA eDIP240-7 does need a short time before providing the data; therefore a short pause of min. 6µs is needed for each byte (no activity of SCL line). Application example Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 8 DATATRANSFER PROTOCOL (SMALL PROTOCOL) The protocol has an identical structure for all 3 interface types: RS-232, SPI and I²C. Each data transfer is embedded in a fixed frame with a checksum (protocol package). The EA eDIP240-7 acknowledges this package with the character <ACK> (=$06) on successful receipt or <NAK> (=$15) in the event of an incorrect checksum or receive buffer overflow. In the case of <NAK>, the entire package is rejected and must be sent again. Receiving the <ACK> byte means only that the protocol package is ok, there is no syntax check for the command. Note: it is neccessary to read the <ACK> byte in any case. If the host computer does not receive an acknowledgment, at least one byte is lost. In this case, the set timeout has to elapse before the package is sent again. The raw data volume per package is limited to 64 bytes (len <= 64). Commands longer than 64 bytes (e.g. Load image ESC UL...) must be divided up between a number of packages. All data in the packages are compiled again after being correctly received by the EA eDIP240-7. DEACTIVATINGTHE SMALL PROTOCOL For tests the protocol can be deactivated by closing the solder strap J2 (see page 20). In normal operation, however, you are urgently advised to activate the protocol. If you do not, any overflow of the receive buffer will not be detected. BUILDINGTHE SMALLPROTOCOL PACKAGES Command/Data to the display > < <DC1> len data... bcc <ACK> <DC1> = 17(dec.) = $11 <ACK> = 6(dec.) = $06 len = count of user data (without <DC1>, without checksum bcc) bcc = 1 byte = sum of all bytes incl. <DC1> and len, modulo 256 void SendData(unsigned char *buf, unsigned char len) { unsigned char i, bcc; Clear display and draw a line from 0,0 to 239,127 <DC1> len $11 $0A ESC D L ESC G D 0 0 239 127 $1B $44 $4C $1B $47 $44 $00 $00 $EF $7F bcc $DA The user data is transferred framed by <DC1>, the number of bytes (len) and the checksum (bcc). The display responds with <ACK>. → SendByte(0x11); bcc = 0x11; // Send DC1 SendByte(len); bcc = bcc + len; // Send data length for(i=0; i < len; i++) { SendByte(buf[i]); bcc = bcc + buf[i]; } // Send buf <ACK> ← Example to a complete data package $06 SendByte(bcc); } // Send checksum „C“ source code to transmit a data package Request for content of send buffer > < < <DC2> 1 S bcc <ACK> <DC1> len data... bcc <DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 S = 83(dez.) = $53 <ACK> = 6(dec.) = $06 len = count of user data (without <DC2>, without checksum bcc) bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256 The command sequence <DC2>, 1, S, bcc empties the display’s send buffer. The display replies with the acknowledgement <ACK> and the begins to send all the collected data such as touch keystrokes. Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 9 Request for buffer information > < < <DC2> 1 I This command queries whether user data is ready to be picked up an how full the display's receive buffer is. bcc <ACK> <DC2> 2 send buffer bytes ready receive buffer bytes free bcc <DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 I = 73(dez.) = $49 <ACK> = 6(dec.) = $06 send buffer bytes ready = count of bytes stored in send buffer receive buffer bytes free = count of bytes for free receive buffer bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256 Protocol settings > <DC2> < <ACK> 3 D packet size for send buffer timeout This is how the maximum package size that can be sent by the display can be limited. The default setting is a package size with up to 64 bytes of user data. The timeout can be set in increments of 1/100 seconds. The timeout is activated when individual bytes get lost. The entire package then has to be sent again. bcc <DC2> = 18(dec.) = $12 3 = 3(dez.) = $03 D = 68(dez.) = $44 packet size for send buffer = 1..64 (standard: 64) timeout = 1..255 in 1/100 seconds (standard: 200 = 2 seconds) bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256 <ACK> = 6(dec.) = $06 Request for protocol settings > < < <DC2> 1 P 3 max. packet size This command is used to query protocol settings. bcc <ACK> <DC2> akt. send packet size akt. timeout bcc <DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 P = 80(dez.) = $50 <ACK> = 6(dec.) = $06 max. packet size = count of maximum user data for 1 package (eDIP240-7 = 64) akt. send packet size = current package size for send akt. timeout = current timeout in 1/100 seconds bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256 Repeat the last package > < < <DC2> 1 R bcc <ACK> <DC1> <DC2> len data... bcc <DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 R = 82(dez.) = $52 <ACK> = 6(dec.) = $06 <DC1> = 17(dec.) = $11 len = count of user data in byte (without ckecksum, without <DC1> or <DC2>) bcc = 1 byte = sum of all bytes incl. <DC2> and len, modulo 256 If the most recently requested package contains an incorrect checksum, the entire package can be requested again. The reply can then be the contents of the send buffer (<DC1>) or the buffer/protocol information (<DC2>). Adressing (only for RS232/RS485) > <DC2> < <ACK> 3 A select or deselect adr bcc <DC2> = 18(dec.) = $12 3 = 3(dez.) = $03 A = 65(dez.) = $41 select or deselect: 'S' = $53 or 'D' = $44 adr = 0..255 bcc = 1 byte = sum of all bytes incl. <DC2> and adr, modulo 256 <ACK> = 6(dec.) = $06 This command can be used to select or deselect the eDIP with the address adr. EA eDIP240-7 Specifications may be changed without prior notice. Printing error reserved Page 10 TOUCH PANEL (EAeDIP240x-7LWTP only) The versions -7xxTP are supplied with an analog resistive touch panel. Up to 60 touch regions (buttons, switches, menus, bar graph entries), can be defined simultaneously. The fields can be defined to single-pixel accuracy. The display supports representation using easy-to-use commands (see page 15). When the touch “keys” are touched, they can be automatically inverted and an external buzzer (pin 16) can sound, indicating they have been touched. The defined return code of the “key” is transmitted via the serial interface, or an internal touch macro with the number of the return code is started (see page 18, Macro programming). TOUCH PANEL ADJUSTMENT The touch panel is perfectly adjusted and immediately ready for operation on delivery. As a result of aging and wear, it may become necessary to readjust the touch panel. Adjustment procedure: 1. Touch the touch panel at power-on and keep touching it. After the message “touch adjustment ?” appears, release the touch panel again (or issue the ‘ESC @’ command). 2. Touch the touch panel again within a second for at least a second. 3. Follow the instructions for adjustment (press the 2 points upper left and lower right). FRAMES AND KEY FORMS A frame type can be set by using the Draw frame or Draw frame box command or by drawing touch keys. 18 frame types are available (0= do not draw a frame). BITMAPS AS KEYS In addition to the frame types, which can be scaled to any size, you also have the option of using any bitmap images (in each case, a pair showing the not pressed and pressed statuses) as touch keys or switches. The LCD-Tools*) allows you to incorporate your own buttons in the form of images (compiler statement “PICTURE”). A button always comprises two monochrome Windows BMPs of the same size (one bitmap showing the normal representation of the touch key and one showing the pressed touch key). The active area of the touch key is derived automatically from the size of the button bitmaps. SWITCHES IN GROUPS (RADIO GROUP) Touch switches change their status from ON to OFF and vice versa each time they are touched. A number of touch switches can be grouped together (command: ‘ESC A R nr’). If a touch switch in an ‘nr’ group is now switched on, all other buttons in this group are automatically switched off. This means that one button is only ever on at a time. *) see our web site at http://www.lcd-module.de/deu/touch/touch.htm Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 11 INTEGRATED AND EXTERNAL FONTS Apart from the 8x8 terminal font (font no. 8), 3 additional monospaced fonts, 3 proportional fonts and 1 large numeric font are integrated as standard. The proportional fonts result in a more attractive appearance, and at the same time require less space on screen (e.g. the “i” is narrow and the “W” is wide). Each character can be positioned with pixel accuracy and the width and height can be scaled by a factor of 1 - 4. Each text can be output left justified, right justified or centered. 90° rotation e.g. for vertical installation of the display is also possible. Macro programming permits additional fonts to be integrated (up to 15). This is be done with a text editor and programmed using the LCD-Tools*) (EA 9777-1USB). Font 1: 4x6 monospaced Font 3: 7x12 monospaced Font 2: 6x8 monospaced Font 4: GENEVA10 proportional Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 12 Font 5: CHICAGO14 proportional Font 6: Swiss30 Bold proportional Font 7: big numbers BigZif57 TYPEFACE This picture of a screen image shows all the integrated standard fonts. Macro programming permits some additional fonts to be integrated. Any conceivable font (including Chinese or Cyrillic) can be created with a text editor and programmed using the LCD-Toolkit *) and programmer EA 9777-1USB. *) see our web site at http://www.lcd-module.de/deu/touch/touch.htm Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 13 ALL COMMANDS AT A GLANCE The built-in intelligence allows an easy creation of your individual screen content. Below mentioned commands can be used either directly via the serial interface (see page 17) or together with the selfdefinable macro (see page 18). EA eDIP240-7: Command table 1 Command Codes Remarks after reset Commands for terminal mode Formfeed FF (dez:12) Carriage Return CR(13) Linefeed LF (dez:10) Cursor position Cursor On / Off Terminal invisible Terminal visible Show revision code ^L The contents of the terminal area are deleted and the cursor is placed at pos. (1,1) ^M Cursor to the beginning of the line on the extreme left Cursor is set to the next line n1=column; n2=line; origin upper-left corner (1,1) ^J ESC T P n1 C n1 n2 n1=0: Cursor is invisible; n1=1: Cursor flashes; A Terminal display not visible; outputs are ignored E V Terminal display is visible again; Show revision code on terminal layer e.g. "EA eDIP240-7 V1.1 Rev.B" 1,1 1 visibl Comands for outputting strings Output string L: left justified C: centered R: right justified Set font Font zoom factor Add. line spacing Text angle Text mode Text blink attribute String for terminal L x1 ESC ESC Z Z y1 A string (...) is output to xx1,yy1. ´NUL´ ($00), 'LF' ($0A) or 'CR' ($0D) = end of string; several lines are separated by the character '|' ($7C);; text between two '~' ($7E) characters flashes on/off; text between two '@' ($40) characters flashes inversely; Text NUL ... C R F n1 Z Y n1 n1 W n1 Text output angle: n1=0: 0°; n1=1: 90° V n1 Set mode n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace; B T n1 R x1 y1 x2 y2 Draw four straight lines as a rectangle from x1,y1 to x2,y2 D W x1 x1 y1 y1 x2 y2 Draw straight line from x1,y1 to x2,y2 Draw a straight line from last end point to x1, y1 P x1 y1 Set one dot at coordinates x1, y1 Z V n1 n1 n2 n1 = X-Punktgröße (1..15); n2 = Y-Punktgröße (1..15); Drawing mode n1: 1=set; 2=delete; 3=inverse; L x1 y1 x2 y2 Delete an area from x1,y1 to x2,yy2 (all pixels out) I S x1 x1 y1 y1 x2 x2 y2 y2 Invert an area from x1,y1 to x2,y2 (invert all pixels Fill an area from x1,y1 to x2,y2 (all pixels on) M x1 y1 x2 y2 n1 Draw an area from x1,y1 to x2,y2 with pattern n1 (always set) O x1 y1 x2 y2 n1 Draw a rectangle x1,y1 to x2,y2 with fill pattern n1 (always replace) R T x1 x1 y1 y1 x2 x2 y2 y2 n1 Draw a frame of the type n1 from x1,y1 to x2,y2 (always set) n1 Draw a frame box of the type n1 from x1,y1 to x2,y2 (always replace) C x1 y1 I L x1 x1 y1 y1 n2 Set font with the number n1 (0..16) n2 n1 = X zoom factor (1x..4x); n2 = Y zoom factor (1x..4x) Insert n1 pixels between two lines of text as additional line spacing n1: 0=text solid, blink off; 1=text blink on/off; 2=text blink inverted; Command for outputting a string in a macro to the terminal Text ... 0 1,1 0 4 0 Draw straight lines and points Draw rectangle Draw straight line Continue straight line Draw point Point size/line thickness Graphic mode ESC G 0 1,1 1 Change/draw rectangular areas Delete area Invert area Fill area Area with fill pattern Draw box Draw frame Draw frame box ESC R Bitmap image commands Image from clipboard Load internal image Load image Image zoom factor Image angle Image link mode ESC U The current contents of the clipboard are loaded to x1,y1 with all the image attributes no BLH data ... Load internal image with the no. (0..255) from EEPROM to x1,y1 Load an image to x1,y1; see image structure for image data Z n1 W n1 Output angle: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270° Mode n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace n1=0 Image attribute blink off; n1=1 image blink mode on/off; n1=2 image blink mode inverse A full image is requested in Windows BMP format. The image header is sent first via RS232, followed by the actual image data (9662 bytes). V n1 Image flashing attribute B n1 Send hard copy H x1 y1 n1 = X zoom factor (1x..4x); n2 = Y zoom factor (1x..4x) x2 y2 1,1 0 4 0 Display commands (effect on the entire display) Delete display Invert display Fill display Switch display off ESC D Switch display on Show clip-board Show current L Delete display contents (all pixels off) I Invert display contents (invert all pixels) S Fill display contents (all pixels on) A Display contents become invisible but are retained, commands continue to be possible E C Display contents become visible again Show content of clip-board. Standard display output is no longer visible visibl Switch back to noraml operation. Standard display output is visible N Flashing area commands Delete flashing attribute Inverted flashing area Pattern for flashing area Set flashing time ESC Q L I x1 x1 y1 y1 x2 x2 y2 y2 M x1 y1 x2 y2 Z n1 Delete the flashing attribute from x1,y1 to x2,y2 Define an inverted flashing area from x1,y1 to x2,y2 n1 Define flashing area with pattern n1 (on/off) from x1,y1 to x2,y2 Set the flashing time n1= 1..15 in 1/10s; 0=deactivate flashing function 6 Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 14 EA eDIP240-7: Command table 2 Command Codes Remarks after reset Bar graph commands R L O U n1 x1 A n1 valu Z S n1 n1 Delete bar graph D n1 Save display contents Save area Restore area Copy area B S R x1 y1 K x1 y1 Define bar graph Update bar graph Draw new bar graph Send bar graph value ESC B y1 x2 Define bar graph to L(eft), R(ight), O(ben) (up), U(nten) (down) with the "nr" (1..32). x1,y1,x2,y2 form the rectangle enclosing the No y2 sv ev type pat bar graph. sv, ev are the values for 0% and 100%. bar type=0: bar; type=1: bar in rectangle; pat=bar pattern define type=2: line; type=3: line in rectangle; pat= line width Set and draw the bar graph with the number n1 to the new user "value." Draw the bar graph with the number n1 completely Send the current value of bar graph no. n1 on the serial interface Makes definition of bar graph with number n1 invalid. If bar graph was defined as a touch field, active area will become inactive again n2=0: above function and bar graph keeps visible; n2=1: bar graph will be cleared n2 Clipboard commands (buffer for image areas) ESC C x2 The entire contents of the display are copied to the clipboard as an image area The image area from x1,y1 to x2,y2 is copied to the clipboard The image area on the clipboard is copied back its original position in the display y2 The image area on the clipboard is copied to x1,y1 in the display Settings for menu/pop-up and touch panel Set font for menu Set zoom factor add. line spacing Angle for menu ESC N Set automatic function for touch 0 1,1 F Z Y n1 n1 n1 W n1 Pop-up direction: n1=0: 0°; n1=1: 90°; n1 n1=1: touch menu will pop-up automatically; n1=0: touch menu will not pop-up but 'ESC T 1 0' will be sent to host; this one is able to pop-up with command 'ESC N T 2' then. T All following menu entries will be written in font n1 (0..16) n1 = X-zoom factor (1x..4x); n2 = Y-zoom factor (1x..4x) Add n1 dots as additional line spacing between 2 lines n2 0 Menu/pop-up commands (not valid for touch panel use; for that see table "Commands for the touch panel") D Define menu and show Next item Previous item ESC N x1 y1 no A menu is drawn as of the corner x1,y1 with the current menu font. no= currently inverted entry (e.g.: 1 = 1st. entry) text:= string with menu items. text NUL The different items are separated by the character '|' ($7C,dec:124) ... (e.g. "item1|item2|item3"). The background of the menu is saved automatically. If a menu is already defined, it is automatically canceled+deleted. N P End of menu/send S End of menu/macro M End of menu/cancel A Run macro Run touch macros Run menu macro N T M The next item is inverted or remains at the end The previous item is inverted or remains at the beginning The menu is removed from the display and replaced with the original background. The current item is sent as a number (1..n) (0=no menu displayed) The menu is removed from the display and replaced with the original background. Menu macro n1 is called for item 1, menu macro nr+1 for entry 2, and so on The menu is removed from the display and replaced with the original background n1 Macro commands ESC M n1 n1 n1 Call the (normal) macro with the number n1 (0..255) (max. 7 levels) Call the touch macro with the number n1 (0..255) (max. 7 levels) Call the menu macro with the number n1 (0..255) (max. 7 levels) Automatic/cyclic macro Macro with delay (normal-) macro n1 (0..255) runs after delay of ts/10s. May be stopped/prevented by any command via serial interface or by touch panel G n1 ts E n1 n2 ts Autom. macro cyclical A n1 n2 ts Autom. macro pingpong J n1 n2 ts Autom. macro cyclical, once ESC Automatically macros n1..n2 once only; ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use Automatically macros n1..n2 cyclically; ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use Automatically macros n1..n2..n1 (pingpong); ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use M Process macro commands (from V1.1) Define process macro Process macro speed ESC M Stop process macro D no type Z no S n1 n3 n4 ts ts Define process macro number no (1..4) (1=highest priority). (normal-) macro n3..n4 will be served with ts/10s delay. type: 1=once only; 2=cyclical; 3=pingpong n3..n4..n3 Assign a new delay for process no (1..4) with ts /10s value. ts=0 will stop the automatic All process macro will be stopped with n1=0 and continued with n1=1 e.g. to make settings or output via serial interface without interference 1 Other commands Wait (pause) ESC X ESC Y Beep on/off Backlight on/off ts S ts L ts Backlight brightness H n1 Send bytes B cnt Send version Send version ESC S V I data ... Wait ts tenths of a second before the next command is executed. Switch beeper output (pin 16) ts=2..255 for ts 1/10s to high ts=0 set permanent low, ts=1 set permanent high LED backlight n1=0: OFF; n1=1: ON; ts=2..255: switches backlight on for ts /10s and then off Adjust brightness of backlight n1=0..100% (non linear) cnt (=1..255) bytes are sent via serial interface data ... = cnt. bytes (e.g. control of an external printer) Software versionwill be sent as a string ;e.g. "EA eDIP240-7 V1.2 Rev.B" (V1.3) eDIP sends internal information OFF 1 100 Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 15 EA eDIP240-7: Commands for the touch panel Command Codes Remarks after reset Touch: Define areas Define touch key (key remains depressed as long as there is contact) ESC T x1 y1 x2 U x1 y1 n1 code K x1 y1 x2 J x1 y1 n1 code y2 A dow Define touch switch (status of the switch toggles after each contact on/off) ESC y2 A dow 'T': The area from xx1,yy1 to xx2,yy2 is defined as a key. 'U': Image no=1..255 is loaded to xx1,yy2 and defined as a key. 'down code':(1-255) Return/touch macro when key pressed. 'up code': (1-255) Return/touch macro when key released. dow up text NUL (down/up code = 0 press/release not reported). code code ... ´text´: A string that is centered with the current touch font in the touch key follows; the first character determines the alignment of the text (C=centered, L=left, R=right justified); multiline text is separated with the character '|' ($7C, dec: 124); up text NUL 'NUL': ($00) = end of string code ... 'K': The area from xx1,yy1 to xx2,yy2 is defined as a switch. 'J': Image no. n1 is loaded to xx1,yy2 and defined as a switch. 'down code': (1-255) Return/touch macro when switched on. 'up code': (1-255) Return/touch macro when switched off. dow up text NUL code code ... (down/up code = 0 on/off not reported). 'text´: A string that is centered with the current touch font in the touch key follows; the first character determines the alignment of the text (C=centered, L=left, R=right justified); multiline text is separated with the character '|' ($7C, dec: 124); up text NUL 'NUL': ($00) = end of string code ... Define touch key with menu function ESC A M x1 y1 x2 The area from xx1,yy1 to xx2,yy2 is defined as a menu key. 'down code':(1-255) Return/touch macro when pressed. 'up Code':(1-255) Return/touch macro when menu canceled 'mnu Code':(1-255) Return/menu macro+(item no. 1) after selection of a menu item. (down/up code = 0 activation/cancellation of the menu not reported). 'text':= string with the menu key text and the menu items. the first dow up mnu text y2 code code code ... NUL character determines the direction in which the menu opens (R=right, L=left, O=up, U=down). The second character determines the alignment of the touch key text . The different items are separated by the character '|' ($7C,dec:124) (e.g. "uckey|item1|item2|item3". The key text is drawn with the current touch font and the menu items are drawn with the current menu font. The background of the menu is saved automatically. Define drawing area ESC A D x1 y1 x2 y2 Define free touch area ESC A H x1 y1 x2 y2 Set bargraph by touch ESC A B no A drawing area is defined. You can then draw with a line width of n1 within the corner coordinates xx1,yy1 and xx2,yy2. A freely usable touch area is defined. Touch actions (down, up and drag) within the corner coordinates xx1,yy1 and xx2,yy2 are sent via serial interface. The bar graph with the no=1..32 n1 is defined for input by touch panel. E I n1 n1 The frame type for the display of touch keys/switches is set with n1 Automatic inversion when touch key touched: n1=0=OFF; n1=1=ON; S n1 Tone sounds briefly when a touch key is touched: n1=0=OFF; n1=1=ON N X code P code R no L code n1 V x1 y1 Send bar value on/off Q n1 Touch query on/off A n1 Label font Label zoom factor Add. line spacing Label angle F no Z Y n1 n1 W n1 n1 Touch: settings Touch frame Touch key response Invert touch key Query touch switch Set touch switch Define radiogroup ESC A 1 1 1 The touch key with the assigned return code is inverted manually The status of the switch (off=0; on=1) is sent via the serial interface code n1 Delete touch area n1 The status of the switch is changed by means of a command n1=0=off; n1=1=on Within a group only one single switch will be active; ret of them will be deactivated 0 no=0: next switch definitions will keep free of all groups no=1..255: next switch definitions will join to goup number no The touch area with the return code (code=0: all touch areas) is removed from the touch query. When n1=0, the area remains visible on the display; when n1=1, the area is deleted from the display. Remove a special touch area x1,y1 from touch query; n1=0: area stys visible; n1=1: areawill be overwritten with background color Automatic transmission of a new bar graph value by touch input is deactivated (n1=0) or 1 activated (n1=1) Touch query is deactivated (n1=0) or activated (n1=1) 1 Touch: Label font ESC A Set font with the number no=0..16 for touch key label n2 n1 = X zoom factor (1x..4x); n2 = Y zoom factor (1x..4x) Insert n1 pixels between two lines of text as additional line spacing Text output angle: n1=0: 0°; n1=1: 90° 0 1,1 0 Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 16 Response of EA eDIP240-7 via serial interface Id num data Remark Automatic response ESC A 1 code Response from the analog touch panel when a key/switch is pressed. code = down or up code of the key/switch. Only transmitted if no corresponding touch macro is defined ! ESC N 1 code After a menu item is selected by touch, the selected menu item code is transmitted. Only transmitted if no corresponding touch macro is defined ! ESC B 2 no ESC T 0 ESC H 3 type ESC N 1 no ESC B 2 no value ESC X 2 code value When a bar graph is set by touch, the current value of the bar is transmitted with no. Transmission of the bar value must be activated (see the 'ESC A Q n1' command). value x1 When automatic-open-mode for menu function is disabled (via command 'ESC N T n1'), this request will be sent to host. Then it is necessary that host will open menu with command 'ESC N T 2'. The following is transmitted in the case of a free touch area event: type=0 release; type=1 is touch; type=2 is drag within the free touch area at the x,y coordinates (16-bit values) y1 Response only when requested ESC I count X-Pixel, Y-Pixel, Version, Touchinfo, CRC-ROM, CRC-ROM reference EEP in KB, (abV1.4) CRC-EEP, CRC-EEP reference, EEPcount ESC V count char. string... After the 'ESC N S' command, the currently selected menu item is transmitted. no=0: no menu item is selected. After the 'ESC B S n1' command, the current value of the bar is transmitted with no. After the 'ESC A X' command, the current status of the touch switch is transmitted with code (the return code). value = 0 or 1 (V1.3: count=14; V1.4: count = 21) After command 'ESC S I' eDIP sends internal information (16-Bit integer Werte LO- HI-Byte) Version: LO-Byte = Versionno. Software; HI-Byte = Versionno. Hardware Touchinfo: LO-Byte = '-|+' X-axis; HI-Byte = '-|+' Y-axis EEPcount: Couint of used bytes in EEPROM (3 Byte: LO-, MID- HI-Byte) After the 'ESC S V' command, the version of the eDIP firmware is transmitted as a string (end code is the character NUL = $00). The first two bytes of the string always start with 'EA' Response without length specification (num) ESC U L x1 y1 *.blh image data... After command 'ESC UH....' is received a screen copy will be sent x1,y1 = coordinates of the top left corner *.blh image data: 2 bytes (width, height) + count of image data ((width+7)/8*height) Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system. TERMINAL MODE The display provides a terminal function. When you switch it on, a cursor flashes in the first line, indicating that the display is ready for operation. All the incoming characters are displayed in ASCII format on the terminal (exception: CR,LF,FF,ESC,’#’). To achieve this, a correctly functioning protocol frame is required (pages 8 and 9) or the protocol must be deactivated (close solder strap J2, page 8 and 20). Line breaks are automatic or can be executed by means of the ‘LF’ character. If the last line is full, the contents of the terminal scroll upward. The ´FF´ character (formfeed) clears the terminal. The character ‘#’ is used as an escape character and thus cannot be displayed directly on the terminal. If the character ‘#’ is to be output on the terminal, it must be transmitted twice: ‘##’. The terminal has a separate output layer and is thus completely independent of the graphic outputs. If the graphics screen is cleared with ‘ESC Terminal-Font (Font 0): 8x8 monospaced DL’, for example, that does not affect the contents of the terminal window. The terminal font is permanently in ROM and can also be used for graphics output ‘ESC Z...’ (set FONT no.=0). Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 17 USINGTHE SERIAL INTERFACE The EA eDIP240-7 can be programmed by means of various integrated commands. Each command begins with ESCAPE or HASH followed by one or two command letters and some parameters. There thus are two ways to send commands: 1. ASCII mode - The ESC character corresponds to the character ‘#’ (hex: $23, dec: 35). - The command letters come directly after the ‘#’ character. - The parameters are transmitted as plain text (several ASCII characters) followed by a separating character (such as a comma ‘,’) - also after the last parameter e.g.: #GD0,0,239,127, - Strings (text) are written directly without quotation marks and terminated with CR (hex: $0D) or LF (hex: $0A). 2. Binary mode - The escape character corresponds to the character ESC (hex: $1B, dec: 27). - The command letters are sent directly. - The x, y coordinates and all the other parameters are transmitted as 8-bit binary values (1 byte). - Strings (text) are terminated with CR (hex: $0D) or LF (hex: $0A) or NUL (hex: $00). No separating characters, such as spaces or commas, may be used in binary mode. The commands require no final byte, such as a carriage return (apart from the string: $00). FILL PATTERNS A pattern type can be set as a parameter with some commands. In this way, rectangular areas and bar graphs for instance can be filled with different patterns. There are 16 internal fill patterns available. EA eDIP240-7 Specifications may be changed without prior notice. Printing error reserved Page 18 MACRO PROGRAMMING Single or multiple command sequences can be grouped together in macros and stored in the EEPROM. You can then start them by using the Run macro commands. There are different types of macro: Normal macros (0 through 255) These are started by means of an ‘ESC MN xx’ command via the serial interface or from another macro. A series of macros occurring one after the other can be called cyclically (movie, hourglass, multi-page help text). These automatic macros continue to be processed until a command is received via RS-232 or another macro is activated. Furthermore these macros may be started by "macro processes" as an individual task (from V1.1). Process macros will not be interupted by any other commands or touch panel use. Touch macro (1 through 255) Started when you touch/release a touch field (only in versions with a touch panel - TP) or issue an ‘ESC MT xx’ command. Menu macro (1 through 255) Started when you choose a menu item or issue an ‘ESC MM xx’ command. Power-on macro Started after power-on. You can switch off the cursor and define an opening screen, for example. Reset macro Started after an external reset or after a voltage dip under 4.7V (VDD-VSS). Watchdog macro Started after a fault/error (e.g. crash). Brown-out macro Started after a voltage dip <4V. Important: If a continuous loop is programmed in the power-on, reset or watchdog macro, the display can no longer be addressed. In this event, execution of the power-on macro must be suppressed. This is achieved by wiring DPOM appropriately. PowerOff - connect pin 13 (DPOM) to GND - PowerOn - disconnect pin 13 again. WRITE PROTECTION FOR MACRO PROGRAMMING AND FONTS A VDD line level at pin 19 (EEP_WP) prevents inadvertent overwriting of the macros, images and fonts in the EEPROM (recommanded in any case!). MEMORY EXPANSION The size of the internal EEPROM memory is 32 kB. Generally, this allows sufficient space for a large number of images and macros. If, however, a very large number of images (in particular full-size images) are to be stored, it can be necessary to expand the memory. The memory capacity can be doubled by directly connecting a standard EEPROM of the 24C256 series. It is connected over pins 17, 18 and 19 (I2C adress $A6) or can be placed direct as U12 (see drawing on page 20). Specifications may be changed without prior notice. Printing error reserved EA eDIP240-7 Page 19 IMAGES STORED IN EEPROM To reduce the transmission times at the interface or to save storage space in the processor system, up to 256 images can be stored in the internal EEPROM. They can be called using the “ESC U I” command or from within a macro. Any images in Windows BMP format (monochrome images only) can be used. They can be created and edited using commercial software such as Windows Paint or Photoshop (only black and white = 1 bit). CREATINGYOUR OWN MACROS AND IMAGES To create your own macros, you need the following: - the additional EA 9777-1USB programmer (available as an accessory) or self-created adaptor like application example below, - the ELECTRONIC ASSMBLY LCD-Tools*) software; this contains a KIT-Editor, KIT-Compiler, Simulator, and examples and fonts (for Windows PCs) - a PC with a serial port USB or COM To define a sequence of commands as a macro, all the commands are written to a file on the PC (e.g. DEMO.KMC). You specify which character sets are to be integrated and which command sequences are to be in which macros. If the macros are defined using the KIT Editor, the KIT Compiler is started by pressing F5. This creates a file with the name DEMO.EEP which immediately shows the results in a simulator window (virtual display). If display is connected via USB programmer EA 9777-1USB or application below, this file is then automatically burned into the display’s EEPROM. The KIT Compiler recognizes the display with or without the small protocol being activated. The actual programming operation only takes a few seconds, and you can then use your user-defined macros and images on the display immediately. You will find a detailed description of how to program macros along with examples in the online Help for the ELECTRONIC ASSEMBLY LCD-Tools*) software. Application example to direct pc interfacing *) see our web site at http://www.lcd-module.de/deu/touch/touch.htm EA eDIP240-7 Specifications may be changed without prior notice. Printing error reserved Page 20 DIMENSIONS ATTENTION handling precautions! J2: switch off Small Protocoll J6: Connect Metal frame with GND (ESD / EMV) all dimensions are in mm ALUMINIUM BEZEL Notes on handling and operation - LC dispalys are designed for hand soldering only. Reflow and wave soldering may destroy lcd immediately - The following can lead to the electronic destruction of the module: cross-polarity or overvoltage of the power supply, overvoltage or cross-polarity or static discharge at the inputs, short-circuits at the outputs. - The power supply must be disconnected before the module is removed. All inputs must also be free of voltage. - The display and the touch screen are made of plastic and must not come into contact with hard objects. The surfaces can be cleaned with a soft cloth. No solvents may be used. - The module is designed only for operation within buildings. Additional measures must be taken to allow operation in the open air. The maximum temperature range of -20 through +70°C must not be exceeded. The module may not operate correctly and may fail if used in a humid EA 0FP241-7SW: environment. The display must be shielded from dimensions in mm direct sunlight. Zeppelinstraße 19 · D-82205 Gilching · Phone +49-(0)8105-778090 · Fax +49-(0)8105-778099 · www.lcd-module.de · [email protected] Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: ELECTRONIC ASSEMBLY: EA EDIP240B-7LWTP EA EDIP240J-7LATP EA EDIP240B-7LW EA 0FP241-7SW EA EDIP240J-7LA EA EDIP240J-7LW EA EDIP240J-7LWTP