EAEDIP240B-7LW [ETC]

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE;
EAEDIP240B-7LW
型号: EAEDIP240B-7LW
厂家: ETC    ETC
描述:

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE

CD
文件: 总21页 (文件大小:1009K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
Issue 02.2014  
embedded LCD-DISPLAY  
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  
ORDERINGCODES  
DISPLAYS  
240x128 DOTS, WHITE LED-BACKLIGHT, BLUENEGATIVE  
ASABOVE,BUTWITHTOUCHPANEL  
240x128 DOTS, WHITE LED-BACKLIGHT, POSITIVE MODE, FSTN  
ASABOVE,BUTWITHTOUCHPANEL  
240x128 DOTS, WHITE LED-BACKLIGHT, POSITIVE MODE, FSTN  
EA eDIP240B-7LW  
EA eDIP240B-7LWTP  
EA eDIP240J-7LW  
EA eDIP240J-7LWTP  
EA eDIP240J-7LA  
EA eDIP240J-7LATP  
ASABOVE,BUTWITHTOUCHPANEL  
STARTERKIT  
INCLUDESEAeDIP240B-7LWPANDEVALUATIONBOARDWITHUSB  
FORDIRECTCONNECTIONTOPCANDINTERFACEBOARDSFOR  
CONNECTIONWITHYOURHOSTSYSTEM  
ASABOVE,BUTWITH EAeDIP240J-7LWTP  
ADDTIOTNALPARTS  
EAEVALeDIP240B  
EAEVALeDIP240J  
MOUNTINGBEZEL(ALUMINIUM),BLACKANODIZED  
SOCKET1x20, 4.5mm HIGH (1 piece)  
EA0FP241-7SW  
EAB254-20  
Zeppelinstraße 19  
· D-82205 Gilching · Phone +49-(0)8105-778090 · Fax +49-(0)8105-778099 · www.lcd-module.de · info@lcd-module.de  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 2  
Documentation of revision  
Date  
Type  
Old  
New  
Reason / Description  
15.02.04 V1.0  
Preliminary version  
-
-
New Command Macro-Process #MD../#MZ../#MS..  
Adaptor MAX232 circuit diagramm  
Modulo 256  
new firmware  
-
typing error in protocol description  
24.11.04 V1.1  
Modulo 8  
New Command Terminal-Cursor Save/Restore #TS/#TR  
New Command Bargraph send continous #AQ 2  
new firmware  
18.01.05 V1.2  
New addressable 2-wire RS485 Interface with SN75176  
New 32 additional I2C Addresses  
New Commands #AG, #SI, #KA  
07.04.05 V1.3  
13.05.05 V1.4  
04.10.05 V1.5  
18.10.05 V1.6  
new firmware  
new firmware  
new firmware  
Bugfix in SPI- I2C-Mode after wrong Packet (NAK)  
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)  
OUT-port functionality on not used configuration pins  
Drawing for mounting panel EA 0FP241-7SW included  
Revised drawing (V/A = 60.4mm and pcb Rev.D)  
Insert EA eDIP240J-7LA  
new firmware  
-
17.02.06  
27.04.06  
29.06.07  
-
-
-
V/A 61.0mm  
CONTENTS  
GENERAL ..................................................................................................................... 3  
ELECTRICALSPECIFICATIONS...................................................................................4  
RS-232.......................................................................................................................... 5  
SPI................................................................................................................................6  
I²C ................................................................................................................................7  
SOFTWAREPROTOCOL ............................................................................................ 8-9  
TOUCHPANEL ............................................................................................................ 10  
CHARACTERSETS .................................................................................................. 11-12  
COMMANDS/FUNCTIONSINTABULARFORM ..................................................... 13-15  
ACKNOWLEDGEMENTSFROMTHECONTROLPANEL............................................. 16  
PROGRAMMINGEXAMPLE ........................................................................................ 17  
PROGRAMMINGMACROS ...................................................................................... 18-19  
DIMENSIONS .............................................................................................................. 20  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-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 RS-  
232, 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.  
ANALOGTOUCHPANEL  
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.  
LEDBACKLIGHT,TYPESBANDJ  
Alldisplaysinblue-and-white(B)andblack-and-white(J)areequippedwithamodern, lowpowerconsumption  
LED backlight. Whereas the black&white and the amber-colored display can still be read even when the  
backlightisswitchedoffcompletely,theblue-whitedisplayrequiresaminimumlevelofilluminationtobelegible.  
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 withpixel 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  
EAeDIP240-7  
Page 4  
SPEZIFICATIONANDCHARACTERISTICS  
Characteristics  
Value  
Condition  
min.  
typ.  
max.  
Unit  
Operating  
Temperature  
-20  
+70  
°C  
Storage Temperature  
Storage Humidity  
Operating Voltage  
Input Low Voltage  
-30  
+80  
90  
°C  
%RH  
V
< 40°C  
4.5  
5.0  
5.5  
-0.5  
0.2*VDD  
V
Input High Voltage  
Input High Voltage  
Input Leakage Current  
Pin Reset only  
except Reset  
Pin MOSI only  
0.9*VDD  
0.6*VDD  
VDD+0.5  
VDD+0.5  
1
V
V
uA  
Input Pull-up Resistor  
Output Low Voltage  
Output High Voltage  
Output Current  
20  
50  
kOhms  
V
0.7  
4.0  
V
20  
mA  
mA  
mA  
Backlight off  
Backlight on  
75  
Current  
210  
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.  
RS232/RS422  
SPI  
I2C  
Output  
No.  
Pin No. Symbol Pin No. Symbol Pin No. Symbol  
OUT1  
OUT2  
OUT3  
OUT4  
OUT5  
OUT6  
OUT7  
6
7
BAUD0  
BAUD1  
BAUD2  
ADR0  
10  
12  
13  
14  
15  
DORD  
OUT2  
DPOM  
CPOL  
CPHA  
6
7
BA0  
BA1  
8
8
SA0  
9
9
SA1  
13  
14  
15  
DPOM  
ADR1  
10  
11  
13  
SA2  
BA2  
ADR2  
DPOM  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 5  
RS-232/RS-422INTERFACE  
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  
RS-232 / RS-422 mode  
CMOS line level. If “genuine” RS-  
Pin Symbol In/Out Function  
Pin Symbol Function  
1
2
GND  
VDD  
-
-
Ground Potential for logic (0V)  
21  
22  
N.C.  
N.C.  
not connected  
not connected  
232 levels are required (e.g. for  
direct connection to a PC), an  
external level converter such as the  
ICL232 is necessary.  
Power supply for logic (+5V)  
Operating voltage for LC driving  
(input)  
3
VADJ  
In  
23  
N.C.  
not connected  
4
5
VOUT  
RESET  
BAUD0  
BAUD1  
BAUD2  
ADR0  
RxD  
Out Output voltage for LC driving  
24  
25  
26  
27  
28  
29  
30  
31  
32  
N.C.  
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  
not connected  
-
L: Reset  
6
In  
In  
In  
In  
In  
Baud Rate 0  
7
Baud Rate 1  
8
Baud Rate 2  
9
Address 0 for RS-485 (V1.3 or later)  
Receive Data  
10  
11  
12  
TxD  
Out Transmit Data  
EN485  
Out Transmit Enable for RS-485 driver  
L: disable Power-On-Macro  
do not connect for normal operation  
13  
DPOM  
In  
33  
N.C.  
not connected  
14  
15  
16  
ADR1  
ADR2  
BUZZ  
In  
In  
Address 1 for RS-485 (V1.3 or later)  
Address 2 for RS-485 (V1.3 or later)  
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  
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  
IN (Power-On) L: Testmode  
OUT L: data in sendbuffer  
TEST  
20  
IN  
Out  
40  
N.C.  
not connected  
SBUF  
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.  
BAUDRATES  
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  
Data format  
8,N,1  
1200  
2400  
4800  
9600  
19200  
38400  
57600  
115200  
0
1
0
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
Application example  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 6  
SPIINTERFACE  
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  
example (see diagram below).  
Pinout eDIP240-7  
SPI mode  
Pin Symbol In/Out Function  
Pin Symbol Function  
1
2
GND  
VDD  
-
-
Ground Potential for logic (0V)  
Power supply for logic (+5V)  
21  
22  
N.C.  
N.C.  
not connected  
not connected  
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.  
Operating voltage for LC driving  
(input)  
3
VADJ  
In  
23  
N.C.  
not connected  
4
5
6
VOUT  
RESET  
SS  
Out Output voltage for LC driving  
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  
-
In  
In  
L: Reset  
Slave Select  
Serial In  
7
MOSI  
MISO  
CLK  
8
Out Serial Out  
9
In  
In  
In  
Shift Clock  
10  
DORD  
Data Order (0=MSB first; 1=LSB first)  
connect to GND for SPI interface  
11 SPIMODE  
open-drain with internal pullup 20..50k  
(V1.6 or later)  
12  
OUT2  
Out  
32  
N.C.  
not connected  
L: disable Power-On-Macro  
do not connect for normal operation  
Clock Polarity (0=LO 1=HI when idle)  
13  
14  
15  
16  
DPOM  
CPOL  
CPHA  
BUZZ  
In  
In  
In  
33  
34  
35  
N.C.  
N.C.  
N.C.  
not connected  
not connected  
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.  
Clock Phase  
(sampled on 0=1st 1=2nd edge)  
Out Buzzer output  
36  
37  
38  
39  
N.C.  
N.C.  
N.C.  
N.C.  
not connected  
not connected  
not connected  
not connected  
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  
IN (Power-On) L: Testmode  
TEST  
20  
IN  
Out  
40  
N.C.  
not connected  
SBUF  
OUT L: data in sendbuffer  
DATATRANSFERSPI  
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  
timebeforeprovidingthedata;thereforeashortpauseof  
min.6µs(noactivityofCLKline)isneededforeachbyte.  
Same is with 100kHz operation.  
Application example  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 7  
CBUSINTERFACE  
Wiring the display as shown below allows the display to be operated directly on an I²C bus.  
4 different base addresses and 8  
different slave addresses can be  
selected at the display.  
Pinout eDIP240-7  
I²C-Bus mode  
Pin Symbol In/Out Function  
Pin Symbol Function  
1
2
GND  
VDD  
-
-
Ground Potential for logic (0V)  
Power supply for logic (+5V)  
21  
22  
N.C.  
N.C.  
not connected  
not connected  
A data transmission rate of up to  
100kHz is possible.  
If transmitter will pause for min.  
100 µs between each byte, SCL  
may rise u to max. 400 kHz.  
Operating voltage for LC driving  
(input)  
3
VADJ  
In  
23  
N.C.  
not connected  
4
5
VOUT  
RESET  
BA0  
Out Output voltage for LC driving  
24  
25  
26  
27  
28  
29  
30  
31  
32  
N.C.  
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  
not connected  
-
L: Reset  
6
In  
In  
In  
In  
In  
In  
In  
Basic Address 0  
7
BA1  
Basic Address 1  
8
9
SA0  
SA1  
Slave Address 0  
Slave Address 1  
10  
11  
SA2  
Slave Address 2  
BA2  
Basic Address 2 (V1.3 or later)  
connect to GND for I²C interface  
12 I2CMODE  
L: disable Power-On-Macro  
do not connect for normal operation  
Note:  
13  
DPOM  
In  
33  
N.C.  
not connected  
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.  
14  
15  
16  
SDA  
SCL  
Bidir. Serial Data Line  
In Serial Clock Line  
Out Buzzer output  
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  
BUZZ  
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  
IN (Power-On) L: Testmode  
OUT L: data in sendbuffer  
TEST  
20  
IN  
Out  
40  
N.C.  
not connected  
SBUF  
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  
I²C address  
Base  
address  
D7  
D6  
D5  
D4  
D3  
D2  
D1  
D0  
BA2 BA1 BA0  
L
L
L
L
L
H
H
L
L
H
L
$10  
$20  
$30  
$40  
$70  
$90  
$B0  
$D0  
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
S
A
2
S
A
1
S
A
0
L
H
L
R
W
H
H
H
H
L
H
H
H
L
DATA TRANSFER I²C-BUS  
principle I2C-bus transfer:  
-I²C-Start  
H
all pins open: Write $DE  
Read $DF  
- Master-Transmit: EA eDIP-I²C-address (e.g. $DE), send smallprotocol package (data)  
- I²C-Stop  
-I²C-Start  
-Master-Read:EAeDIP-I²C-Address(e.g.$DF),readACK-byteandopt.smallprotocollpackage(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  
EAeDIP240-7  
Page 8  
DATATRANSFERPROTOCOL(SMALLPROTOCOL)  
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.  
Ifthehostcomputerdoesnotreceiveanacknowledgment, atleastonebyte  
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.  
DEACTIVATINGTHESMALLPROTOCOL  
ForteststheprotocolcanbedeactivatedbyclosingthesolderstrapJ2(see  
page 20). In normal operation, however, you are urgently advised to  
activatetheprotocol. Ifyoudonot, anyoverflowofthereceivebufferwillnot  
be detected.  
BUILDINGTHESMALLPROTOCOLPACKAGES  
Command/Data to the display  
The user data is transferred framed by  
<DC1>, the number of bytes (len) and the  
checksum (bcc). The display responds with  
<ACK>.  
<DC1>  
<ACK>  
len  
data...  
bcc  
>
<
<DC1> = 17(dec.) = $11  
len = count of user data (without <DC1>, without checksum bcc)  
bcc = 1 byte = sum of all bytes incl. <DC1> and len, modulo 256  
<ACK> = 6(dec.) = $06  
voidSendData(unsignedchar*buf,unsignedchar len)  
{
unsignedchar i,bcc;  
SendByte(0x11);  
bcc =0x11;  
//SendDC1  
SendByte(len);  
bcc = bcc + len;  
//Senddatalength  
//Sendbuf  
Clear display and draw a line from 0,0 to 239,127  
for(i=0;i<len;i++)  
{SendByte(buf[i]);  
bcc = bcc + buf[i];  
}
<DC1>  
$11  
len  
ESC D L ESC G D 0 0 239 127  
bcc  
$0A $1B $44 $4C $1B $47 $44 $00 $00 $EF $7F $DA  
<ACK>  
$06  
SendByte(bcc);  
}
//Sendchecksum  
Example to a complete data package  
„C“ source code to transmit a data package  
Request for content of send buffer  
The command sequence <DC2>, 1, S, bcc  
emptiesthedisplay’ssendbuffer. Thedisplay  
replies with the acknowledgement <ACK>  
and the begins to send all the collected data  
such as touch keystrokes.  
<DC2>  
<ACK>  
<DC1>  
1
S
bcc  
>
<
<
len  
data...  
1 = 1(dez.) = $01  
bcc  
S = 83(dez.) = $53  
<DC2> = 18(dec.) = $12  
<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  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 9  
Request for buffer information  
This command queries whether user data is  
ready to be picked up an how full the display's  
receive buffer is.  
<DC2>  
<ACK>  
1
I
bcc  
>
<
send buffer  
bytes ready  
receive buffer  
bytes free  
<DC2>  
2
bcc  
<
<DC2> = 18(dec.) = $12  
<ACK> = 6(dec.) = $06  
1 = 1(dez.) = $01  
I = 73(dez.) = $49  
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  
This ishowthemaximumpackagesizethatcan  
besentbythedisplaycanbelimited.Thedefault  
setting is a package size with up to 64 bytes of  
user data.  
packet size for  
send buffer  
<DC2>  
<ACK>  
3
D
timeout  
bcc  
>
<
<DC2> = 18(dec.) = $12  
3 = 3(dez.) = $03  
D = 68(dez.) = $44  
packet size for send buffer = 1..64 (standard: 64)  
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.  
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  
This command is used to query protocol  
settings.  
<DC2>  
<ACK>  
1
P
bcc  
>
<
max.  
akt. send  
packet size  
<DC2>  
3
akt. timeout  
bcc  
<
packet size  
<DC2> = 18(dec.) = $12  
<ACK> = 6(dec.) = $06  
1 = 1(dez.) = $01  
P = 80(dez.) = $50  
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  
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>).  
<DC2>  
<ACK>  
1
R
bcc  
>
<
<DC1>  
<DC2>  
len  
data...  
1 = 1(dez.) = $01  
bcc  
<
<DC2> = 18(dec.) = $12  
<ACK> = 6(dec.) = $06  
<DC1> = 17(dec.) = $11  
R = 82(dez.) = $52  
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  
Adressing (only for RS232/RS485)  
select or  
deselect  
This command can be used to select or  
deselect the eDIP with the address adr.  
<DC2>  
<ACK>  
3
A
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  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 10  
TOUCHPANEL(EAeDIP240x-7LWTPonly)  
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  
(seepage15). Whenthetouchkeysaretouched, theycanbeautomaticallyinvertedandanexternal  
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).  
TOUCHPANELADJUSTMENT  
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).  
FRAMESANDKEYFORMS  
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).  
BITMAPSASKEYS  
Inadditiontotheframetypes,whichcanbescaledtoanysize,youalsohavetheoption  
ofusinganybitmapimages(ineachcase, apairshowingthenot pressedandpressed  
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.  
SWITCHESINGROUPS(RADIOGROUP)  
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  
‘nrgroupisnowswitchedon, allotherbuttonsinthisgroupareautomaticallyswitchedoff. Thismeans  
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  
EAeDIP240-7  
Page 11  
INTEGRATEDANDEXTERNALFONTS  
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). Eachcharactercanbepositionedwithpixel  
accuracy and the width and height can be scaled  
by a factor of 1 - 4.  
Eachtextcanbeoutputleftjustified,rightjustifiedor  
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 2: 6x8 monospaced  
Font 3: 7x12 monospaced  
Font 4: GENEVA10 proportional  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 12  
Font 5: CHICAGO14 proportional  
Font 6: Swiss30 Bold proportional  
Font 7: big numbers BigZif57  
TYPEFACE  
Thispictureofascreenimageshowsallthe  
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  
EAeDIP240-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 self-  
definable macro (see page 18).  
EA eDIP240-7: Command table 1  
after  
reset  
Command  
Codes  
Remarks  
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  
The contents of the terminal area are deleted and the cursor is placed at pos. (1,1)  
^L  
^M  
^J  
Cursor to the beginning of the line on the extreme left  
Cursor is set to the next line  
n1 n2  
n1  
n1=column; n2=line; origin upper-left corner (1,1)  
n1=0: Cursor is invisible; n1=1: Cursor flashes;  
Terminal display not visible; outputs are ignored  
Terminal display is visible again;  
1,1  
1
P
C
A
E
V
ESC  
T
visibl  
Show revision code  
Show revision code on terminal layer e.g. "EA eDIP240-7 V1.1 Rev.B"  
Comands for outputting strings  
Output string  
L: left justified  
C: centered  
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;  
L
Text  
...  
x1 y1  
NUL  
C
R
F
text between two '@' ($40) characters flashes inversely;  
R: right justified  
Set font  
n1  
Set font with the number n1 (0..16)  
0
1,1  
ESC  
Z
Font zoom factor  
Add. line spacing  
Text angle  
Text mode  
Text blink attribute  
String for terminal  
n1 n2  
n1  
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°  
Z
Y
W
V
B
T
n1  
0
4
0
n1  
Set mode n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace;  
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  
n1  
ESC  
Z
Text ...  
Draw straight lines and points  
Draw rectangle  
x1 y1 x2 y2  
x1 y1 x2 y2  
x1 y1  
Draw four straight lines as a rectangle from x1,y1 to x2,y2  
R
D
W
P
Draw straight line  
Continue straight line  
Draw point  
Draw straight line from x1,y1 to x2,y2  
Draw a straight line from last end point to x1, y1  
Set one dot at coordinates x1, y1  
0
ESC  
G
x1 y1  
Point size/line thickness  
Graphic mode  
n1 n2  
n1 = X-Punktgröße (1..15); n2 = Y-Punktgröße (1..15);  
Drawing mode n1: 1=set; 2=delete; 3=inverse;  
1,1  
1
Z
n1  
V
Change/draw rectangular areas  
Delete area  
Invert area  
Fill area  
Area with fill pattern  
Draw box  
Draw frame  
Draw frame box  
x1 y1 x2 y2  
x1 y1 x2 y2  
x1 y1 x2 y2  
Delete an area from x1,y1 to x2,yy2 (all pixels out)  
Invert an area from x1,y1 to x2,y2 (invert all pixels  
Fill an area from x1,y1 to x2,y2 (all pixels on)  
L
I
S
M
O
R
T
ESC  
R
x1 y1 x2 y2 n1 Draw an area from x1,y1 to x2,y2 with pattern n1 (always set)  
x1 y1 x2 y2 n1 Draw a rectangle x1,y1 to x2,y2 with fill pattern n1 (always replace)  
x1 y1 x2 y2 n1 Draw a frame of the type n1 from x1,y1 to x2,y2 (always set)  
x1 y1 x2 y2 n1 Draw a frame box of the type n1 from x1,y1 to x2,y2 (always replace)  
Bitmap image commands  
Image from clipboard  
Load internal image  
Load image  
Image zoom factor  
Image angle  
x1 y1  
The current contents of the clipboard are loaded to x1,y1 with all the image attributes  
C
I
x1 y1 no  
Load internal image with the no. (0..255) from EEPROM to x1,y1  
x1 y1  
n1 n2  
n1  
BLH data ... Load an image to x1,y1; see image structure for image data  
n1 = X zoom factor (1x..4x); n2 = Y zoom factor (1x..4x)  
L
Z
W
V
1,1  
0
4
Output angle: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°  
ESC  
U
Image link mode  
n1  
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).  
Image flashing attribute  
Send hard copy  
n1  
0
B
H
x1 y1 x2 y2  
Display commands (effect on the entire display)  
Delete display  
Invert display  
Fill display  
Delete display contents (all pixels off)  
Invert display contents (invert all pixels)  
Fill display contents (all pixels on)  
L
I
S
ESC  
Switch display off  
Display contents become invisible but are retained, commands continue to be possible  
D
A
Switch display on  
Show clip-board  
Show current  
Display contents become visible again  
visibl  
E
C
N
Show content of clip-board. Standard display output is no longer visible  
Switch back to noraml operation. Standard display output is visible  
Flashing area commands  
Delete flashing attribute  
Inverted flashing area  
Pattern for flashing area  
Set flashing time  
x1 y1 x2 y2  
x1 y1 x2 y2  
Delete the flashing attribute from x1,y1 to x2,y2  
L
I
Define an inverted flashing area from x1,y1 to x2,y2  
ESC  
Q
x1 y1 x2 y2 n1 Define flashing area with pattern n1 (on/off) from x1,y1 to x2,y2  
n1 Set the flashing time n1= 1..15 in 1/10s; 0=deactivate flashing function  
M
Z
6
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 14  
EA eDIP240-7: Command table 2  
Remarks  
after  
reset  
Command  
Codes  
Bar graph commands  
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  
R
L
O
U
No  
bar  
define  
n1 x1 y1 x2 y2 sv ev type pat bar graph. sv, ev are the values for 0% and 100%.  
type=0: bar; type=1: bar in rectangle; pat=bar pattern  
Define bar graph  
type=2: line; type=3: line in rectangle; pat= line width  
A
Z
S
n1 valu  
Set and draw the bar graph with the number n1 to the new user "value."  
Draw the bar graph with the number n1 completely  
Update bar graph  
Draw new bar graph  
Send bar graph value  
ESC  
B
n1  
n1  
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  
D
n1 n2  
Delete bar graph  
Clipboard commands (buffer for image areas)  
B
S
R
K
The entire contents of the display are copied to the clipboard as an image area  
Save display contents  
Save area  
Restore area  
Copy area  
x1 y1 x2 y2  
x1 y1  
The image area from x1,y1 to x2,y2 is copied to the clipboard  
ESC  
C
N
The image area on the clipboard is copied back its original position in the display  
The image area on the clipboard is copied to x1,y1 in the display  
Settings for menu/pop-up and touch panel  
F
Z
n1  
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  
Pop-up direction: n1=0: 0°; n1=1: 90°;  
Set font for menu  
Set zoom factor  
add. line spacing  
Angle for menu  
0
1,1  
n1 n2  
n1  
Y
ESC  
W
n1  
0
1
Set automatic function for  
touch  
n1=1: touch menu will pop-up automatically; n1=0: touch menu will not pop-up but 'ESC T  
0' will be sent to host; this one is able to pop-up with command 'ESC N T 2' then.  
T
n1  
Menu/pop-up commands  
(not valid for touch panel use; for that see table "Commands for the touch panel")  
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  
...  
D
x1 y1 no  
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.  
Define menu and show  
N
P
The next item is inverted or remains at the end  
Next item  
Previous item  
ESC  
N
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)  
S
End of menu/send  
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  
M
A
n1  
End of menu/macro  
End of menu/cancel  
The menu is removed from the display and replaced with the original background  
Macro commands  
N
T
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)  
Run macro  
Run touch macros  
Run menu macro  
ESC  
ESC  
M
M
M
Automatic/cyclic macro  
(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
E
A
J
n1  
ts  
Macro with delay  
Autom. macro cyclical,  
once  
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  
n1 n2  
n1 n2  
n1 n2  
ts  
ts  
ts  
Automatically macros n1..n2 cyclically; ts=pause in 1/10s.  
Will be stopped by any command via serial interface or by touch panel use  
Autom. macro cyclical  
Autom. macro pingpong  
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  
Process macro commands (from V1.1)  
Define process macro number no (1..4) (1=highest priority).  
no type n3 n4 ts (normal-) macro n3..n4 will be served with ts/10s delay.  
D
Define process macro  
type: 1=once only; 2=cyclical; 3=pingpong n3..n4..n3  
ESC  
M
Z
S
no  
n1  
ts  
Assign a new delay for process no (1..4) with ts /10s value. ts=0 will stop the automatic  
Process macro speed  
Stop process macro  
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  
ESC  
ESC  
X
Y
ts  
S
Wait ts tenths of a second before the next command is executed.  
Wait (pause)  
Beep on/off  
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  
OFF  
L
H
B
ts  
Backlight on/off  
Backlight brightness  
Send bytes  
1
ts=2..255: switches backlight on for ts /10s and then off  
n1  
cnt  
Adjust brightness of backlight n1=0..100% (non linear)  
100  
cnt (=1..255) bytes are sent via serial interface  
data ... = cnt. bytes (e.g. control of an external printer)  
data ...  
ESC  
S
V
I
Software versionwill be sent as a string ;e.g. "EA eDIP240-7 V1.2 Rev.B"  
(V1.3) eDIP sends internal information  
Send version  
Send version  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 15  
EA eDIP240-7: Commands for the touch panel  
after  
reset  
Command  
Codes  
Remarks  
Touch: Define areas  
'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.  
NUL  
(down/up code = 0 press/release not reported).  
Define touch key  
dow up  
code code ...  
text  
x1 y1 x2 y2  
T
U
K
J
ESC  
(key remains depressed  
as long as there is  
contact)  
A
´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);  
dow up  
text  
x1 y1 n1  
NUL  
text  
'NUL': ($00) = end of string  
code 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.  
(down/up code = 0 on/off not reported).  
Define touch switch  
dow up  
code code ...  
x1 y1 x2 y2  
NUL  
ESC  
(status of the switch  
toggles after each contact  
on/off)  
A
'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);  
dow up  
text  
x1 y1 n1  
NUL  
'NUL': ($00) = end of string  
code code ...  
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  
character determines the direction in which the menu opens (R=right,  
Define touch key with  
menu function  
dow up mnu text  
code code code ...  
ESC  
A
x1 y1 x2 y2  
NUL  
M
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.  
A drawing area is defined. You can then draw with a line width of n1 within the corner  
coordinates xx1,yy1 and xx2,yy2.  
ESC  
A
Define drawing area  
x1 y1 x2 y2 n1  
D
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.  
ESC  
A
Define free touch area  
Set bargraph by touch  
x1 y1 x2 y2  
no  
H
B
ESC  
A
The bar graph with the no=1..32 n1 is defined for input by touch panel.  
Touch: settings  
Touch frame  
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;  
Tone sounds briefly when a touch key is touched: n1=0=OFF; n1=1=ON  
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  
The status of the switch is changed by means of a command n1=0=off; n1=1=on  
1
1
1
E
I
Touch key response  
n1  
S
N
X
P
code  
Invert touch key  
Query touch switch  
Set touch switch  
code  
code  
n1  
Within a group only one single switch will be active; ret of them will be deactivated  
no=0: next switch definitions will keep free of all groups  
no=1..255: next switch definitions will join to goup number no  
Define radiogroup  
no  
0
R
ESC  
A
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  
code  
n1  
L
V
Delete touch area  
x1 y1 n1  
Automatic transmission of a new bar graph value by touch input is deactivated (n1=0) or  
activated (n1=1)  
Send bar value on/off  
Touch query on/off  
n1  
n1  
1
Q
A
Touch query is deactivated (n1=0) or activated (n1=1)  
1
Touch: Label font  
Label font  
no  
Set font with the number no=0..16 for touch key label  
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  
F
Z
Label zoom factor  
Add. line spacing  
Label angle  
n1 n2  
n1  
ESC  
A
Y
n1  
0
W
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 16  
Response of EA eDIP240-7 via serial interface  
Id  
num  
data  
Remark  
Automatic response  
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  
ESC  
ESC  
ESC  
ESC  
A
N
B
T
1
1
2
0
3
code  
code  
no  
After a menu item is selected by touch, the selected menu item code is transmitted. Only  
transmitted if no corresponding touch macro is defined !  
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  
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;  
H
type  
x1  
y1  
type=2 is drag within the free touch area at the x,y coordinates (16-bit values)  
Response only when requested  
After the 'ESC N S' command, the currently selected menu item is transmitted.  
no=0: no menu item is selected.  
ESC  
ESC  
ESC  
N
B
X
1
2
2
no  
no  
value  
value  
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  
code  
X-Pixel, Y-Pixel, Version, Touchinfo,  
CRC-ROM, CRC-ROM reference  
EEP in KB,  
(abV1.4) CRC-EEP, CRC-EEP  
reference, EEPcount  
(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  
ESC  
ESC  
I
count  
count  
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'  
V
char. string...  
Response without length specification (num)  
After command 'ESC UH....' is received a screen copy will be sent  
x1,y1 = coordinates of the top left corner  
ESC  
U
L
x1  
y1  
*.blh image data...  
*.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.  
TERMINALMODE  
The display provides a terminal function. When  
you switch it on, a cursor flashes in the first line,  
indicatingthatthedisplayisreadyforoperation.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  
meansoftheLFcharacter.Ifthelastlineisfull,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.IfthegraphicsscreenisclearedwithESC  
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  
EAeDIP240-7  
Page 17  
USINGTHESERIALINTERFACE  
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).  
FILLPATTERNS  
Apatterntypecanbesetasaparameterwithsomecommands. Inthisway, rectangularareasandbar  
graphs for instance can be filled with different patterns. There are 16 internal fill patterns available.  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 18  
MACROPROGRAMMING  
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)  
ThesearestartedbymeansofanESCMNxxcommandviatheserialinterfaceorfromanothermacro.  
A series of macros occurring one after the other can be called cyclically (movie, hourglass, multi-page  
helptext). TheseautomaticmacroscontinuetobeprocesseduntilacommandisreceivedviaRS-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  
cannolongerbeaddressed. Inthisevent, executionofthepower-onmacromustbesuppressed. This  
is achieved by wiring DPOM appropriately.  
PowerOff - connect pin 13 (DPOM) to GND - PowerOn - disconnect pin 13 again.  
WRITEPROTECTIONFORMACROPROGRAMMINGANDFONTS  
AVDDlinelevelatpin19(EEP_WP)preventsinadvertentoverwritingofthemacros,imagesandfonts  
in the EEPROM (recommanded in any case!).  
MEMORYEXPANSION  
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  
EAeDIP240-7  
Page 19  
IMAGESSTOREDINEEPROM  
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).  
CREATINGYOUROWNMACROSANDIMAGES  
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.  
IfthemacrosaredefinedusingtheKITEditor, theKITCompilerisstartedbypressingF5. Thiscreates  
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  
Specifications may be changed without  
prior notice. Printing error reserved  
EAeDIP240-7  
Page 20  
DIMENSIONS  
ATTENTION  
handling precautions!  
J2: switch off Small Protocoll  
J6: Connect Metal frame with GND  
(ESD / EMV)  
all dimensions are in mm  
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.  
ALUMINIUMBEZEL  
- 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  
environment. The display must be shielded from  
direct sunlight.  
EA 0FP241-7SW:  
dimensions in mm  
Zeppelinstraße 19  
· D-82205 Gilching · Phone +49-(0)8105-778090 · Fax +49-(0)8105-778099 · www.lcd-module.de · info@lcd-module.de  
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  

相关型号:

EAEDIP240B-7LWTP

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE
ETC

EAEDIP240J-7LA

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE
ETC

EAEDIP240J-7LATP

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE
ETC

EAEDIP240J-7LW

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE
ETC

EAEDIP240J-7LWTP

embedded LCD-DISPLAY 240x128 WITH INTELLIGENCE
ETC

EAEDIP320B-8LW

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIP320B-8LWTP

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIP320J-8LA

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIP320J-8LATP

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIP320J-8LW

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIP320J-8LWTP

CONTROL UNIT 320x240 WITH INTELLIGENCE
ETC

EAEDIPTFT32-A

embedded 3.2 TFT-DISPLAY 320x240 BUILT-IN INTELLIGENCE
ETC