Embedded LCD-DISPLAY: 240X128 With Intelligence
Embedded LCD-DISPLAY: 240X128 With Intelligence
Embedded LCD-DISPLAY: 240X128 With Intelligence
Issue 04.2012
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, IC 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
AS ABOVE, BUT WITHTOUCH PANEL STARTERKIT INCLUDES EAeDIP240B-7LWP AND EVALUATION BOARDWITH USB FOR DIRECT CONNECTIONTO PC AND INTERFACE BOARDS FOR CONNECTIONWITHYOUR HOST SYSTEM AS ABOVE, BUTWITH EA eDIP240J-7LWTP ADDTIOTNAL PARTS MOUNTING BEZEL (ALUMINIUM), BLACK ANODIZED SOCKET 1x20, 4.5mm HIGH (1 piece)
EA eDIP240-7
Page 2
Documentation of revision
Date 15.02.04 24.11.04 18.01.05 07.04.05 13.05.05 04.10.05 18.10.05 17.02.06 27.04.06 29.06.07 Type V1.0 V1.1 V1.2 V1.3 V1.4 V1.5 V1.6 V/A 61.0mm Modulo 8 New Command Macro-Process #MD../#MZ../#MS.. Adaptor MAX232 circuit diagramm Modulo 256 New Command Terminal-Cursor Save/Restore #TS/#TR New Command Bargraph send continous #AQ 2 New addressable 2-wire RS485 Interface with SN75176 New 32 additional I2C Addresses New Commands #AG, #SI, #KA Bugfix in SPI- I2C-Mode after wrong Packet (NAK) some problems with opertating >60C (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 Old New Reason / Description Preliminary version new firmware typing error in protocol description new firmware
CONTENTS GENERAL ..................................................................................................................... 3 ELECTRICAL SPECIFICATIONS ................................................................................... 4 RS-232 .......................................................................................................................... 5 SPI ................................................................................................................................ 6 IC ................................................................................................................................ 7 SOFTWARE PROTOCOL ............................................................................................ 8-9 TOUCH PANEL ............................................................................................................ 10 CHARACTER SETS .................................................................................................. 11-12 COMMANDS / FUNCTIONS INTABULAR FORM ..................................................... 13-15 ACKNOWLEDGEMENTS FROM THE CONTROL PANEL............................................. 16 PROGRAMMING EXAMPLE ........................................................................................ 17 PROGRAMMING MACROS ...................................................................................... 18-19 DIMENSIONS .............................................................................................................. 20
EA eDIP240-7
Page 3
GENERAL
The EA eDIP240-7 is the worlds first display with integrated intelligence! As well as a number of built-in fonts which can be used with pixel accuracy it also features a whole range of sophisticated graphics functions. Supplied with 5V, the display is ready for operation immediately. It is controlled via one of the 3 integrated RS232, SPI or IC 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 IC specification. A simple protocol is used for all data transfer variants to improve data reliability.
ANALOGTOUCH PANEL
The EA eDIP240B-7LWTP and EA eDIP240J-7LWTP versions are equipped with an integrated touch panel. You can make entries and menu or bar graph settings by touching the display. The labeling of the keys is flexible and can also be changed during runtime (different languages, icons). The drawing of the individual keys and the labeling is handled by the integrated software.
SOFTWARE
The display is programmed by means of commands, such as Draw a rectangle from (0,0) to (64,15). No additional software or drivers are required. Strings can be placed with pixel accuracy. Flashing attributes can be assigned as often as you like for graphics as well. Text and graphics can be combined at any time. Up to 16 different character sets can be used. Each one can be zoomed from 2 to 4 times. With the largest character set, the words and numbers displayed will fill the screen.
ACCESSORIES
Evaluation-Board (Programmer) for internal data flash memory The display is shipped fully programmed and with all fonts. The additional Evaluation-Board is thus generally not required. However, if the internal character sets have to be changed or extended, or if images or macros have to be stored internally, the Evaluation-Board EA 9777-2USB, which is available as an accessory, will burn the data/images you have created into the on-board EEPROM (32/64 kB) permanently. The Evaluation-Board runs under Windows and is connected to the PCs 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, IC, RS-232 (CMOS level). Further information you will find in the datasheet of the Evalution-Board.
EA eDIP240-7
Page 4
OUTPUT
Beginning with firmware V1.6 and the higher the EA eDIP240 is able to provide up to 7 digital output for driving an external LED for example. Depending on the choosen interface mode RS232, SPI or I2C all non used configuration pins can be used as separate output lines. All lines used for output (open drain with internal pull-up) are like 1=HIGH level for interface mode configuration. Each output can be set by command ESC YW n1 n2 individually. Maximum current is 10mA per line. Because of internal pull-up construction the max. current is valid for L level only. So theoretically each line is able drive a LED direct. Larger current need to be amplified by use of a transistor or MOSFET.
Relation Output <-> Pin No.
Output No. OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 RS232/RS422 6 7 8 9 13 14 15 BAUD0 BAUD1 BAUD2 ADR0 DPOM ADR1 ADR2 10 12 13 14 15 SPI DORD OUT2 DPOM CPOL CPHA 6 7 8 9 10 11 13 I2C BA0 BA1 SA0 SA1 SA2 BA2 DPOM Pin No. Symbol Pin No. Symbol Pin No. Symbol
EA eDIP240-7
Page 5
RS-232/RS-422 INTERFACE
Wiring the display as shown below selects the RS-232/RS-422 interface. The pin assignment is shown in the table on the right. The RxD and TxD lines have a 5V Pinout eDIP240-7 CMOS line level. If genuine RS- Pin Symbol In/Out Function Pin Symbol Function Ground Potential for logic (0V) 21 N.C. not connected 232 levels are required (e.g. for 1 GND 2 VDD Power supply for logic (+5V) 22 N.C. not connected direct connection to a PC), an 3 VADJ In Operating voltage for LC driving 23 N.C. not connected (input) external level converter such as the 4 VOUT Out Output voltage for LC driving 24 N.C. not connected 5 RESET L: Reset 25 N.C. not connected ICL232 is necessary. 6 BAUD0 In Baud Rate 0 26 N.C. not connected
RS-232 / RS-422 mode
7 8 9 10 11 12
Baud Rate 1 Baud Rate 2 Address 0 for RS-485 (V1.3 or later) Receive Data Transmit Data Transmit Enable for RS-485 driver L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 ADR1 In Address 1 for RS-485 (V1.3 or later) 15 ADR2 In Address 2 for RS-485 (V1.3 or later) 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer
In In In In Out Out
27 28 29 30 31 32 33 34 35 36 37 38 39 40
N.C. N.C. N.C. N.C. N.C. 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 not connected not connected 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.
BAUD RATES
The baud rate is set with pins 6, 7 and 8 (Baud0 through 2). The data format is set permanently to 8 data bits, 1 stop bit, no parity. RTS/CTS handshaking lines are not required. The integrated software protocol takes on the necessary control functions (see pages 8 and 9).
Baud rates
Baud0 Baud1 Baud2
0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1
Data format 8,N,1 1200 2400 4800 9600 19200 38400 57600 115200
Application example
EA eDIP240-7
Page 6
SPI INTERFACE
Wiring the display as shown below activates SPI mode. Data is then transferred over the serial, synchronous SPI interface. The DORD, CPOL and CPHA inputs are used to match the hardware conditions to the master. For Pinout eDIP240-7 example (see diagram below). Pin Symbol In/Out Function Pin Symbol Function
SPI mode
A reasonable communication is possible up to 100 kHz. Clock frequency may be rised up to 3 MHz, but in this case make shure, that there is a pause between 2 bytes of min. 100 s.
Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system.
Ground Potential for logic (0V) Power supply for logic (+5V) Operating voltage for LC driving 3 VADJ In (input) 4 VOUT Out Output voltage for LC driving 5 RESET L: Reset 6 SS In Slave Select 7 MOSI In Serial In 8 MISO Out Serial Out 9 CLK In Shift Clock 10 DORD In Data Order (0=MSB first; 1=LSB first) 11 SPIMODE In connect to GND for SPI interface open-drain with internal pullup 20..50k 12 OUT2 Out (V1.6 or later) L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 CPOL In Clock Polarity (0=LO 1=HI when idle) Clock Phase 15 CPHA In (sampled on 0=1st 1=2nd edge) 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer
1 2
GND VDD
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
N.C. N.C. N.C. N.C. N.C. N.C. N.C. N.C. N.C. N.C. N.C. 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 not connected not connected not connected not connected not connected not connected not connected not connected not connected not connected not connected
DATATRANSFER SPI
Via the pins DORD, CPOL and CPHA transfer parameter will be set. Write operation: a clock rate up to 100 kHz is allowed without any stop. Together with a pause of 100 s between every data byte a clock rate up to 3 MHz an be reached. Read operation: to read data (e.g. the "ACK" byte) a dummy byte (e.g . 0xFF) need to be sent. Note that the EA eDIP240-7 for internal operation does need a short time before providing the data; therefore a short pause of min. 6s (no activity of CLK line) is needed for each byte. Same is with 100kHz operation.
Application example
EA eDIP240-7
Page 7
IC BUS INTERFACE
Wiring the display as shown below allows the display to be operated directly on an IC bus. 4 different base addresses and 8 Pinout eDIP240-7 different slave addresses can be Pin Symbol In/Out Function Pin Symbol Function 1 GND Ground Potential for logic (0V) 21 N.C. not connected selected at the display. 2 VDD Power supply for logic (+5V) 22 N.C. not connected A data transmission rate of up to 3 VADJ In Operating voltage for LC driving 23 N.C. not connected (input) 100kHz is possible. 4 VOUT Out Output voltage for LC driving 24 N.C. not connected 25 N.C. not connected If transmitter will pause for min. 5 RESET In L: Reset 0 6 BA0 Basic Address 26 N.C. not connected In Basic Address 1 27 N.C. not connected 100 s between each byte, SCL 7 BA1 8 SA0 In Slave Address 0 28 N.C. not connected may rise u to max. 400 kHz. 9 SA1 In Slave Address 1 29 N.C. not connected
IC-Bus mode
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.
Slave Address 2 Basic Address 2 (V1.3 or later) connect to GND for IC interface L: disable Power-On-Macro 13 DPOM In do not connect for normal operation 14 SDA Bidir. Serial Data Line 15 SCL In Serial Clock Line 16 BUZZ Out Buzzer output 17 EEP_SDA Bidir. Serial Data Line for int. EEPROM 18 EEP_SCL Out Serial Clock Line for int. EEPROM 19 EEP_WP In H: Write Protect for int. EEPROM open-drain with internal pullup 20..50k TEST IN IN (Power-On) L: Testmode 20 SBUF Out OUT L: data in sendbuffer
In In In
30 31 32 33 34 35 36 37 38 39 40
N.C. N.C. 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 not connected not connected
Note: The pins BA0 to 2, SA0 to 2, DPOM, DPROT and TEST/SBUF have an internal pullup, which is why only the LO level (L=0=GND) is to be actively applied. These pins must be left open for a Hi level (H=1). On pin 20 (SBUF) the display indicates with a low level that data is ready to be retrieved from the internal send buffer. The line can be connected to an interrupt input of the host system, for example.
IC - Address
Pin 11,7,6 Base BA2 BA1 BA0 address L L L $10 L L H $20 L H L $30 L H H $40 H L L $70 H L H $90 H H L $B0 H H H $D0 IC address
D7 D6 D5 D4 D3 D2 D1 D0
DATA TRANSFER IC-BUS principle I2C-bus transfer: all pins open: Write $DE Read $DF - IC-Start - Master-Transmit: EA eDIP-IC-address (e.g. $DE), send smallprotocol package (data) - IC-Stop - IC-Start - Master-Read: EA eDIP-IC-Address (e.g. $DF), read ACK-byte and opt. smallprotocoll package (data) - IC-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. 6s is needed for each byte (no activity of SCL line).
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 R A W 0
Application example
EA eDIP240-7
Page 8
The user data is transferred framed by <DC1>, the number of bytes (len) and the checksum (bcc). The display responds with <ACK>.
void SendData(unsigned char *buf, unsigned char len) { unsigned char i, bcc; SendByte(0x11); bcc = 0x11; SendByte(len); bcc = bcc + len; // Send DC1 // Send data length // Send buf
<DC1> = 17(dec.) = $11 <ACK> = 6(dec.) = $06 len = count of user data (without <DC1>, without checksum bcc) bcc = 1 byte = sum of all bytes incl. <DC1> and len, modulo 256
Clear display and draw a line from 0,0 to 239,127 <DC1> $11 len $0A ESC D L ESC G D 0 0 239 127 bcc $DA
$1B $44 $4C $1B $47 $44 $00 $00 $EF $7F
<ACK>
SendByte(bcc); }
// Send checksum
bcc
len
data...
bcc
<DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 S = 83(dez.) = $53 <ACK> = 6(dec.) = $06 len = count of user data (without <DC2>, without checksum bcc) bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256
The command sequence <DC2>, 1, S, bcc empties the displays send buffer. The display replies with the acknowledgement <ACK> and the begins to send all the collected data such as touch keystrokes.
EA eDIP240-7
Page 9
bcc
This command queries whether user data is ready to be picked up an how full the display's receive buffer is.
bcc
<DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 I = 73(dez.) = $49 <ACK> = 6(dec.) = $06 send buffer bytes ready = count of bytes stored in send buffer receive buffer bytes free = count of bytes for free receive buffer bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256
Protocol settings
> <
<DC2> <ACK>
timeout
bcc
<DC2> = 18(dec.) = $12 3 = 3(dez.) = $03 D = 68(dez.) = $44 packet size for send buffer = 1..64 (standard: 64) timeout = 1..255 in 1/100 seconds (standard: 200 = 2 seconds) bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256 <ACK> = 6(dec.) = $06
This is how the maximum package size that can be sent by the display can be limited. The default setting is a package size with up to 64 bytes of user data. The timeout can be set in increments of 1/100 seconds. The timeout is activated when individual bytes get lost. The entire package then has to be sent again.
bcc
<DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 P = 80(dez.) = $50 <ACK> = 6(dec.) = $06 max. packet size = count of maximum user data for 1 package (eDIP240-7 = 64) akt. send packet size = current package size for send akt. timeout = current timeout in 1/100 seconds bcc = 1 byte = sum of all bytes incl. <DC2>, modulo 256
bcc
len
data...
bcc
<DC2> = 18(dec.) = $12 1 = 1(dez.) = $01 R = 82(dez.) = $52 <ACK> = 6(dec.) = $06 <DC1> = 17(dec.) = $11 len = count of user data in byte (without ckecksum, without <DC1> or <DC2>) bcc = 1 byte = sum of all bytes incl. <DC2> and len, modulo 256
If the most recently requested package contains an incorrect checksum, the entire package can be requested again. The reply can then be the contents of the send buffer (<DC1>) or the buffer/protocol information (<DC2>).
> <
<DC2> <ACK>
select or deselect
adr
bcc
This command can be used to select or deselect the eDIP with the address adr.
<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
EA eDIP240-7
Page 10
BITMAPS AS KEYS
In addition to the frame types, which can be scaled to any size, you also have the option of using any bitmap images (in each case, a pair showing the not pressed and pressed statuses) as touch keys or switches. The LCD-Tools*) allows you to incorporate your own buttons in the form of images (compiler statement PICTURE). A button always comprises two monochrome Windows BMPs of the same size (one bitmap showing the normal representation of the touch key and one showing the pressed touch key). The active area of the touch key is derived automatically from the size of the button bitmaps.
EA eDIP240-7
Page 11
EA eDIP240-7
Page 12
TYPEFACE
This picture of a screen image shows all the integrated standard fonts. Macro programming permits some additional fonts to be integrated. Any conceivable font (including Chinese or Cyrillic) can be created with a text editor and programmed using the LCD-Toolkit *) and programmer EA 9777-1USB.
*)
EA eDIP240-7
Page 13
ALL COMMANDS AT A GLANCE The built-in intelligence allows an easy creation of your individual screen content. Below mentioned commands can be used either directly via the serial interface (see page 17) or together with the selfdefinable macro (see page 18).
EA eDIP240-7: Command table 1
Command
Formfeed FF (dez:12) Carriage Return CR(13) Linefeed LF (dez:10) Cursor position Cursor On / Off Terminal invisible Terminal visible Show revision code Output string L: left justified C: centered R: right justified Set font Font zoom factor Add. line spacing Text angle Text mode Text blink attribute String for terminal Draw rectangle Draw straight line Continue straight line Draw point Point size/line thickness Graphic mode Delete area Invert area Fill area Area with fill pattern Draw box Draw frame Draw frame box Image from clipboard Load internal image Load image Image zoom factor Image angle Image link mode Image flashing attribute Send hard copy Delete display Invert display Fill display Switch display off Switch display on Show clip-board Show current Delete flashing attribute Inverted flashing area Pattern for flashing area Set flashing time
ESC ESC
Codes
^L ^M ^J P C
ESC
Remarks
Commands for terminal mode
The contents of the terminal area are deleted and the cursor is placed at pos. (1,1) Cursor to the beginning of the line on the extreme left n1 n1 n2 Cursor is set to the next line 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; Show revision code on terminal layer e.g. "EA eDIP240-7 V1.1 Rev.B"
after reset
1,1 1 visibl
A E V
y1
A string (...) is output to xx1,yy1. NUL ($00), 'LF' ($0A) or 'CR' ($0D) = end of string; several lines are separated by the character '|' ($7C);; text between two '~' ($7E) characters flashes on/off; text between two '@' ($40) characters flashes inversely; Set font with the number n1 (0..16)
n1 n1 n1 n1 n1 n1 Text ... x1 x1 x1 x1 n1 n1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 n1 n1 n1 n1 x1 y1 x2 y2 y1 y1 y1 y1 n2 x2 x2 y2 y2 n2
n1 = X zoom factor (1x..4x); n2 = Y zoom factor (1x..4x) Insert n1 pixels between two lines of text as additional line spacing Text output angle: n1=0: 0; n1=1: 90 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
0 1,1 0 4 0
B T R D W P Z V L I S
ESC
0 1,1 1
ESC
M O R T C I L Z
ESC
W V B H
1,1 0 4 0
visibl
ESC
EA eDIP240-7
Page 14
Remarks
Bar graph commands
after reset
Define bar graph Update bar graph Draw new bar graph Send bar graph value Delete bar graph
n1
x1
y1
x2
A Z S D
n1 n1 n1 n1
valu
Define bar graph to L(eft), R(ight), O(ben) (up), U(nten) (down) with the "nr" (1..32). x1,y1,x2,y2 form the rectangle enclosing the No bar 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 type=2: line; type=3: line in rectangle; pat= line width Set and draw the bar graph with the number n1 to the new user "value." Draw the bar graph with the number n1 completely Send the current value of bar graph no. n1 on the serial interface Makes definition of bar graph with number n1 invalid. If bar graph was defined as a touch field, active area will become inactive again n2=0: above function and bar graph keeps visible; n2=1: bar graph will be cleared
n2
Clipboard commands (buffer for image areas) Save display contents Save area Restore area Copy area Set font for menu Set zoom factor add. line spacing Angle for menu Set automatic function for touch
B
ESC
The entire contents of the display are copied to the clipboard as an image area x1 x1 n1 n1 n1 n1 n1 n2 y1 y1 x2 y2 The image area from x1,y1 to x2,y2 is copied to the clipboard The image area on the clipboard is copied back its original position in the display The image area on the clipboard is copied to x1,y1 in the display
S R K F Z Y W T
0 1,1 0
ESC
n1=1: touch menu will pop-up automatically; n1=0: touch menu will not pop-up but 'ESC T 1 0' will be sent to host; this one is able to pop-up with command 'ESC N T 2' then.
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 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. The next item is inverted or remains at the end The previous item is inverted or remains at the beginning The menu is removed from the display and replaced with the original background. The current item is sent as a number (1..n) (0=no menu displayed) The menu is removed from the display and replaced with the original background. Menu macro n1 is called for item 1, menu macro nr+1 for entry 2, and so on The menu is removed from the display and replaced with the original background
x1
y1
no
Next item Previous item End of menu/send End of menu/macro End of menu/cancel Run macro Run touch macros Run menu macro Macro with delay Autom. macro cyclical, once Autom. macro cyclical Autom. macro pingpong
ESC
N P S M A N n1 n1 n1 n1
Macro commands
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)
ESC
T M
Automatic/cyclic macro
G E
ESC
n1 n1 n1 n1
ts n2 n2 n2 ts ts ts
(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 Automatically macros n1..n2 once only; ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use Automatically macros n1..n2 cyclically; ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use Automatically macros n1..n2..n1 (pingpong); ts=pause in 1/10s. Will be stopped by any command via serial interface or by touch panel use Define process macro number no (1..4) (1=highest priority). (normal-) macro n3..n4 will be served with ts/10s delay. type: 1=once only; 2=cyclical; 3=pingpong n3..n4..n3 Assign a new delay for process no (1..4) with ts /10s value. ts=0 will stop the automatic All process macro will be stopped with n1=0 and continued with n1=1 e.g. to make settings or output via serial interface without interference
M A J
Process macro commands (from V1.1) Define process macro Process macro speed Stop process macro Wait (pause) Beep on/off Backlight on/off Backlight brightness Send bytes Send version
ESC ESC ESC ESC
D M Z S
no type no n1 ts
n3
n4
ts
Other commands
X ts S Y L H S B V ts ts n1 cnt data ... Wait ts tenths of a second before the next command is executed. Switch beeper output (pin 16) ts=2..255 for ts 1/10s to high ts=0 set permanent low, ts=1 set permanent high LED backlight n1=0: OFF; n1=1: ON; ts=2..255: switches backlight on for ts /10s and then off Adjust brightness of backlight n1=0..100% (non linear) cnt (=1..255) bytes are sent via serial interface data ... = cnt. bytes (e.g. control of an external printer) Software versionwill be sent as a string ;e.g. "EA eDIP240-7 V1.2 Rev.B"
OFF 1 100
EA eDIP240-7
Page 15
after reset
ESC
x1
y1
n1 code
dow
ESC
x1
y1
n1 code
dow
'T': The area from xx1,yy1 to xx2,yy2 is defined as a key. 'U': Image no=1..255 is loaded to xx1,yy2 and defined as a key. 'down code':(1-255) Return/touch macro when key pressed. 'up code': (1-255) Return/touch macro when key released. dow up text NUL (down/up code = 0 press/release not reported). code code ... text: A string that is centered with the current touch font in the touch key follows; the first character determines the alignment of the text (C=centered, L=left, R=right justified); multiline text is separated with the character '|' ($7C, dec: 124); up text NUL 'NUL': ($00) = end of string code ... 'K': The area from xx1,yy1 to xx2,yy2 is defined as a switch. 'J': Image no. n1 is loaded to xx1,yy2 and defined as a switch. 'down code': (1-255) Return/touch macro when switched on. 'up code': (1-255) Return/touch macro when switched off. dow up text NUL code code ... (down/up code = 0 on/off not reported). 'text: A string that is centered with the current touch font in the touch key follows; the first character determines the alignment of the text (C=centered, L=left, R=right justified); multiline text is separated with the character '|' ($7C, dec: 124); up text NUL 'NUL': ($00) = end of string code ...
ESC
x1
y1
x2
The area from xx1,yy1 to xx2,yy2 is defined as a menu key. 'down code':(1-255) Return/touch macro when pressed. 'up Code':(1-255) Return/touch macro when menu canceled 'mnu Code':(1-255) Return/menu macro+(item no. 1) after selection of a menu item. (down/up code = 0 activation/cancellation of the menu not reported). 'text':= string with the menu key text and the menu items. the first dow up mnu text y2 code code code ... NUL character determines the direction in which the menu opens (R=right, L=left, O=up, U=down). The second character determines the alignment of the touch key text . The different items are separated by the character '|' ($7C,dec:124) (e.g. "uckey|item1|item2|item3". The key text is drawn with the current touch font and the menu items are drawn with the current menu font. The background of the menu is saved automatically. y2 y2 n1 A drawing area is defined. You can then draw with a line width of n1 within the corner coordinates xx1,yy1 and xx2,yy2. A freely usable touch area is defined. Touch actions (down, up and drag) within the corner coordinates xx1,yy1 and xx2,yy2 are sent via serial interface. The bar graph with the no=1..32 n1 is defined for input by touch panel.
Define drawing area Define free touch area Set bargraph by touch Touch frame Touch key response Invert touch key Query touch switch Set touch switch Define radiogroup
A A A
D H B E I S N X P
x1 x1 no n1 n1 n1
code code code
y1 y1
x2 x2
Touch: settings
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 n1 The status of the switch is changed by means of a command n1=0=off; n1=1=on Within a group only one single switch will be active; ret of them will be deactivated 0 no=0: next switch definitions will keep free of all groups no=1..255: next switch definitions will join to goup number no The touch area with the return code (code=0: all touch areas) is removed from the touch query. When n1=0, the area remains visible on the display; when n1=1, the area is deleted from the display. Remove a special touch area x1,y1 from touch query; n1=0: area stys visible; n1=1: areawill be overwritten with background color Automatic transmission of a new bar graph value by touch input is deactivated (n1=0) or 1 activated (n1=1) Touch query is deactivated (n1=0) or activated (n1=1) 1
1 1 1
ESC
no
code
n1 y1 n1
Send bar value on/off Touch query on/off Label font Label zoom factor Add. line spacing Label angle
Q A F
ESC
0 1,1 0
EA eDIP240-7
Page 16
ESC
code
ESC
code
ESC
no
ESC
ESC
type
x1
y1
Note: At pin 20 (SBUF), the display sets a low level to indicate that data is available to be fetched from the internal send buffer. This line can, for instance, be connected to an interrupt input of the host system.
TERMINAL MODE
The display provides a terminal function. When you switch it on, a cursor flashes in the first line, indicating that the display is ready for operation. All the incoming characters are displayed in ASCII format on the terminal (exception: CR,LF,FF,ESC,#). To achieve this, a correctly functioning protocol frame is required (pages 8 and 9) or the protocol must be deactivated (close solder strap J2, page 8 and 20). Line breaks are automatic or can be executed by means of the LF character. If the last line is full, the contents of the terminal scroll upward. The FF character (formfeed) clears the terminal. The character # is used as an escape character and thus cannot be displayed directly on the terminal. If the character # is to be output on the terminal, it must be transmitted twice: ##. The terminal has a separate output layer and is thus completely independent of the graphic outputs. If the graphics screen is cleared with ESC Terminal-Font (Font 0): 8x8 monospaced DL, for example, that does not affect the contents of the terminal window. The terminal font is permanently in ROM and can also be used for graphics output ESC Z... (set FONT no.=0).
EA eDIP240-7
Page 17
FILL PATTERNS
A pattern type can be set as a parameter with some commands. In this way, rectangular areas and bar graphs for instance can be filled with different patterns. There are 16 internal fill patterns available.
EA eDIP240-7
Page 18
MACRO PROGRAMMING
Single or multiple command sequences can be grouped together in macros and stored in the EEPROM. You can then start them by using the Run macro commands. There are different types of macro: Normal macros (0 through 255) These are started by means of an ESC MN xx command via the serial interface or from another macro. A series of macros occurring one after the other can be called cyclically (movie, hourglass, multi-page help text). These automatic macros continue to be processed until a command is received via RS-232 or another macro is activated. Furthermore these macros may be started by "macro processes" as an individual task (from V1.1). Process macros will not be interupted by any other commands or touch panel use. Touch macro (1 through 255) Started when you touch/release a touch field (only in versions with a touch panel - TP) or issue an ESC MT xx command. Menu macro (1 through 255) Started when you choose a menu item or issue an ESC MM xx command. Power-on macro Started after power-on. You can switch off the cursor and define an opening screen, for example. Reset macro Started after an external reset or after a voltage dip under 4.7V (VDD-VSS). Watchdog macro Started after a fault/error (e.g. crash). Brown-out macro Started after a voltage dip <4V. Important: If a continuous loop is programmed in the power-on, reset or watchdog macro, the display can no longer be addressed. In this event, execution of the power-on macro must be suppressed. This is achieved by wiring DPOM appropriately. PowerOff - connect pin 13 (DPOM) to GND - PowerOn - disconnect pin 13 again.
MEMORY EXPANSION
The size of the internal EEPROM memory is 32 kB. Generally, this allows sufficient space for a large number of images and macros. If, however, a very large number of images (in particular full-size images) are to be stored, it can be necessary to expand the memory. The memory capacity can be doubled by directly connecting a standard EEPROM of the 24C256 series. It is connected over pins 17, 18 and 19 (I2C adress $A6) or can be placed direct as U12 (see drawing on page 20).
EA eDIP240-7
Page 19
*)
EA eDIP240-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
ALUMINIUM BEZEL
Notes on handling and operation - LC dispalys are designed for hand soldering only. Reflow and wave soldering may destroy lcd immediately - The following can lead to the electronic destruction of the module: cross-polarity or overvoltage of the power supply, overvoltage or cross-polarity or static discharge at the inputs, short-circuits at the outputs. - The power supply must be disconnected before the module is removed. All inputs must also be free of voltage. - The display and the touch screen are made of plastic and must not come into contact with hard objects. The surfaces can be cleaned with a soft cloth. No solvents may be used. - The module is designed only for operation within buildings. Additional measures must be taken to allow operation in the open air. The maximum temperature range of -20 through +70C must not be exceeded. The module may not operate correctly and may fail if used in a humid EA 0FP241-7SW: environment. The display must be shielded from dimensions in mm direct sunlight.