EAEDIP160W-7LW [ETC]
OPERATING UNIT 160x104 with touch panel;型号: | EAEDIP160W-7LW |
厂家: | ETC |
描述: | OPERATING UNIT 160x104 with touch panel |
文件: | 总29页 (文件大小:1534K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
Issue 01-2014
OPERATING UNIT
160x104 with touch panel
Dimension: 81.5x67.5x13.6mm
EAeDIP160W-7LWTP
EAeDIP160B-7LWTP
TECHNICAL DATA
* LCD-GRAPHICDISPLAYWITHARANGEOFGRAPHICFUNCTIONS
* 3DIFFERENTINTERFACESONBOARD:RS-232,I²C-BUSORSPI-BUS
* 160x104OR104X160DOTSWITHLEDBACKLIGHT
* WHITELED-BACKLIGHTBLUENEGATIVEOR
* BLACK&WHITEPOSITIVE,FSTN-TECHNOLOGY
* 8BUILT-INFONTS
* FONTZOOMFROM 2MMTO ABOUT 80MM,TURNABLEIN90°STEPS
* POWER SUPPLYWIDE RANGE +3,3V / 190mA/12mA ...+5V / 125mA / 20mA (WITH/
WITHOUTBACKLIGHT)
* POWER-DOWN-MODE 25 µA,WITHWAKEUPVIATOUCHORI²C
* POSITIONINGACCURATETOTHEPIXELWITHALLFUNCTIONS
* LINE,DOT,AREA,AND/OR/EXOR,BARGRAPH...
* CLIPBOARDFUNCTIONEN,PULL-DOWNMENÜ
* UPTO256PICTURESINTERNALYSTORED
* UPTO256MACROSPROGRAMMABLE(64kBEEPROMONBOARD)
* MIXTEXTANDGRAPHIC,FLASHINGATTRIBUTE:ON/OFF/INVERT
* BACKLIGHTBRIGHTNESSPERSOFTWARE
* ANALOGUETOUCHPANEL:VARIABLEGRID
* FREEDEFINABLEKEYANDSWITCH
ORDERINGCODES
DISPLAYS
160x104 DOTS, WHITE LED-BACKLIGHT, BLUENEGATIVE
ASABOVE,BUTWITHTOUCHPANEL
160x104 DOTS, WHITE LED-BACKLIGHT, POSITIVE MODE, FSTN
ASABOVE,BUTWITHTOUCHPANEL
EA eDIP160B-7LW
EA eDIP160B-7LWTP
EA eDIP160W-7LW
EA eDIP160W-7LWTP
STARTERKIT
INCLUDESEAeDIP160B-7LWPANDEVALUATIONBOARDWITHUSB
FORDIRECTCONNECTIONTOPCANDINTERFACEBOARDSFOR
CONNECTIONWITHYOURHOSTSYSTEM
ASABOVE,BUTWITH EAeDIP160W-7LWTP
ACCESSORIES
EAEVALeDIP128B
EAEVALeDIP128W
MOUNTINGBEZEL(ALUMINIUM),BLACKANODIZED
SOCKET1x20, 4.5mm HIGH (1 piece)
EA0FP161-7SW
EAB254-20
Zeppelinstr. 19
· D-82205 Gilching · Phone +49-(0)8105-778090 · Fax +49-(0)8105-778099 · www.lcd-module.de · info@lcd-module.de
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 2
Documentation of revision
Date
Type
0.1
Old
New
Reason / Description
preliminary Version
October, 2010
August, 2011
1.0
first release
CONTENTS
GENERAL ..................................................................................................................... 3
RS-232.......................................................................................................................... 4
RS-485,USB ................................................................................................................ 5
SPI................................................................................................................................6
I²C ................................................................................................................................7
IN-ANDOUTPUTS.......................................................................................................8
ROTATEDMOUNTING ..................................................................................................9
POWER-DOWN-MODE................................................................................................. 9
SOFTWAREPROTOCOL ......................................................................................... 10 - 11
TERMINALMODE,FILLPATTERN .............................................................................. 12
COMMANDS/FUNCTIONSINTABULARFORMAT ................................................. 13 - 17
TOUCHPANEL, KEYSTYLE .................................................................................. 16 - 17
RESPONSESOFTHEOPERATINGPANEL................................................................. 18
CHARACTERSETS ................................................................................................. 19 - 20
FLASH-ANDGRAYSCALEMODE............................................................................... 21
MACROPROGRAMMING........................................................................................ 24 - 25
ELECTRICALCHARACTERISTICS.............................................................................. 26
MOUNTINGBEZEL ..................................................................................................... 27
DIMENSION ................................................................................................................ 28
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 3
GENERAL
The EA eDIP series of displays are the world’s first displays with integrated intelligence. In addition to a variety
of integrated fonts that can be used with pixel accuracy, they offer a whole range of sophisticated graphics
functions.
The displays are ready for operation immediately with an operating voltage range of +3.3V..+5V. They are
controlled via one of the 3 integrated interfaces: RS-232, SPI or I²C. The displays are “programmed” by means
of high-level language-type graphics commands. 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
dramatically reduces development times.
HARDWARE
The display is designed to work at an operating voltage range of +3.3V..+5V. Data transfer is either serial and
asynchronous in RS-232 format or synchronous via the SPI or I²C specification. To improve data security,
a simple protocol is used for all types of transfer.
ANALOGUE TOUCHPANEL
All versions are also available 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.
LEDILLUMINATION,B- ANDW-TYPES
All displays in blue-and-white (B) and black-and-white (W) are equipped with a modern, low power
consumption LED backlight. Whereas the black&white 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
beswitchedoffwithasoftwarecommandandthebrightnesscanbeadjusted.Werecommendtheblack&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.
SOFTWARE
This 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 and images can be placed with pixel accuracy. Text and
graphics can be combined at any time. Different character sets can be used at same time. Each character set
and the images can be zoomed from 2 to 8 times and rotated in 90° steps. 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 (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.
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 4
Pinout eDIP160-7: RS-232/RS-485 mode
RS-232INTERFACE
Pin Symbol In/Out Function
Pin
21
22
23
24
25
26
27
28
29
30
31
32
Symbol
GND
In/Out Function
1
2
GND
VDD
Ground Potential for logic (0V)
Power supply for logic (+3,3V..5V)
do not connect
Ground (0V)
If the display is wired as shown
below, the RS-232 interface is
selected. The pin assignment is
specified in the table on the right.
The RxD and TxD lines lead
CMOS level (VDD) to
microcontroller, for example, for
direct connection.
VDD
Power supply (+3,3..5V)
3
NC
NC
do not connect
4
NC
do not connect
NC
5
RESET
BAUD0
BAUD1
BAUD2
ADR0
RxD
In L: Reset
IN8 / OUT1
IN7 / OUT2
IN6 / OUT3
IN5 / OUT4
IN4 / OUT5
IN3 / OUT6
IN2 / OUT7
IN1 / OUT8
8 digital inputs
(internal 20k..50k pullup)
6
In Baud Rate 0
7
In Baud Rate 1
8
In Baud Rate 2
alternativ up to 8 digital
outputs
maximum current:
9
In Address 0 for RS-485
In Receive Data
a
10
11
TxD
Out Transmit Data
IOL = IOH = 10mA
12 EN485
Out Transmit Enable for RS-485 driver
L: (Power-On) disable Power-On-Macro
L: Wakeup from Powerdownmode
13 WUP
In
33
NC
14 ADR1
15 ADR2
16 BUZZ
In Address 1 for RS-485
In Address 2 for RS-485
Out H: Buzzer output (L: Buzzer off)
L: Disable Smallprotokoll
34
35
36
NC
NC
NC
If “genuine” RS-232 levels are
required (e.g. for connection to a
PC), an external level converter 17 DPROT In
(e.g. MAX232) is required.
37
NC
do not connect
do not connect for normal operation
L: Normal Operation
H: Powerdownmode
18 PWR
Out
38
39
NC
NC
19
NC
do not connect
open-drain with internal pullup 20k..50k
IN (Power-On) L: Testmode
OUT L: data in sendbuffer
TEST
SBUF
IN
Out
20
40
NC
BAUDRATES
Baud rates
Data format
8,N,1
The baud rate is set by means of pins 6, 7 and 8 (baud 0 to 2). The data
format is set permanently to 8 data bits, 1 stop bit, no parity.
Baud0 Baud1 Baud2
0
1
0
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
0
0
1
1
1
1
1200
2400
4800
9600
19200
38400
57600
115200
RTS/CTS handshake lines are not required. The required control is
taken over by the integrated software protocol (see pages 10 and 11).
Note:
The pins BAUD 0 to 2, ADR 0 to 2, DPOM,
DPROT and TEST/SBUF have an internal
pullup, which is why only the LO level
(0=GND) is to be actively applied. These
pins must be left open for a hi level.
For RS232 operation (without
addressing) the pins ADR 0 to ADR 2
must be left open.
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.
Application example
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 5
APPLICATIONEXAMPLE„REAL“RS-232INTERFACE
The eDIP fits for direct
connection to a RS-232
interface with CMOS
level (VDD).
If you have an interface
with 12V level, an
external levelshifter is
needed.
Application example
APPLICATIONEXAMPLE:RS-485INTERFACE
With an external converter (e.g.
SN75176), the EA eDIP can be
connected to a 2-wire RS-485
bus. Large distances of up to
1200
m
can thus be
implemented (remote display).
Several EA eDIP displays can
be operated on a single RS-485
bus by setting addresses.
Application example
Adressing:
- Up to eight hardware addresses (0 to 7) can be set by means of Pins ADR0..ADR2
- The eDIP with the address 7 is selected and ready to receive after power-on.
- The eDIPS with the addresses 0 to 6 are deselcted after power-on
- Up to 246 further software addresses can be set by means of the ‘#KA adr’ command in the power-on macro (set eDIP
externally to address 0)
APPLICATIONEXAMPLE:USBINTERFACE
With an external converter (e.g. FT232R from FTDI) the eDIP can be connected to an USB-Bus.
Virtual-COM-Port drivers are available for different Systems on the FTDI Homepage:
http://www.ftdichip.com/drivers/vcp.htm.
Application example
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 6
Pinout eDIP160-7: SPI mode
SPIINTERFACE
Pin Symbol In/Out Function
Pin
21
22
23
24
25
26
27
28
29
30
31
32
Symbol
GND
In/Out Function
1
2
3
4
5
6
7
8
9
GND
VDD
NC
Ground Potential for logic (0V)
Power supply for logic (+3,3V..5V)
do not connect
Ground (0V)
If the display is wired as shown
below, SPI mode is activated. The
data is then transferred via the
serial, synchronous SPI interface.
The transfer parameter will be set
via the pins DORD, CPOL and
CPHA.
VDD
Power supply (+3,3..5V)
NC
do not connect
do not connect
NC
do not connect
NC
RESET
SS
In L: Reset
IN8 / OUT1
IN7 / OUT2
IN6 / OUT3
IN5 / OUT4
IN4 / OUT5
IN3 / OUT6
IN2 / OUT7
IN1 / OUT8
8 digital inputs
(internal 20k..50k pullup)
In Slave Select
MOSI
MISO
CLK
In Serial In
Out Serial Out
alternativ up to 8 digital
outputs
maximum current:
In Shift Clock
10 DORD
11 SPIMOD
In Data Order (0=MSB first; 1=LSB first)
In connect to GND for SPI interface
do not connect
IOL = IOH = 10mA
12
NC
L: (Power-On) disable Power-On-Macro
L: Wakeup from Powerdownmode
13 WUP
In
33
NC
do not connect
14 CPOL
15 CPHA
16 BUZZ
In Clock Polarity (0=LO 1=HI when idle)
In Clock Phase sample 0=1st;1=2nd edge
Out H: Buzzer output (L: Buzzer off)
34
35
36
NC
NC
NC
do not connect
do not connect
do not connect
L: Disable Smallprotokoll
do not connect for normal operation
L: Normal Operation
H: Powerdownmode
17 DPROT
18 PWR
In
37
NC
do not connect
Out
38
39
NC
NC
do not connect
do not connect
19
20
NC
do not connect
open-drain with internal pullup 20k..50k
IN (Power-On) L: Testmode
OUT L: data in sendbuffer
TEST
SBUF
IN
Out
40
NC
do not connect
Note:
The pins DORD, CPOL, CPHA, DPOM, DPROT and TEST/SBUF have an internal pullup, which is why only the LO level
(0=GND) is to be actively applied. These pins must be left open for a hi level.
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.
DATATRANSFERSPI
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 can
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 eDIP for internal operation does need
ashorttimebeforeprovidingthedata;thereforeashort
pause of min. 6µs (no activity of CLK line) is needed for
each byte.
Application example
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 7
Pinout eDIP160-7: I2C mode
I²C-BUSINTERFACE
Pin Symbol In/Out Function
Pin
Symbol
GND
In/Out Function
1
2
GND
VDD
NC
Ground Potential for logic (0V)
21
22
23
24
25
26
27
28
29
30
31
32
Ground (0V)
If the display is wired as shown
below, it can be operated directly
on an I²C bus.
8 different base addresses and 8
slave addresses can be selected
on the display.
Data transfer is possible at up to
100 kHz. However, if pauses of at
least 100 µs are maintained
between the individual bytes
during transfer, a byte can be
transferred at up to 400 kHz.
Power supply for logic (+5V)
do not connect
VDD
Power supply (+3,3..5V)
3
NC
do not connect
4
NC
do not connect
NC
5
RESET
BA0
BA1
SA0
SA1
SA2
BA2
In L: Reset
IN8 / OUT1
IN7 / OUT2
IN6 / OUT3
IN5 / OUT4
IN4 / OUT5
IN3 / OUT6
IN2 / OUT7
IN1 / OUT8
8 digital inputs
(internal 20k..50k pullup)
6
In Basic Address 0
7
In Basic Address 1
8
In Slave Address 0
alternativ up to 8 digital
outputs
maximum current:
9
In Slave Address 1
10
11
In Slave Address 2
In Basic Address 2
IOL = IOH = 10mA
12 I2CMOD
In connect to GND for I²C interface
L: (Power-On) disable Power-On-Macro
L: Wakeup from Powerdownmode
13 WUP
In
33
NC
14
15
SDA
SCL
Bidir. Serial Data Line
34
35
36
NC
NC
NC
In Serial Clock Line
16 BUZZ
Out H: Buzzer output (L: Buzzer off)
L: Disable Smallprotokoll
do not connect for normal operation
17 DPROT
In
37
NC
do not connect
L: Normal Operation
H: Powerdownmode
18 PWR
Out
38
39
NC
NC
19
20
NC
do not connect
open-drain with internal pullup 20k..50k
TEST
SBUF
IN
Out
IN (Power-On) L: Testmode
40
NC
OUT L: data in sendbuffer
Note:
The pins DORD, CPOL, CPHA, DPOM, DPROT and TEST/SBUF have an internal pullup, which is why only the LO level
(0=GND) is to be actively applied. These pins must be left open for a hi level.
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
Base
Pin 11,7,6
I²C address
D7
D6
D5
D4
D3
D2
D1
D0
address
BA2 BA1 BA0
L
L
L
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
L
H
H
L
S
A
2
S
A
1
S
A
0
L
H
L
R
W
H
H
H
H
L
H
L
H
H
H
all pins open: Write $DE
Read $DF
DATATRANSFERI²CINTERFACE
principle I2C-bus transfer:
-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:EAeDIP-I²C-Address(e.g. $DF), readACK-byteandopt. smallprotocollpackage(data)
- I²C-Stop
Read operation: for internal operation the EA
eDIP 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).
Applikationsbeispiel
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 8
IN-ANDOUTPUTS
The eDIP160-7 has 8 digital in- or outputs (CMOS level, grounded). They can be redefined freely.
Inputs
As status on delivery, all ports are defined as inputs. Each input provides an internal
20..50 kΩ pull-up resistor, so it is possible to connect a key or switch directly between
input and GND. The inputs can be queried and evaluated directly via the serial
interface („ESC Y R“).
In addition to that every port change may start an individual port - or bit- macro (see p.
24). The command "ESC Y A 1" activates automatic port query. Every alteration of inputs firstly calls
bit macros and afterwards port macros. If there is no definied macro, the new status is transfered into
the send buffer (refer to p. 18).
Note: The logic circuitry is designed for slow operations; in other words, more than 3 changes per
second cannot be easily executed.
Outputs
The command "ESC Y M number" redefines one or several inputs as outputs. In this case the more
significant inputs are used as outputs.
'ESC Y M 3' switches IN8, IN7 and IN6 as outputs OUT1, OUT2 and OUT3
for example.
Each line can be controlled individually using the „ESC Y W“ command. A
maximumcurrentof10mAcanbeswitchedperline. Thisgivetheopportunity
to drive a low power LED in direct way. To source higher current please use
an external transistor.
EXTENDEDOUTPUTS
It is possible to connect 1 to 32 chips like 74HC4094 to the eDIP (OUT1...OUT3), this is why it is
attainable to have 8 to 256 additional outputs. The command "ESC Y E n1 n2 n3" (see p. 16) provides
a comfortable way to control the outputs.
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 9
TOPVIEWANDTWISTEDMOUNTING
The prefered view of the eDIP160 is bottom view, (6 o'clock).
The eDIP can be mounted turned around 180° to gain a top view display (12 o'clock). To set the
viewing direction you have to run (e.g. in PowerOnMacro) the command 'ESC DO 2' (refer to p. 13).
In addition it is possible to mount the display turned with 90° or 270° to gain a portrait mode display
with 104x160 pixels.
0°: 'ESC DO 0'
90°: 'ESC DO 1'
180°: 'ESC DO 2'
270°: 'ESC DO 3'
POWERDOWNMODE
Tosaveenergy(batteryoperation), youcanactivateoneofthreepower-downmodesbymeansofthe
command ‘ESC PD n1’ (see page 15 below).
Mode 0 (25µA): The LED illumination is switched off, and the contents of the display become
invisible although they are still there. In power-down mode including suppressor
diodes, the eDIP160 requires up to 1000 µA (delivery state). The suppressor diodes
can be deactivated by removing the two 0Ω resistors. Then powerdown current of
typically 25 µA is reached. They are labeled with Rpd.
Important: When deactivating the suppressor diodes, it is essential that the polarity of
the display is correct all the time: GND, VDD (pin 1 + 2). Even very brief polarity reversal
or overvoltage can damage the display immediately and irreparably.
Mode 1 (1mA): The LED illumination is switched off, the contents of the display stay visible. Current
consumption is reducing to 1mA. This power down mode is mainly usable with the
versions EA eDIP160W with positive display, because they are readable without
backlight.
Mode 2 (2mA): The LED illumination stays on and the display content is readable. The current
consumption reduces to 2-3mA plus adjusted LED current. Therefore you can use
the eDIP in dark surroundings and dimmed illumination under e.g. 10mA.
The eDIP160 can be woken up from power down mode with a low level on pin 13 (WUP), or the
adressing via I²C.
In additon the eDIP160 can be woke up by using the touchpanel (independed from position).
After wake up, special WakeUpMacros can be used (refer to p. 24).
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 10
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 eDIP160-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 elapsed before the package is sent again.
The raw data volume per package is limited to 255 bytes (len <=255).
Commandslongerthan255bytes(e.g.LoadimageESCUL...)mustbesplit
up between a number of packages. All data in the packages are compiled
again after being correctly received by the EA eDIP.
DEACTIVATINGTHESMALLPROTOCOL
ForteststheprotocolcanbeswitchedoffwithanL-levelatpin17=DPROT.
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.
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(dez.) = $11
<ACK> = 6(dez.) = $06
len = count of user data (without <DC1>, without checksum bcc)
bcc = 1 byte = sum of all bytes incl. <DC1> and len, modulo 256
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 159,103
for(i=0;i<len;i++)
{SendByte(buf[i]);
bcc = bcc + buf[i];
}
<DC1>
$11
len
ESC D L ESC G D 0 0 159 103
bcc
$72
>
<
$0A $1B $44 $4C $1B $47 $44 $00 $00 $9F $67
<ACK>
$06
SendByte(bcc);
}
//Sendchecksum
Example fo a complete datapackage
C-example to send a datapcket
Request for content of send buffer
<DC2>
<ACK>
<DC1>
1
S
bcc
The command sequence <DC2>, 1, S, bcc
empties the display’s send buffer. The display
replies with the acknowledgement <ACK> and
begins to send all the collected data such as
touch keystrokes.
>
<
<
len
data...
bcc
<DC2> = 18(dez.) = $12
<ACK> = 6(dez.) = $06
1 = 1(dez.) = $01
S = 83(dez.) = $53
len = count of user data (without <DC1>, without checksum bcc)
bcc = 1 byte = sum of all bytes incl. <DC1> and len, modulo 256
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 11
Request for buffer information
This command queries whether user data is
ready to be picked up and how full the display's
receive buffer is.
<DC2>
1
I
bcc
>
<
<ACK>
send buffer
bytes ready
receive buffer
bytes free
<DC2>
2
bcc
<
<DC2> = 18(dez.) = $12
<ACK> = 6(dez.) = $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
This is how the maximum package size that can
besentbythedisplaycanbelimited.Thedefault
setting is a package size with up to 128 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.
Protocol settings
packet size for
send buffer
<DC2>
<ACK>
3
D
timeout
bcc
>
<
<DC2> = 18(dec.) = $12
packet size for send buffer = 1..128 (standard: 128)
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
3 = 3(dez.) = $03
D = 68(dez.) = $44
Request for protocol settings
This command is used to query protocol
settings.
<DC2>
1
P
bcc
>
<
<ACK>
max.
akt. send
packet size
<DC2>
3
akt. timeout
bcc
<
packet size
<DC2> = 18(dez.) = $12
<ACK> = 6(dez.) = $06
1 = 1(dez.) = $01
P = 80(dez.) = $50
max. packet size = count of maximum user data for 1 package (eDIP160-7 = 255)
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>
1
R
bcc
>
<
<ACK>
<DC1>
<DC2>
len
data...
1 = 1(dez.) = $01
bcc
<
<DC2> = 18(dez.) = $12
<ACK> = 6(dez.) = $06
<DC1> = 17(dez.) = $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)
This command can be used to select or
deselect the eDIP with the address adr.
select or
<DC2>
<ACK>
3
A
adr
bcc
>
<
deselect
<DC2> = 18(dez.) = $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
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 12
TERMINALMODE
Whenyouswitchtheuniton,thecursorflashesinthe
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,’#’). The prerequisite for this is a
working protocol frame (pages 10 and 11) or a
deactivated protocol.
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 (page feed) deletes the terminal. The
character ‘#’ is used as an escape character and
thus cannot be displayed directly on the terminal. If
thecharacter‘#’istobeoutputontheterminal,itmust
be transmitted twice: ‘##’.
Terminal-Font (Font 0): 8x8 monospaced
The terminal has its own level for displaying and is thus entirely
independent of the graphic outputs.
If the graphics screen is deleted with ‘ESC DL’, for example, that does not affect the contents of
the terminal window. The terminal font is fixed in the ROM and can also be used for graphic outputs
‘ESC Z...’ (set FONT nr=0).
FILLPATTERN
A pattern type can be set as a parameter with various
commands. In this way, for example, rectangular
areas and bar graphs can be filled with different
patterns. There are 16 internal fill patterns available.
USINGTHESERIALINTERFACE
The operating unit can be programmed by means of various integrated commands. Each command
begins with ESCAPE followed by one or two command letters and then parameters. There are two
ways to transmit commands:
1. ASCII mode
- The ESC character corresponds to the character ‘#’ (hex: $23, dec: 35).
- The command letters follow 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,159,103,
- Strings (text) are written directly without quotation marks and concluded 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 transmitted directly.
- The coordinates xx and yy are transmitted as 16-bit binary values (first the LOW byte and then the
HIGH byte).
- All the other parameters are transmitted as 8-bit binary values (1 byte).
- Strings (text) are concluded 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).).
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 13
ALLCOMMANDSATAGLANCE
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 12) or together with the
selfdefinable macro.
Terminal commands
After
reset
Command
Codes
^L
Remarks
Form feed FF (dec:12)
Carriage return CR(13)
Line feed LF (dec:10)
Position cursor
The contents of the screen are deleted and the cursor is placed at pos. (1,1)
^M
Cursor to the beginning of the line on the extreme left
Cursor 1 line lower, if cursor in last line then scroll
C=column; L=line; origin upper-left corner (1,1)
n1=0: Cursor is invisible; n1=1: Cursor flashes;
The current cursor position is saved
^J
P
C
S
R
A
E
V
J
C
L
1,1
1
Cursor on/off
n1
Save cursor position
Restore cursor position
Terminal off
Terminal on
Output version
ESC
T
T
The last saved cursor position is restored
Terminal display is switched off; outputs are rejected
Terminal display is switched on;
On
The version no. is output in the terminal (e.g. "EA eDIP160-7 V1.0 Rev.A")
The macro project name is output to the terminal (e.g. "init / delivery state")
ESC
ESC
Output project name
The terminal is initialized and deleted; software version, hardware revision, the macro
project name and the CRC-checksum is ouput to the terminal
Output information
I
Display commands (effect the entire display)
after
reset
Command
Codes
Remarks
Set display orientation
O
n1
n1
n1
n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°; (0°+180°=160x104; 90°+270°=104x160)
0°
20
0
n1=0..40: Set display contrast to n1 (default = 20)
n1='+': increase contrast; n1='-': decrease contrast
n1=0: grayscale mode ON; flashing is possible
n1=1: grayscale mode OFF; flahing not possible
ESC
D
Set display contrast
Set grayscale mode
K
G
Delete display
Invert display
L
I
Delete display contents (all pixels off)
Invert display contents (invert all pixels)
S
A
E
C
Fill display contents (all pixels on)
Fill display
Switch display off
Switch display on
Show clipboard
Display contents become invisible but are retained, commands are still possible
Display contents become visible again
ESC
D
oN
Show content of clipboard; Standard display outputs are no longer visible
Show normal display
content
N
Normal operation, standard display outputs are visible
Clipboard commands (Buffer for display area)
after
reset
Command
Codes
Remarks
Save display contents
Save area
Restore area
Copy area
B
S
R
K
The entire contents of the display are copied to the clipboard as an image area
x1 y1 x2 y2
x1 y1
The image area from x1,y1 to x2,y2 is copied to the clipboard
The image area on the clipboard is copied back to the display
The image area on the clipboard is copied to x1,y1 in the display
ESC
C
after
reset
Straight lines and points
Command
Codes
Remarks
Settings
Point size / line thickness
Link mode
Blink attribute
Z
V
n1 n2
n1
n1 = x-point size (1..15); n2 = y-point size (1..15);
1,1
1
ESC
ESC
G
G
Set drawing mode n1: 1=set; 2=delete; 3=inverse
n1:0=no blink; 1=on/off; 2=blink inverted; 3=off/on (phase shifted)
n1:0=black solid line; 1=dark gray; 3=light gray (refer to command ESC DG)
B
n1
0
Gray-scale
Draw lines and points
Draw point
P
D
W
R
x1 y1
Set a point at coordinates x1, y1
Draw straight line
Continue straight line
Draw rectangle
x1 y1 x2 y2
x1 y1
Draw a straight line from x1,y1 to x2,y2
Draw a straight line from the last end point to x1,y1
Draw four straight lines as a rectange from x1,y1 to x2,y2
ESC
G
0, 0
x1 y1 x2 y2
after
reset
Change / draw rectangular areas
Command
Delete area
Invert area
Fill area
Area with fill pattern
Draw box
Codes
Remarks
L
I
x1 y1 x2 y2
x1 y1 x2 y2
x1 y1 x2 y2
Delete an area from x1,y1 to x2,y2 (all pixels off)
Invert an area from x1,y1 to x2,y2 (invert all pixels)
Fill an area from x1,y1 to x2,y2 (all pixels on)
S
M
O
R
T
ESC
R
x1 y1 x2 y2 n1 Fill an area from x1,y1 to x2,y2 with pattern n1 (always set)
x1 y1 x2 y2 n1 Draw rectangle from x1,y1 to x2,y2 with pattern n1 (always replace)
x1 y1 x2 y2 n1 Draw frame of type n1 from x1,y1 to x2,y2 (always set)
x1 y1 x2 y2 n1 Draw frame box of type n1 from x1,y1 to x2,y2 (always replace)
Draw frame
Draw frame box
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 14
after
reset
Text commands
Remarks
Befehl
Codes
Settings
Set font
F
Z
n1
Set font with the number n1 = 0..15
0
1,1
0
0
0
4
Set font zoom factor
Additonal line spacing
Spacwidth
n1 n2
n1
n1 = x-zoom factor (1x..4x); n2 = y-zoom factor (1x..4x)
Y
J
Insert n1 = 0..15 dots between two lines as additional spacing
Spacewidth: n1=0 use from font; n1=1 same width as number; n1>=2 width in dot
Text angle: n1=0: 0°; n1=1: 90°;
ESC
ESC
Z
Z
n1
Text angle
W
V
n1
Text link mode
Text flashing attribute
Gray scale
n1
Mode n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace
n1:0=no flashing; 1=on/off; 2=flash inversly; 3=off/on (phase shifted)
n1:0=black; 1=dark gray; 3=light gray (refer to command: ESC DG)
B
n1
0
Output strings
A string is output to x1,y1; string termination is: 'NUL' ($00), 'LF' ($0A) or 'CR' ($0D);
several lines are seperated by the character '|' ($7C);
L
Output string
L: left justified
C: centered
Text between two '~' ($7E): characters flashes on/off;
Text
...
ESC
ESC
Z
Z
x1 y1
NUL
Text between two '&' ($26): characters flashes phase shifted;
Text between two '@' ($40): Zeichen stehen blinken Invertierend;
The character '\' ($5C, backslash) cancels the special funtion of characters '|~@\';
e.g. "name\@test.de" => "name@test.de"
C
R: right justified
R
T
String for terminal
Text ...
Command to output a string (text...) from a macro to the terminal
after
reset
Bitmap commands
Command
Codes
Remarks
Settings
Z
W
V
n1 n2
n1
n1 = x-zoom factor(1x..4x); n2 = y-zoom factor (1x..4x)
Image zoom factor
Image angle
Image link mode
Image flashing attribute
Image gray scale
1,1
0
4
ESC
U
Image angle: n1=0: 0°; n1=1: 90°
n1
Mode n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace;
n1:0=no flashing; 1=on/off; 2=flash inverted; 3=off/on (phase shifted)
n1:0=black; 1=dark gray; 3=light gray (refer to command ESC DG)
ESC
U
B
n1
0
Output
C
I
x1 y1
x1 y1
x1 y1
The current contents of the clipboard are loaded to x1,y1 with all the image attributes
Image from clipboard
Load internal image
Load image
ESC
U
nr
Load internal image with nr (0..255) from EEPROM to x1,y1
L
BLH data ... Load an image to x1,y1; data... = image in BLH-format
Hardcopy
ESC
U
Send hardcopy
H
x1 y1 x2 y2
An image area x1,y1 to x2,y2 is put into the sendbuffer. The image is send in BLH-format
after
reset
Bargraph commands
Commands
Codes
Remarks
Definition
Define bargraph with number n1=1..32 to l(eft), r(ight), o(up), u(down).
x1,y1,x2,y2 are the surrounding rectangle of the bar. aw,ew are the values fo
n1 x1 y1 x2 y2 aw ew type pat 0% and 100%.
type=0:pattern bar; type=1:pattern bar in rectangle; pat=bar pattern
type=2:line bar; type=3:line bar in rectangle; pat=line width
R
L
O
no bar
defined
ESC
ESC
B
B
Define bargraph
Delete bargraph
U
The definition of bargraph n1 becomes invalid. If the bargraph was defined as an input by touch, the
touch field will also be deleted
D
n1 n2
n2=0: Bargraph remains visible; n2=1: Bargraph is deleted
Use
Update bargraph
Redraw bargraph
Send bargraph value
A
Z
S
n1 val
n1
Set and draw the bargraph n1 to new val(ue).
ESC
B
Entirely redraw the bargraph n1.
n1
Send the current value of the bargraph number n1
after
reset
Flashing commands
Command
Codes
Remarks
Settings
ESC
Q
Set flashing time
Z
n1
Set flashing time to n1= 1..15 in 1/10s; 0=flashing deactivated
6
Flashing areas
Delete the flashing attribute from x1,y1 to x2,y2. Do not use this command for phase shifted
areas! (Copies the area from grafiklayer to blinklayer)
Delete flashing attribute
Flashing inversely
L
I
x1 y1 x2 y2
x1 y1 x2 y2
Define an inverted flashing area from x1,y1 to x2,y2. (Copies the inverted area from grafiklayer
to blinklayer)
ESC
Q
Define a flashing area (on/off) with pattern n1 frim x1,y1 to x2,y2 (Draw the pattern into
blinklayer)
Flashing area pattern
M
x1 y1 x2 y2 n1
Phase shifted areas
Delete the phase shifted flashing area from x1,y1 to x2,y2. Do not use this command for other
flashing attributes! (Copues the area from blinklayer to graphiklayer)
Restore phase shifted area
R
E
x1 y1 x2 y2
x1 y1 x2 y2
Define a ohase shifted inverted flashing area frim x1,y1 to x2,y2. (Copies the inverted are from
blinklayer to graphiklayer)
Inverted phase shifted area ESC
Q
Phase shifted flashing
pattern
Define a phase shifted flashing area (off/on) with pattern n1 from x1,y1 to x2,y2. (Draw the
pattern into grafiklayer)
P
x1 y1 x2 y2 n1
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 15
after
reset
Menu commands
Command
Codes
Remarks
Settings for menu box/touch menu
Set font with the number n1 (0 to 15) for menu display
n1 = x-zoom factor (1x..4x); n2 = y-zoom factor (1x..4x)
Set menu font
F
Z
n1
0
1,1
Menu font zoom factor
Additional line spacing
Menu angle
n1 n2
n1
Y
Insert n1 (0..15) dots between two menu items as additional spacing
Menu display angle: n1=0: 0°; n1=1: 90°;
ESC
N
W
n1
0
1
n1=1: Touchmenu opens autmatically;
n1=0: Touchmenu doesn't open automatically, instead the rquest 'ESC T0' is sent to the host,
which can then open the touch menu with 'ESC NT2'
Touch menu automation
Define and display menu
T
n1
Menu box commands (control not by touch)
A menu is drawn at the corner x1,y1 witch the current font of menu
nr:= currently inverted entry (e.g. 1 = first entry)
Text...:= string with menu items. The different items are seperated by the character
NUL '|' ($7C,dez:124) e.g. "Item1|Item2|Item3"
Text
...
D
x1 y1
nr
The background of the menu is automatically saved into the clipboard (previous contend will be
overwritten).
If a menu is already defined, it is automatically canceled and deleted
ESC
N
Next item
Previous item
N
P
The next item is inverted or remains at the end
The previous item is inverted or remains at the beginning
The menu is removed and replaced with the original background. The current item is sent as a
number (1 to n; 0 = no menu displayed)
End of menu/send
S
The menu is removed and replaced with the original background. Menu macro n1 is called for
item 1, menu macro n1+1 for item 2 and so on... .
End of menu/macro
End of menu/cancel
M
A
n1
The menu is removed and replaced with the original background
after
reset
Macro commands
Command
Codes
Remarks
Call macros
Run normal macro
Run touch macro
Run menu macro
Run port macro
Run bit macro
N
T
n1
n1
n1
n1
n1
Call the (normal) macro with the number n1 (max. 7 levels)
Call the touch macro with the number n1 (max. 7 levels)
Call the menu macro with the number n1 (max. 7 levels)
Call the port macro with the number n1 (max. 7 levels)
Call the bit macro with the number n1 (max. 7 levels)
automatic (normal-) macros
ESC
M
M
P
B
Call the (normal) macro with the number n1 in n2/10s. Execution is stopped by commands (e.g.
receipt or touch macros)
Macro with delay
G
E
n1 n2
Automatic macros once
only
Automatically run macros n1 to n2 once only; n3 = pause in 1/10s. Execution is stopped
by commands (e.g. receipt or touch macros)
n1 n2 n3
ESC
M
Automatically run macros n1 to n2 cyclically; n3 = pause in 1/10s. Execution is stopped by
commands (e.g. receipt or touch macros)
Automatically run macros n1 to n2 to n1 (ping pong); n3 = pause in 1/10s. Execution is stopped by
commands (e.g. receipt or touch macros)
A
J
n1 n2 n3
n1 n2 n3
Automatic macros cyclically
Automatic macros pin pong
Macro processes
A macro process with the number no (1 to 4) is defined (1=highest priority). The macros n3 to
Define macro process
D
no type n3 n4 zs n4 are run successuvely every zs/10s.
Type: 1=once only; 2=cyclical; 3=ping pong n3 to n4 to n3
ESC
M
A new time zs/10s is assigned to the macro process no (1 to4). If the time zs is set to 0, the
execution is stopped.
All macro processes are stopped with n1=0 and restarted with n1=1 in order, for example, to
execute settings and outputs via the interface undisturbed.
Macro process interval
Stop macro processes
Z
S
no zs
n1
1
after
reset
General commands
Command
Codes
Remarks
Backlight
Illumination brightness
Brightness changetime
Illumination on/off
H
Z
n1
n1
n1
Set brightness of the LED illumination to n1=0%..100%
Time n1=0..31 in 1/10s for changing brightness from 0% to 100%
LED illumination n1=0: off; n1=1: on; n1=2 to 255: The illumination is switched on for n1/10s.
Save actual brightness and changetime parameter for power on to EEPROM
Send commands
100
5
ESC
Y
L
1
Save parameter
@
len (=1 to 255) bytes are sent to the sendbuffer data... = data to send. In the source text of the
macro programming, the number len must not be specified. This is counted by the
ediptft-compiler and entered.
Send bytes
B
len
data ...
ESC
S
V
J
I
The version is sent as a string to sendbuffer, e.g. "EA eDIP160-7 V1.0 Rev.A TP+"
The macro project name is sent as a string to sendbuffer, e.g. "init / delivery"
Internal information about the eDIP is sent to the sendbuffer
Send version
Send projectname
Send internal infos
Other commands
Wait n1/10s before next command is executed
ESC
ESC
ESC
ESC
X
K
Y
P
n1
A
Wait (pause)
For RS232/RS485 operation only and only possible when Hardware address is 0. The eDIP is
assigned a new address adr (in the Power-On-Macro).
Set RS485 address
Buzzer output
Power down
adr
S
n1
The buzzer output (pin 16) becomes n1=0:OFF; n1=1:ON; n1=2 to 255:ON for n1/10s
OFF
After this command, the display goes into power-down mode n1=0..2 (see page 9).
n2=0: no wake-up by touch; n2=1: wake-up by touch possible
D
n1 n2
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 16
after
reset
I/O-Ports
Remarks
Command
Codes
Input ports
n1=0: Read all input ports as binary value (to sendbuffer)
n1=1..8: Read input port n1 (1=H-level=VDD, 0=L-level=GND)
The automatic scan of the input port is n1=0 deactivated, n1=1 activated
The input port is n1=0 is evaluated normal, n1=evaluated inverted
R
n1
Read input port
Port scan on/off
Invert input port
A
I
n1
n1
1
0
ESC
Y
Input port n1=1..8 is assigned by falling edge n2=0 to BitMacro n3=0..255
Input port n1=1..8 is assigned by rising edge n2=1 to BitMacro n3=0..255
D
n1 n2 n3
Redefine input bitmacro
Output ports
n1=0: All 8 I/O-Ports are inputs IN1..IN8 (=default after Power-On / Reset)
n1=1..8: n1 I/O-lines will be set to output (beginninge at OUT1 upwards)
n1=0: Set all defined output ports in accordance with n2 (=binary value)
n1=1..8: Reset output port n1 (n2=0); set (n2=1); invert (n2=2)
Define output port
Write output port
M
n1
0
ESC
ESC
Y
Y
W
n1 n2
Port expansion with 74HC4094
Set the outputs of the external 74HC4094 (refer to page 8) from port n1=0..255 to port
n2=0..255; n3=0: low; n3=1: high; n3=2: invert
Write extended ports
E
n1 n2 n3
TOUCHPANEL(ONLY EAeDIP160x-7xxTP)
The -xxxTP versions are shipped with an analog, resistive touch panel. Up to 40 touch
areas (keys,switches, menus, bar graph inputs) can be defined simultaneously. The
fields can be defined with pixel accuracy. The display supports user-friendly
commands (see page 17). When the touch “keys” are touched, they can be
automatically inverted and an external tone can sound (pin 16), indicatingthey have
been touched. The predefined return code of the “key” is transmitted via the interface,
or an internal touch macro with the number of the return code is started instead (see
page 22, Macroprogramming).
FRAMESANDKEYSHAPES
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). The frame
size must be at least 16x16 pixels.
BITMAPSASKEYS
Apart from the frame types, which are infinitely scalable, it is also possible to use
bitmaps (2 each, for not printed and printed) as touch keys or touch switches. You can
useELECTRONICASSEMBLYLCD-Tools*)tointegrateyourownbuttonsasimages
(“PICTURE” compiler statement). A button always consists of two monochrome
Windows BMPs of equal size (one bitmap to display the touch key in its normal state
and one for when it is pressed). The active area of the touch key automatically results
from the size of the button bitmaps.
SWITCHESINGROUPS(RADIOGROUP)
Touchswitches(radiobuttons)changetheirstatusfromONto
OFF or vice versa each time they are touched. Several touch
switches can be included in a group (‘ESC A R nr’ command).
If a touch switch in the group ‘nr’ is switched on, all the other
touch switches in this group are automatically switched off.
Only one switch is ever on.
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 17
after
reset
Commands for the touch panel
Command
Codes
Remarks
Settings
ESC
A
Touch frame form
Radio group for switches
E
R
n1
nr
The frame type for the display of touch keys/switches is set with n1
1
Only 1 switch in a group is active at any one time; all the others are deactivated. nr=0: newly
defined switches do not belong to a group. nr=1 to 255: newly defined switches belong to the
group with the number nr. In the case of a switch in a group, only the down code is applicable.
the up code is ignored.
ESC
A
0
Touch: Label font
F
Z
nr
Set font with the number n1 (0 to 31) for touch key label
n1 = X zoom factor (1x to 8x); n2 = Y zoom factor (1x to 8x)
Insert n1 pixels (0 to 15) between two lines of text as additional line spacing
Text output angle: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°
Label font
0
1,1
Label zoom factor
Add. line spacing
Label angle
n1 n2
n1
ESC
A
Y
W
n1
0
Touchbereiche definieren
'T': The area from xx1,yy1 to xx2,yy2 is defined as a key. 'U': Image no. n1 is
loaded to xx1,yy2 and defined as a key. 'down code':(1-255) Return/touch
dow up Text
Cod Cod ...
macro when key pressed. 'up code': (1-255) Return/touch macro when key
released. (down/up code = 0 press/release not reported). ´text´: the first
character determines the alignment of the text (C=centered, L=left justified,
R=right justified). this is followed by a string that is placed in the key with the
current touch font. multiline texts are separated with the character '|' ($7C,
dec: 124); 'nul': ($00) = end of string
T
U
K
J
x1 y1 x2 y2
NUL
Define touch key (key
remains depressed as long
as there is contact)
ESC
A
dow up Text
Cod Cod ...
x1 y1 n1
NUL
'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). ´text´: the first
character determines the alignment of the text (C=centered, L=left justified,
R=right justified). this is followed by a string that is placed in the key with the
current touch font. multiline texts are separated with the character '|' ($7C,
dec: 124); 'nul': ($00) = end of string
dow up Text
Cod Cod ...
x1 y1 x2 y2
NUL
Define touch switch (status
of the switch toggles after
each contact)
ESC
A
dow up Text
x1 y1 n1
NUL
Cod Cod ...
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 is not reported.) 'text':= string
with the key text and the menu items. the first character determines the
NUL 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
(C=centered, L=left justified, R=right justified). The menu items are
separated by the character '|' ($7C,dec:124) (e.g.
Define touch key with menu
function
dow up mnu Text
Cod Cod Cod ...
ESC
A
A
M
x1 y1 x2 y2
"uckey|item1|item2|item3". The key text is written with the current touch
font and the menu items are written 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
Define drawing area
D
x1 y1 x2 y2 n1
A freely usable touch area is defined. Touch actions (down, up and drag) within the corner
coordinates xx1,yy1 and xx2,yy2 are sent.
ESC
ESC
Define free touch area
Set bar by touch
A
A
H
B
x1 y1 x2 y2
nr
The bar graph with the no. n1 is defined for input by touch panel.
Global settings
ESC
ESC
Touch query on/off
Touch key response
A
A
A
I
n1
n1
n1
Touch query is deactivated (n1=0) or activated (n1=1);
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
1
1
1
S
Send bar value
automatically
The Automatic transmission of a new bar graph value by touch input is deactivated (n1=0);
a new value is sent after setting (n1=1); each change is sent during setting (N1=2).
ESC
A
Q
n1
1
Other commands
Cod
Invert touch key
Set touch switch
Query touch switch
N
P
X
The touch key with the assigned return code is inverted manually
The status of the switch is changed by means of a command (n1=0=off; n1=1=on).
The status of the switch (off=0; on=1) is placed in the send buffer.
Cod n1
Cod
ESC
ESC
A
A
Der downcode des aktivierten Schalters aus der Radiogroup mit der Nummer nr wird in den
Sendepuffer gestellt.
Radiogroup abfragen
G
nr
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.
Cod
x1
L
n1
Delete touch area
remove the Touch area that includes the coordinates xx1,yy1 from the touch query. n1=0: area
remains visible; n1=1: Delete area
V
y1 n1
ADJUSTTOUCHPANEL
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 it depressed. 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).
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 18
RESPONSESOFTHEEAEDIP160-7VIASERIALINTERFACE
The table below contains all response codes. Some response data will come automatically some
others on request. In addition to that with command 'ESC SB ...' user is able to transmit individual data
packages. All reponses are placed into the sendbuffer. With the smallprotocol command ’Request for
contentofsendbuffer’(seepage10)thehostcanreadoutthesendbuffer.Thiscanbedoneperpolling,
alternatively pin 20 ’SBUF’ shows with Low-level that data is ready to transmit.
Responses of the eDIP
Remarks
Id
num
data
automatic responses (placed into sendbuffer)
Response from the analog touch panel when a key/switch is pressed. code = down or up code of the key/switch. It is
only transmitted if no touch macro with the number code is defined !
When a bargraph is set by touch, the current value of the bar no is transmitted. Transmission of the bar balue must be
activated (see the 'ESC A Q n1' command).
After a menu item is selcted by touch, the selected menu item code is transmitted. It is only transmitted if no touch
macro is defined with the number code.
If automatic opening of a touch menu is disabled (see 'ESC NT n1'), this request is sent to the host computer. The host
can then open the touch menu with the 'ESC N T 2' command.
After the input port is changed, the new 8-bit value is transmitted. The automatic port scan must be activated. See the
'ESC Y A n1' command. It is only transmitted when there is no corresponding port/bit macro defined !
The following is transmitted in the case of a free touch area event: type=0 is release; type=1 is touch; type=2 is drag
within the free touch area at the coordinates xx1, yy1
ESC
ESC
ESC
ESC
ESC
ESC
A
B
N
T
1
2
1
0
1
5
code
no
value
code
P
H
value
type
xLO
xHI
yLO
yHI
Response only when requested by command (placed into sendbuffer)
After the 'ESC N S' command, the currently selected menu item is transmitted. noo=0, no menu item is selected
After the 'ESC B S n1' command, the current value of the bar with the number no is transmitted.
After the 'ESC A X' command, the current status (value=0 or 1) of the touch switch code is transmitted.
ESC
ESC
ESC
ESC
N
B
X
G
1
2
2
2
no
no
value
code value
no
code
After the 'ESC A G nR' command, the code of the active touch switch in the radio group no is sent.
After the 'ESC Y R' command, the requested input port is transmitted. no=0: value is an 8-bit binary value of all 8 inputs.
no=1..8: value is 0 or 1 depending on the status of the input no
ESC
Y
2
no
value
After the 'ESC S V' command, the version of the edip firmware is transmitted as a string
e.g. "EA eDIP160-7 V1.0 Rev.A TP+"
After the 'ESC S J' command, the macro-projectname is transmitted. e.g. "init / delivery state"
ESC
ESC
V
J
num
num
version string...
projectname string...
X-dots, Y-dots, Version, Touchinfo,
CRC-ROM, CRC-ROMsoll
DF in KB,
after the 'ESC S I' command, internal information is sent by eDIP (16-Bit integer values LO-HI Byte)
Version: LO-Byte = version number Software; HI-Byte = Hardware revison letter touch
Touchinfo: LO-Byte = '-|+' X direction detected; HI-Byte = '-|+' Y direction detected
DFlen: number of user bytes in data flash memory (3 Bytes: LO-, MID- HI-Byte)
ESC
I
21
CRC-DF, CRC-DFsoll, DFlen
Responses without length specification (num)
after the 'ESC UH....' command, a hard copy is sent in BLH Format. xx1,yy1 = Start coordinates of the hard copy (upper
corner)
BLH-Data: 2 Byte: Width, height (in Pixel)+ amount of bytes of image data
amount = ((width+7)/8*height
image
yy1 data...
(G16-F
ESC
ESC
U
U
L
xx1
xx1
image data...
(G16-FORMAT)
G
yy1
In gray-scale mode, a second time 'amount of image data' is send for flashing mode
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 19
PRELOADEDFONTS
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. Each text can be output left justified,
rightjustifiedorcentered. 90°rotationisalsopossible. Macro
programming permits additional fonts to be integrated (up to
15). This is done using the LCD-Tools*) (EA 9777-2USB).
Font 1: 4x6 monospaced
Font 2: 6x8 monospaced
Font 3: 7x12 monospaced
Font 4: GENEVA10 proportional
Font 7: Big characters BigZif57
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 20
Font 6: Swiss30 Bold
proportional
Font 5: CHICAGO14 proportional
ADDITIONALFONTS
Compile statement "WinFont:"
It is possible to raster TrueType-Fonts in different sizes whitch can be used.
A doubleclick to the fontname within the KitEditor opens the font selection box.
To simplify the use of fonts, there is the possibilty of an edit box. If you output
a string with KitEditor (e.g. #ZL 5,5, "Hello"), you can perform a double click on
the string to open it. Now you can select the desired characters. This is mainly
recommended using cyrillic, asian or symbol fonts.
In that way, the KitEditor automatically places the right ASCII-Code.
Alternativly you can use instead of the quotation mark curly brackets (e.g. #ZL
5,5, {48656C6C6F}).
integrated fonts in delivery state
Compiler option "Font:"
Following font formats can be used:
- FXT: Textfont as used by eDIP240/320
and KIT series
Import WinFonts
Edit Box
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 21
DISPLAYBLINKMODE
Afterpoweronorthecommand'ESCDG0'theeDIP160isinblinkmode.
Two picture contents are alternatly shown in an adjustable period.
Blink attributs are set by the commands 'ESC ZB, UB, GB n1':
n1=0: no blink
n1=1: On/Off blink
n1=2: blink inverted
n1=3: Off/On blink (phase shifted)
Between strings ('ESC ZL,ZC,ZR. ..), flashing can be activated locally:
Strings between two ‘~’ ($7E) mean blink on/off.
Strings between two ‘&’ ($26) mean blink off/on phase shifted.
Strings between two '@' ($40) mean blink inverted.
In addition you can assign or delete postly an rectangle area a blink
mode, by using the command 'ESC Q...'
DISPLAYGRAYSCALE
After the command 'ESC DG 1' the eDIP160 is in grayscale mode. Flashing is no longer possible,
instead the blink mode is used for two grayscales.
Gray colours are generated with the help of the flashing modes 'ESC ZB, UB, GB n1':
n1=0: Black
n1=1: Dark gray
n1=3: light gray
Within strings (ESC ZL, ZC, ZR...), gray characters can be used locally:
Text between two ‘~’ ($7E) are dark gray.
Text between two ‘&’ ($26) are light gray.
In addition rectangular areas can
Macro: MnAutoStart
#TA
;
Terminal off
be filled gray or black postly, with
the use of commands of flashing
areas ('ESC Q...').
#AR
#AE 13
#AF CHICAGO14
1
;
;
;
define radiogroup
define frame
define touchlabelfont
#AK
20,30, 70,50, 1,0, "BLINK" ; place button „blink“
#AK 100,30,150,50, 2,0, "GRAY"
;
place button „gray“
#ZF SWISS30B
#ZC 45,35,
#ZC 125,35, "~dark~|&light&"
;
;
;
select textfont
place blink text
place gray text
"~OnOff~|&OffOn&"
TouchMacro:
#DG
1
2
;
;
Flashing
0
grayscalemode off -> flashing possible
TouchMacro:
#DG
;
;
Grayscale modus
grayscalemode on -> flashing impossible
1
Example code of the hardcopys
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 22
MACROPROGRAMMING
Single or multiple command sequences can be grouped together in macros and stored in the data
flash memory. You can then start them by using the Run macro commands. There are different types
of macro (compiler directive marked in green letters):
Normal macro Macro:
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 either a command is
received via the interface or a touch macro with a corresponding return code is activated.
Touch macro TouchMacro:
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 to 255) MenuMakro:
Started when you choose a menu item or issue an ‘ESC MM xx’ command.
Bit macro BitMacro:
will be started by a single line IN 1..8 (bit) will change or by command 'ESC MB xx'. Bit- Macro 1..8 are
good for falling edge and Bit Macro 9..16 are good for rising edge at input 1..8. It is possible to change
the assignment between Bitmacro and intput with command ‘ESC YD n1 n2 n3’ (see page 17).
Port macro PortMacro:
These are started when voltage (binary) is applied to IN 1..8 or by command 'ESC MP xx'.
Power-on-macro PowerOnMacro:
Started after power-on. You can switch off the cursor and define an opening screen, for example.
Reset-macro ResetMacro:
Started after an external reset (low level at pin 5).
Watchdog-macro WatchdogMacro:
Started after a fault/error (e.g. failure).
Important: If a continuous loop is
programmedinapower-on, reset, watchdog
Brown-out-macro BrownOutMacro:
Started after a voltage drop under 3.0V (typ.).
or brown-out macro, the display can no
longer be addressed. In this case, the
execution of the power-on macro must be
suppressed. You do this by wiring DPOM:
- PowerOff - connect pin 13 (DPOM) to GND
- PowerOn - open pin 13 (DPOM) again.
Wake-up-pin-macro WakeupPinMacro:
Started after wake up from power-down-mode with pin
13 (WUP).
Wake-up touch-Macro WakeupTouchMacro:
Started after wake up from power-down-mode with
touch (the whole touch area is active).
Wake-up I2C-Macro WakeupI2CMacro:
Started after wake up from power-down-mode with the I²C bus.
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 23
STORING IMAGES IN THE DATA FLASH MEMORY
To reduce the transmission times of the interface or to save storage space in the processor system,
up to 256 images can be stored in the internal EEPROM with the “PICTURE” compiler directive. They
can be called using the “ESC U I” command or from within a macro.
All images in the Windows BMP format (monochrome images only) can be used. They can be created
and edited using widely available software such as Windows Paint or Photoshop or the bitmap editor
shipped with the product.
CREATINGINDIVIDUALMACROSANDIMAGES
To create your own fonts, images, animations and macros you need the following:
- To connect the display to the PC, you need the EA 9777-2USB USB evaluation board, which is
available as an accessory, or a self-built adapter with a MAX232 level converter (see the application
example on page 5).
- ELECTRONIC ASSEMBLY LCD-Tools*), which contains a kiteditor, bitmapeditor, ediptftcompiler,
fonts, images, border, pattern and examples (for Windows PCs)
- A PC with an USB or serial COM interface
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, you start the eDIP compiler
using F5. This creates a file called DEMO.EEP. If an EA 9777-2USB evaluation board is also
connected or the display is connected to the PC via a MAX232, this file is automatically burned in the
display’s data memory.
You can send the created macrofile *.EEP with any other system to the EA eDIP160-7. All
programming commands are inside this file, so you only need to send the content of the *.df file (via
RS232, SPI or I2C with smallprotocol in packets) to the EA eDIP160-7.
KIT-EDITORHELP(ELECTRONICASSEMBLY LCDTOOLS)
At bottom from the KitEditor window in the statusline you can see a short description for the current
command and the parameters. For more information press F1.
*) im Internet unterhttp://www.lcd-module.de/deu/dip/edip.htm
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 24
SPECIFICATIONANDELECTRICALCHARACTERISTICS
Characteristics
Value
Condition
min.
typ.
max.
Unit
Operating Temperature
-20
+70
°C
Storage Temperature
Storage Humidity
Operating Voltage
-30
+80
90
°C
%RH
V
< 40°C
3.2
5.2
Input Low Voltage
Input High Voltage
Input High Voltage
Input Leakage Current
-0.5
0.2*VDD
VDD+0.5
VDD+0.5
1
V
V
Pin Reset only
except Reset
0.9*VDD
0.6*VDD
V
uA
Input Pull-up Resistor
Output Low Voltage
20
50
kOhms
V
0.7
VDD = 3,3V
VDD = 5V
2.5
4.2
Output High Voltage
Output Current
V
20
mA
mA
VDD = 3,3V
VDD = 5V
190
125
Current Backlight on
VDD = 3,3V
VDD = 5V
10
15
Current Backlight off
Power Down
mA
µA
Mode 0
25
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 25
MOUNTINGBEZELEA0FP161-7SW
As accessory we deliver an optional black anodized mounting bezel. The mounting clips are included
in the supplied EA eDIP160-7.
all dimensions are in mm
NOTESONHANDLINGANDOPERATION
- The module can be destroyed by polarity reversal or overvoltage of the power supply; overvoltage,
reverse polarity or static discharge at the inputs; or short-circuiting of the outputs.
-Itisessentialthatthepowersupplyisswitchedoffbeforethemoduleisdisconnected. Allinputsmust
also be deenergized.
- The display and touch screen are made of plastic and must not come into contact with hard objects.
The surfaces can be cleaned using a soft cloth without solvents.
- The module is designed exclusively for use in buildings. Additional measures have to be taken if it
is to be used outdoors. The maximum temperature range of -20 to +70°C must not be exceeded. If
usedinadampenvironment,themodulemaymalfunctionorfail.Thedisplaymustbeprotectedfrom
direct sunshine.
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 26
NOTES
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 27
NOTES
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EAeDIP160-7
Page 28
DIMENSION
FG: Connection
between metal frame
and GND (special ESD
/ EMV conditions)
ATTENTION
handling precautions!
Note:
LC displays are generally not suited
to wave or reflow soldering.
Temperatures of over 80°C can
cause lasting damage.
Two mounting clips are included.
all dimensions are in mm
Zeppelinstr. 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 0FP161-7SW EA eDIP160B-7LW EA eDIP160B-7LWTP EA eDIP160W-7LW EA eDIP160W-7LWTP
相关型号:
©2020 ICPDF网 联系我们和版权申明