background image

Page 17

Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specifications without prior notice.

EA eDIPTFT32-A

EA eDIPTFT32-A: Commands for backlight, I/O-port and misc

after

reset

Command

Codes

Remarks

Backlight  commands

Illumination brightness

ESC

Y

H

n1

Set brightness of the LED illumination n1=0 to 100%.

100

Increase brightness

N

Increase brightness of the LED illumination (one step=1%)

Decrease brightness

P

Decrease brightness of the LED illumination (one step=1%)

Brightness changetime

Z

n1

Time n1=0..31 in 1/10sec for changing brightness from 0 to 100%

5

Illumination on/off

L

n1

LED n1=0: OFF; n1=1: ON; n1=2 to 255: LED switched ON for n1/10sec

1

Assign bar with backlight

B

no

Assign bar no=1..20 for changing brightness of the backlight

1

Asign instrument with
backlight

+

n1

Brightness is connected to instrument 1..4.

1

Save parameter

@

Save the actual brightness and changetime for poweron to EEPROM

Port commands

Write output port

ESC

Y

W

n1

n2

n1=0: Set all 8 output ports in accordance with n2 (=8-bit binary value)
n1=1..8: Reset output port n1 (n2=0); set (n2=1); invert (n2=2)

Ports

1-8=0

Read input port

R

n1

n1=0: Read all 8 input ports as 8-bit binary value (to sendbuffer)
n1=1..8: Read input port <n1> (1=H-level=VDD, 0=L-level=GND)

Port scan on/off

A

n1

The automatic scan of the input port is n1=0: deactivated; n1=1: activated

1

Invert input port

I

n1

The input port is n1=0: normal; n1=1: evaluated inverted

0

Matrix keyboard

M

n1

n2

n3

Specifies an external matrix keyboard at the inputs and outputs.
n1=number of inputs (1..8); n2=number of outputs (0..8); n3=debouncing (0..7)

0

Redefine input bitmacro

ESC

Y

D

n1

n2

n3

input port n1=1..8 is assigned by falling edge n2=0 to new BitMacro number n3=0..255
input port n1=1..8 is assigned by rising edge n2=1 to new BitMacro number n3=0..255

Redefine matrixmacro for
keys

X

n1

n2

Assign keynumber n1=1..65 with matrixmacro number n2=0..255
After release the key n1=0 run matrixmacro number n2=0..255

Other commands

Define color

ESC

F

P

no

R5

G6

B5

Set a new RGB value for color no. n1=1..32 (R5:Bit7..3; G6:Bit7..2; B5:Bit7..3)

Wait (pause)

ESC

X

n1

Wait n1 tenths of a second before the next command is executed.

Set RS485 address

ESC

K

A

adr

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).

Tone on/off

ESC

Y

S

n1

The tone output (pin 16) becomes n1=0:OFF; n1=1:ON; n1=2 to 255:ON for n1/10s

OFF

String table code

ESC

S

T

n1

n1=0: no use of internal strings
n1>0: after code n1 appears following codes are internal string numbers (since V1.2)

0

Send bytes

ESC

S

B

num

data...

num (=1 to 255) bytes are sent to the sendbuffer data... = num Bytes.
In the source text of the macro programming, the number num must not be specified. This is
counted by the ediptftcompiler and entered.

Send version

V

The version is sent as a string to sendbuffer e.g. "EA eDIPTFT32-A V1.1 Rev.A TP+"

Send projectname

J

The macro-projectname is sent as a string to the sendbuffer e.g. "init / delivery state"

Send internal infos

I

Internal information about the edip is sent to the sendbuffer.

Summary of Contents for DISPLAY VISIONS EA eDIPTFT32-ATP

Page 1: ...ROTARY AND POINTER INSTRUMENTS PICTURES AND ANIMATIONS MIX TEXT AND GRAPHIC MULTI LINGUAL WITH MACRO PAGES BACKLIGHT BRIGHTNESS BY SOFTWARE ANALOGUE TOUCH PANEL VARIABLE GRID FREE DEFINABLE KEY AND SWITCH 8 DIGITAL IN AND 8 DIGITAL OUTPUTS 2 ANALOGUE INPUTS COMFORTABLE TO USE Dimension 82 0x60 5x12mm W O R L D N E W ORDERING CODES DISPLAYS TFT 320x240 DOTS WHITE LED BACKLIGHT EA eDIPTFT32 A AS ABO...

Page 2: ...BULAR FORMAT 13 17 TOUCH PANEL 18 RESPONSES OF THE CONTROL PANEL 19 CHARACTER SET 20 22 COLORS 22 FRAMES KEY STYLE AND PATTERN 23 24 INSTRUMENTS 24 25 PROGRAMMING FONTS PICTURES ANIMATIONS 26 BITMAPS AS BUTTONS 27 MACROS MULTI LINGUAL MACRO PAGES 28 29 ELECTRICAL CHARACTERISTICS 30 DIMENSION MOUNTING PANEL 31 32 Documentation of revision Date Type Old New Reason Description February 2010 0 1 preli...

Page 3: ...100 by command In 24 hour operation the illumination should be dimmed or switched off as often as possible to increase their lifetime SOFTWARE This display is programmed by means of commands such asDraw a rectangle from 0 0 to 319 239 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...

Page 4: ...ction Pin Symbol In Out Function 1 GND Ground Potential for logic 0V 21 GND Ground Pin 1 2 VDD Power supply for logic 3 3V 5V 22 VDD Power supply Pin 2 3 NC do not connect 23 AIN1 In analogue input 0 VDD DC impedance 1MOhm 4 NC do not connect 24 AIN2 5 RESET In L Reset 25 OUT1 MO8 Out 8 digital outputs maximum current IOL IOH 10mA alternativ up to 8 matrix keyboard output lines reduces the digital...

Page 5: ...an USB Bus Virtual COM Port drivers are available for different Systems on the FTDI Homepage http www ftdichip com drivers vcp htm Addressing 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 ...

Page 6: ...tion Pin Symbol In Out Function 1 GND Ground Potential for logic 0V 21 GND Ground Pin 1 2 VDD Power supply for logic 3 3V 5V 22 VDD Power supply Pin 2 3 NC do not connect 23 AIN1 In analogue input 0 VDD DC impedance 1MOhm 4 NC do not connect 24 AIN2 5 RESET In L Reset 25 OUT1 MO8 Out 8 digital outputs maximum current IOL IOH 10mA alternativ up to 8 matrix keyboard output lines reduces the digital ...

Page 7: ...on 1 GND Ground Potential for logic 0V 21 GND Ground Pin 1 2 VDD Power supply for logic 3 3V 5V 22 VDD Power supply Pin 2 3 NC do not connect 23 AIN1 In analogue input 0 VDD DC impedance 1MOhm 4 NC do not connect 24 AIN2 5 RESET In L Reset 25 OUT1 MO8 Out 8 digital outputs maximum current IOL IOH 10mA alternativ up to 8 matrix keyboard output lines reduces the digital output lines see chapter exte...

Page 8: ...erations in other words more than 3 changes per second cannot be easily executed ANALOGUE INPUT AIN1 AND AIN2 PIN 23 24 For analogue measurement 2 inputs with a range of 0 VDD are available Each input is grounded GND and DC impedance is 1MΩ Please make sure that only positive voltages will be supplied there Internal resolution is 10 Bit equal to a 3 digit DVM modul Linearity after adjustment is ar...

Page 9: ...smitted as well this can be done by defining Matrix Macro no 0 see page 17 Responses of EA eDIP 2x2 Matrix 1x4 Matrix 4x0 Matrix 4x4 Matrix Examples 2x2 matrix Command ESC Y M 2 2 defines the 2x2 matrix Keypad will need input lines MI1 MI2 and output lines MO1 MO2 Output lines are decoupled by diodes this is for double keystrokes necessary 6 input and 6 output lines remain free for other requireme...

Page 10: ... the protocol can be switched off with an L level at pin 17 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 DC1 len data bcc ACK DC2 1 S bcc ACK DC1 len data bcc Command data to the display Request for content of send buffer BUILDING THE SMALL PROTOCOL PACKAGES DC1 17 dez 11 ACK 6 dez 06 len c...

Page 11: ...protocol information DC2 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 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 This command can be used to select or deselect the eDIP with the...

Page 12: ... 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 Terminal Font 2 8x16 TERMINAL MODE When you switch the unit on the cursor flashes in t...

Page 13: ... width left right n2 0 15 additional height top bottom 0 0 Spacewidth J n1 n1 0 use spacewidth from font n1 1 same witdh as a number n1 2 width in dot 0 Text angle W n1 Text output angle n1 0 0 n1 1 90 n1 2 180 n1 3 270 0 Output string L left justified C centered R right justified ESC Z L xx1 yy1 text NUL A string is output to xx1 yy1 end of string NUL 00 LF 0A or CR 0D several lines are separated...

Page 14: ... background color 1 8 Animation zoom factor ESC W Z n1 n2 n1 X zoom factor 1x to 8x n2 Y zoom factor 1x to 8x 1 1 Animation angle W n1 output angle of the animation image n1 0 0 n1 1 90 n1 2 180 n1 3 270 0 Mirror animation X n1 n1 0 normal display n1 1 the animation image is mirrored horizontally 0 Transparency for color animation T n1 n1 0 no transparency show animation with all colors rectangula...

Page 15: ... angle for bargraph user value n1 0 0 n1 1 90 n1 2 180 n1 3 270 0 User values scaling ESC B X no xx1 yy1 For mat Str ing NUL Define user value for bargraph no 1 20 Output is always right justified to xx1 yy1 Format String bv1 uservalue1 bv2 uservalue2 NUL 00 termination Assign two bar values bv1 bv2 0 254 to user defined values max range 4 1 2 digits 19999 decimal point oder sign e g display 123 4...

Page 16: ...ped Stop macro processes S n1 All macro processes and animations are stopped with n1 0 and restarted with n1 1 in order for example to execute settings and outputs via the interface undisturbed 1 EA eDIPTFT32 A Analogue input AIN1 AIN2 commands after reset Command Codes Remarks Commands for analogue inputs Calibration ESC V ch xx1 Calibration procedure is as follows 1 Apply defined voltage 3 5V to...

Page 17: ...rix keyboard M n1 n2 n3 Specifies an external matrix keyboard at the inputs and outputs n1 number of inputs 1 8 n2 number of outputs 0 8 n3 debouncing 0 7 0 Redefine input bitmacro ESC Y D n1 n2 n3 input port n1 1 8 is assigned by falling edge n2 0 to new BitMacro number n3 0 255 input port n1 1 8 is assigned by rising edge n2 1 to new BitMacro number n3 0 255 Redefine matrixmacro for keys X n1 n2...

Page 18: ...on is loaded to xx1 yy2 and defined as a key J The actual button is loaded to xx1 yy2 and defined as a switch down code 1 255 return touchmacro when key pressed up code 1 255 return touchmacro when key released down up code 0 press release not reported text this is a string that is placed in the key with the current touch font The first character determines the alignment of the text C centered L l...

Page 19: ...no When a keystroke of the external matrix keyboard is detected the newly pressed key number no is transmitted Only transmitted if no corresponding matrix macro is defined ESC H 5 type xLO xHI yLO yHI 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 with free touch area at the coordinates xx1 yy1 Response only when requested by co...

Page 20: ... the screen Each character can be placed with pixel accuracy and its height and width can be increased by a factor of 1 to 8 A text can be output left justified right justified or centered Rotation in 90 steps is possible Macro programming permits further fonts to be integrated All kinds of fonts can be converted from True Type Fonts by using using the LCD toolkit eDIPTFTcompiler the USB Evaluatio...

Page 21: ...ns without prior notice EA eDIPTFT32 A Font 7 big numbers BigZif50 Font 8 big numbers BigZif100 Font 5 CHICAGO14 proportional Font 6 Swiss30 Bold proportional This hard copy shows all the fonts with which the product is shipped ADDITIONAL FONTS Up to 256 fonts á 16 pages can be loaded into the internal DataFlash ...

Page 22: ...ert all dots complementary Two times inverted will end same as action was started original drawing is restored some examples to show the letter A onto a fixed background Color R G B 1 0 0 0 2 0 0 255 3 255 0 0 4 0 255 0 5 255 0 255 6 0 255 255 7 255 255 0 8 255 255 255 9 111 111 111 10 255 143 0 11 143 0 255 12 255 0 143 13 0 255 143 14 143 255 0 15 0 143 255 16 175 175 175 COMPILER OPTION WinFont...

Page 23: ...t an individual colour for normal and for selected state This will give the user the opportunity when touching a field the individual part of the key will be inverted only FILL PATTERNS 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 The eDIP is shipped with 20 predefined fill patterns Def...

Page 24: ...able by touch border25 50x56 Dot size DEFINE OWN BORDER With the LCD tools it is possible to define new borders Compileroption Border Each of these new border is a bitmap with exactly 24x24 dots 9 segments with 8x8 dots 4x edge 4x middle part 1x filling Scaling for bigger touchkeys frames will be done by repetition of these 8x8 dot segments This makes it necessary to keep the 8x8 size in every cas...

Page 25: ...ressed The active area of the touch key automatically results from the size of the button bitmaps RadioBlack75x15_0 bmp RadioBlack75x15_1 bmp SWITCHES IN GROUPS RADIO GROUPS Touch switches change their status from ON to OFF or vice versa each time they are touched Several touch switches can be included in a group ESC A R n1 command If a touch switch in the group n1 is switched on all the other tou...

Page 26: ...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 eDIPTFT compiler using F5 This creates a file called DEMO DF 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 i...

Page 27: ...bitmaps BMP GIF JPG TGA PNG G16 e g two bitmaps for blinking Note that max 4 animations animationprocesses can run at the same time The animations are selfrunning pictures but you can use the animations manually too The foreground and backgound color can be set for monochrome animations BORDER BARGRAPH A border can be scaled and is used for rectangles bargraphs and touch keys switches It is possib...

Page 28: ...SC MX xx Matrix Macro 0 start after release of key or by command It is possible to change the assignment between keynumber and Matrixmacro with command ESC YX n1 n2 n3 see page 17 Analogue macro AnalogMacro will start whenever voltage changes or limit exceeds or by command ESC MV xx See table at the right It is possible to change the assignment between analoguemacrofunction and Analoguemacronumber...

Page 29: ...cified in square brackets after the macro picture number If a macro image is not defined in the currently set page 1 to 15 this macro picture is automatically taken from page 0 Thus not all macros and images have to be stored separately for each language when they are identical in each language PICTURE 100 0 BIER BMP PICTURE 100 1 BEER BMP PICTURE 100 2 BIRRA BMP MACRO 2 0 SAME AS MACRO 2 FZ 3 1 Z...

Page 30: ...0 RH Operating Voltage 3 2 3 3 5 0 5 1 V Input Low Voltage 0 5 0 3 VDD V Input High Voltage Pin Reset only 0 9 VDD VDD 0 5 V Input High Voltage except Reset 0 6 VDD VDD 0 5 V Input Leakage Current Pin MOSI only 1 uA Input Pull up Resistor 20 50 kOhms Output Low Voltage 0 7 V Output High Voltage VDD 5V VDD 3 3V 4 2 2 4 V Brightness white w o Touch 700 cd m with Touch 550 cd m Output Current OUT1 8 ...

Page 31: ...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 used in a damp environment the module may malfunction or fail The display must be protected from direct sunshine TFT displays may show residual or ghost image of the previous...

Page 32: ...GmbH Zeppelinstraße 19 D 82205 Gilching Germany Phone 49 0 8105 778090 Fax 49 0 8105 778099 e Mail info lcd module com Web www lcd module com all dimensions are in mm 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 DIMENSIONS ...

Reviews: