background image

Page 13

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

EA eDIPTFT32-A

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 12) or together with the
selfdefinable macro (see page 28).

EA eDIPTFT32-A: Terminal commands

after

reset

Command

Codes

Remarks

Set terminal color

ESC

F

T

fg

bg

Preset color for terminal mode: fg= foreground color; bg= background color

8,1

Define window

ESC

T

W

n1

C

L

W

H

The terminal output is executed with font n1: 1=8x8; 2=8x16 only within the window from
column C and line L (=upper-left corner) with a width of W and a height of H (specifications in
characters). Display organisation 480x272: C=1..60; L=1..34/17; 272x480: C=1..34; L=1..60/30

8x16

1,1

60,17

Form feed FF (dec:12)

^L

The contents of the screen are deleted and the cursor is placed at pos. (1,1)

Carriage return CR (13)

^M

Cursor to the beginning of the line on the extreme left

Line feed LF (dec:10)

^J

Cursor 1 line lower, if cursor in last line then scroll

Position cursor

ESC

T

P

C

L

C=column; L=line; origin upper-left corner (1,1)

1,1

Cursor on/off

C

n1

n1=0: Cursor is invisible; n1=1: Cursor flashes;

1

Save cursor position

S

The current cursor position is saved

Restore cursor position

R

The last saved cursor position is restored

Terminal off

A

Terminal display is switched off; outputs are rejected

Terminal on

E

Terminal display is switched on;

on

Output version

ESC

T

V

The version no. is output in the terminal e.g. "EA eDIPTFT43-A V1.0 Rev.A"

Output projectname

J

The macrofile-projectname is output in the terminal e.g. "init / delivery state"

Output interface

Q

The used interface is output in the terminal e.g "RS232,115200 baud,ADR: $07"

Output informationen

ESC

T

I

The terminal is initialisized and cleared; the software version, hardware revision,
macrofile-projectname and CRC-checksum are output in the terminal

EA eDIPTFT32-A: Graphic commands

after

reset

Command

Codes

Remarks

Display commands (effect on the entire display)

Set display color

ESC

F

D

fg

bg

Defines color 1..32 for display and areas: fg=foreground color; bg=background color

8,1

Delete display

ESC

D

L

Delete display contents (all pixels to background color)

Fill display

ESC

S

Fill display contents (all pixels to foreground color)

Fill display with color

ESC

F

n1

Fill complete display content with color n1=1..32

Invert display

ESC

I

Invert display content

Commands for outputting strings

Set text color

ESC

F

Z

fg

bg

Color 1..32 (0=transparent) for string and character: fg=text color; bg=background color

8,0

Set font

ESC

Z

F

n1

Set font with the number n1

3

Font zoom factor

Z

n1

n2

n1 = X-zoom factor (1x to 8x);  n2 = Y-zoom factor (1x to 8x)

1,1

Additional  width/height

Y

n1

n2

n1=0..15: additional 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 by the character '|' ($7C, pipe)
the character '\' ($5C, backslash) cancles the special function of '|' and '\'

C

R

Output string
in an area
(since V1.2)

ESC

Z

B

xx1

yy1

xx2 yy2

n1

text

...

NUL

Output a string (...) inside area from xx1,yy1 to xx2,yy2 at position n1=1..9;
the area will be filled with background color;
n1=1: Top Left;  n1=2: Top Center;  n1=3: Top Right
n1=4: Middle Left;  n1=5: Middle Center;  n1=6: Middle Right
n1=7: Bottom Left;  n1=8: Bottom Center;  n1=9: Bottom Right

String for terminal

ESC

Z

T

text ...

Command for outputting a string from a macro to the terminal

Draw straight lines and points

Set color for lines

ESC

F

G

fg

bg

Colors 1..32 (0=transparent): fg = color for line; bg = pattern background

8,1

Draw rectangle

ESC

G

R

xx1

yy1

xx2 yy2

Draw four straight lines as a rectangle from xx1,yy1 to xx2,yy2

Draw straight line

D

xx1

yy1

xx2 yy2

Draw straight line from xx1,yy1 to xx2,yy2

Continue straight line

W

xx1

yy1

Draw a straight line from last end point to xx1, yy1

Draw point

P

xx1

yy1

Set a point at coordinates xx1, yy1

Point size/line thickness

Z

n1

n2

n1 = X-point size (1 to 15);  n2 = Y-point size (1 to 15);

1,1

Pattern

M

n1

Set straight line/point pattern no. n1=1..255; 0=do not use pattern

0

Set start point

ESC

G

S

xx1

yy1

Set the last end point at coordinates xx1, yy1 for commands 'GW', 'GX' and 'GY' (since V1.2)

Draw X-Graph

X

xs

ya

yy1

Draw graph with fix x-steps (xs=1..127 or 129..255 for neg. steps) and variable amount (ya=1..255)
of y-values  (since V1.2)

Draw Y-Graph

Y

ys

xa

xx1

Draw graph with fix y-steps (ys=1..127 or 129..255 for neg. steps) and variable amount (xa=1..255)
of x-values  (since V1.2)

Change/draw rectangular areas

Delete area

ESC

R

L

xx1

yy1

xx2 yy2

Delete an area from xx1,yy1 to xx2,yy2 (fill with background color)

Fill area

S

xx1

yy1

xx2 yy2

Fill an area from xx1,yy1 to xx2,yy2 (fill with foreground color)

Fill area with color

F

xx1

yy1

xx2 yy2

n1 Fill an area from xx1,yy1 to xx2,yy2 with color n1=1..32

Invert area

I

xx1

yy1

xx2 yy2

Invert an area from xx1,yy1 to xx2,yy2

Copy area

C

xx1

yy1

xx2 yy2

xx3 yy3

Copy an area from xx1,yy1 to xx2,yy2 to new position xx3,yy3

Patterncolor

ESC

F

M

fg

bg

Color 1..32 (0=transp.) for monochrome pattern: fg=foreground; bg=background color

8,1

Area with fill pattern

R

M

xx1

yy1

xx2 yy2

n1 Draw an area from xx1,yy1 to xx2,yy2 with pattern n1

Draw box

O

xx1

yy1

xx2 yy2

n1 Draw a rectangle xx1,yy1 to xx2,yy2 and fill with pattern n1

Set color for border

ESC

F

R

c1

c2

c3

Set color for border segments: c1=frame outside; c2=frame inside; c3=filling

8,1,1

Set border type

R

E

n1

n2

Set border type n1=1..255; border angle: n2=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°

1, 0

Draw border box

R

xx1

yy1

xx2 yy2

Draw a border box from xx1,yy1 to xx2,yy2

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: