Part Number Hot Search : 
J13003 F1005 WSCD36H CSTCE8M0 20N06 PSA92 37154 28F51
Product Description
Full Text Search
 

To Download EAKIT160-6LWTP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  lochhamer schlag 17 d- 82166 gr?felfing phone +49-89 -8541991 fax +49-89 -8541721 www.lcd-module.de ea kit160-6 5.2003 touch panel optional ea kit160-6ledtp dimension 102 x 80 x 36mm viewing area 70 x 36 mm control panel with fonts, graphics commands and macros technical data * lcd graphics display with diverse graphics functions and fonts * 160x80 pixels with led illumination * black, snap-in housing with anti-glare screen or touch panel * font zoom from approx. 2.5mm via approx. 5mm to approx. 35mm * supply voltage of 5v/400ma or optionally 9..35v * blue-white version 120ma/5v only * rs-232 or optionally rs-422 with baud rates of 1200..115200 bd * positioning accurate to the pixel with all functions * programming by means of high-level language-type commands: * straight line, point, area, and/or/exor, bar graph... * up to 256 macros programmable * combina tions of text and graphics * pull-down menus accessories * integra ted touch panel with 8x4 fields (anti-glare, scratch-resistant) * floppy disk for macro programming (pc dos): ea disk240 * cable (1.5m) for connecting to 9-pin sub-d (rs-232 female): ea kv24-9b order designation 160x80 dots with led illumination gb/gn ea kit160-6led 160x80 dots with touch panel, led illumination, gb/gn ea kit160-6ledtp blue-white with touch panel ea kit160b-6lwtp supply voltage 9..35v instead of 5v ea opt-9/35v rs-422 instead of rs-232 ea opt-rs4224 also avalable in blue-white
2 ea kit160-6 *) also available at http://www.lcd-module.de/deu/disk/disk240.zip general the ea kit160 is a fully assembled control and operating unit with a variety of integrated functions. the display has very compact dimensions and offers excellent super-twist contrast, which means the unit can be put into operation immediately. it is controlled via the standard rs-232 or rs-422 interface. in addition to complete graphics routines for display output, the operating unit also contains a wide variety of fonts. graphics commands similar to high-level language 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 offered by macros and input via touch panel make it a real power display. hardware the control panel is designed to work with an operating voltage of +5v. a supply voltage of 9..35v is also possible. serial asynchronous data transfer is carried out in rs-232 or rs-422 format. the transmission format is set permanently to 8 data bits, 1 stop bit, and no parity. rates between 1,200 baud and 115,200 baud can be selected using a pc. rts and cts handshake lines are available. data format: touch panel the ea kit160-6 ledtp version is equipped with an integrated touch panel. you can make entries and menu 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 or grouping of several fields is handled by the integrated software. software the control panel 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 . 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 8 times. when the 8-times zoom is used with the largest character set (16x8), the words and numbers displayed will fill the screen (= 128x64). setting the contrast the contrast of the display is set by means of the integrated potentiometer and remains constant across the entire temperature range as a result of the on-board temperature compensation. if required, you can connect an external potentiometer (25 kohm) at the eyelets (j11). the solder straps lb 6 and lb 7 must be open (see page 4). accessories floppy disk for macro creation a floppy disk (ea disk240) is required for macro programming *) . this converts the commands entered in a text file into a code that can be read by the operating unit, and programs them into the eeprom. cable for pc to enable simple connection to pcs (macro programming), we provide a 1.5m cable and a 9-pin sub- d female connector (ea kv24-9b). simply insert it into com 1 or com 2 and get started. note: the cable is not suitable for the rs-422 version ea opt-rs4224.
3 ea kit160-6 matrix keypad connector j4 pin symbol funktion 1 out 1 output column 1 2 out 2 output column 2 3 out 3 output column 3 4 out 4 output column 4 5 in 1 input li ne 1 6 in 2 input li ne 2 7 in 3 input li ne 3 8 in 4 input li ne 4 9 in 5 input li ne 5 10 in 6 input li ne 6 11 in 7 input li ne 7 12 in 8 input li ne 8 application example exampel transmitted codes remarks for compiler #* 11, 21, a, 2, "stop" number of texts will be not noted here ! asc ii esc * . .a .. s t o p . point . stands for not displayable ascii-characters hex $1b $2a $0b $15 $41 $02 $01 $53 $54 $4f $50 $00 decimal 27 42 11 21 65 2 1 83 84 79 80 0 command for touch touch field top left corner touch field bottom right corner return code draw frame 1-line-text text terminator external keyboard (ea kit160-6led only) a keyboard (anything from individual keys to an 8x4 matrix keyboard) can be connected at the plug-in connection j4. the connected keys are debounced by means of software. please note that it is only possible to connect an external keyboard to the ea kit160-6led version without an integrated touch panel. each key is switched between an output and an input. each input has a 100k ? pullup. up to 8 keys can be connected at each output. transmitting the keystrokes at each keystroke, the associated key number (1..32) is transmitted. the release of the key is not transmitted. if the release of the key is to be transmitted as well, this can be done by defining touch macro no. 0. the automatic keyboard scan can be deactivated by means of the ?esc t a 0? command. the key number can be determined as follows: key number = (output -1) * 8 + input (output: a number between 1 and 4, input: between 1 and 8). note: if the handshake line (e.g. cts) does not permit transmission, keystrokes can be lost. touch panel (ea kit160-6ledtp only) the ea kit160-6ledtp version is equipped with an integrated touch panel with 32 fields. the ontrol panel offers convenient commands supporting this touch panel. it is possible, for example, to group a number of touch fields to form a single large key and then draw and label the key. you can also assign a return code (1..255) to the key you have defined. if a return code of 0 is assigned, the key is disabled and has no effect when pressed. when the touch keys are touched, they can be automatically inverted and a tone can sound, indicating they have been touched. at the same time, the defined return code of the key is transmitted via the serial interface, or an internal touch macro with the number of the return code is started. example: definition of a key from field 11 to 21 with the return code 65=a and the text ?stop?. note: before individual keys are defined, all fields should be disabled by means of ?esc t r?.
4 ea kit160-6 rs-422 connector j3 pin symbol function 1 vdd +5v, supply 2 data in - receive data 3 data in + receive data 4 data out - transmit data 5 data out + transmit data 6 hs in - handshake 7 hs in + handshake 8 hs out - handshake 9 hs out + handshake 10 gnd 0v, ground *) also available at http://www.lcd-module.de/disk/disk240.zip rs-232c connector j3 pin symb in/out function 1 vdd - + 5v supply 2 dcd - via lb 4 to dtr 3 dsr - via lb 3 to dtr 4 txd out transmit data 5 cts in clear to send 6 rxd in receive data 7 rts out request to send 8 dtr - see pin 2, pin 3 9 nc - not connected 10 gnd - 0v ground j5 add-on pin symbol in/out function 1 vu - 9..35v supply 2 vdd - + 5v supply 3 gnd - 0v, ground 4 txd5 out transmit data (5v) 5 rxd in receive data (5v) 6 rts out request to send (5v) 7 cts in clear to send (5v) 8 reset in h: reset 9 nc - not connected 10 nc - not connected attention handling precautions ! supply 5v / (9-35 v) in the standard model, the supply voltage of +5v is fed in via screw-type terminal j1. alternatively, the 5v can also be fed in at the 10-pin connector j3 (pin 1: 5v; pin 10: 0v) for the rs-232 interface. in the case of the version for 9v to 35v (ea opt-9/35v), the power is supplied via j2. important: it is imperative that the polarity is correct. even very brief polarity reversal can damage the display immediately and irreparably. rs-232/rs-422 connection the operating unit is shipped with an rs-232 interface as standard. the pin assignment of connector j3 is then as shown in the table on the left. j3 has a grid of 2.54mm. if the operating unit is ordered together with the ea opt-rs4224 option, special rs-422 drivers are fitted. the pin assignment in the table on the right then applies. incidentally, the same serial data with 5v levels and ttl logic is available at the j5 eyelet strip. these levels are suitable for direct connection to a c. if these signals are used, the solder straps lb 10 and lb 11 must be opened (or the four rs422 75176 drivers removed)! baud rates the baud rate is set in the factory to 9600. you can use the program kitbaud.exe (available on ea disk240 *) ) to configure it. to do this, you have to connect the kit160 to com1 or com2 and pass the new baud rate as a parameter (e.g. kitbaud 19200). the following baud rates can be set: 1200, 2400, 4800, 9600, 19200, 38400, 57600 and 115200. note: solder bridge wp must be open to change baudrate (see page 6 "write protection"). please note that the internal data buffer is only 45 bytes. the rts handshake line must therefore be queried (+10v level: data can be accepted; -10v level: display is busy). the data format is set permanently to 8 data bits, 1 stop bit, no parity.
5 ea kit160-6 digital in- and outputs j120 pin symbol function pin symbol function 1 vdd +5v supply 2 gnd 0v, ground 3 out 1 output 1 4 in 1 input 1 5 out 2 output 2 6 in 2 input 2 7 out 3 output 3 8 in 3 input 3 9 out 4 output 4 10 in 4 input 4 11 out 5 output 5 12 in 5 input 5 13 out 6 output 6 14 in 6 input 6 15 out 7 output 7 16 in 7 input 7 17 out 8 output 8 18 in 8 input 8 19 gnd 0v, ground 20 vdd +5v supply default settings register command after power-on/reset text mode esc l set, black terminal font esc ft font 3, no zoom cursor esc qc on flashing time esc qz 0.6 secs user-defined characters esc e undefined graphics mode esc v set graphics font esc f font 3, no zoom last xy esc w (0;0) bar graph 1..16 esc b undefined clipboard esc c empty select/deselect esc k selected outputs out1..8 esc y high level/open inputs and outputs the ea kit160 is supplied with 8 digital inputs and 8 outputs (5v cmos level, non-isolated). the connection is made at the 20-pin connector j120. 8 outputs: each line can be controlled by means of the ?esc y w? command. the maximum current per line is 6ma. output 8 (pin 17) is used to switch the led backlighting (esc y l n1). if this output is required, the led backlighting can be separated from the output via the solder strap lb 8 and switched on permanently. 8 inputs: the inputs can be queried and evaluated (?esc y r?) directly via the serial interface. each change of logic level (0v or 5v) at the inputs can start an internal port macro. when the 8 lines are combined, 256 port macros can be addressed. each of these port macros can change the contents of the screen or switch an output. this allows a wide range of control tasks to be carried out. to create the port macros, you need a pc and the floppy disk ea disk240. you will find a more detailed description of this on page 6. automatic poll querying can be disabled by means of the ?esc y a 0? command. note: the logic circuitry is designed for slow operations; in other words, more than 3 changes per second cannot be easily executed. if an input is open, this is evaluated as high (approx. 100 kohm pullup). application examples: default settings after power-on or a manual reset, the registers shown here are set to a specific value. please note that all the settings can be overwritten by creating a power-on macro (normal macro no. 0).
6 ea kit160-6 *) also available at http://www.lcd-module.de/deu/disk/disk240.zip ; makro demo com2: 115200 ; kit ist an com2 angeschlossen, ; bertragung mit 115.200 baud ;--------------------------------------------- ;konstanten definieren aus = 0 ein = 1 font4x6 = 1 font5x6 = 2 font6x8 = 3 font8x8 = 4 font8x16= 5 ;--------------------------------------------- ;fonts einbinden font: font4x6, 32,95 intern4x6 font: font5x6, 32,158 intern5x6 font: font6x8, 32,158 intern6x8 font: font8x8, 32,158 intern8x8 font: font8x16, 32,158 intern8x16 ;--------------------------------------------- makro: 0 ; power-on/reset makro #qc ein ; cursor sichtbar #ft font8x16 ; terminalfont einstellen #ul 0,20, ; electronic assembly logo 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 3 different types of macros: touch macros (1..255) these are started when you touch a touch field (in versions with a touch panel - tp) or when you operate an external key/matrix keyboard. touch macro no. 0 is different: it is started when you release a key. port macros (0..255) these are started when voltage is applied to in 1..8 (only in versions with ea opt-opto8i8o inputs and outputs). normal macros (1..255) these are started by means of a 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). power-on macro normal macro no. 0 is different: it is executed automatically after power-on. it allows you to switch off the cursor and define an opening screen, for example. to prevent execution of power-on macro, after faulty programming the eeprom for example, connect rts line (j5 , pin 6) to gnd. storing 256 images in the eeprom to reduce the transmission times of the serial interface or to save storage space in the processor system, up to 256 images can be stored in the internal eeprom. they can be called using the "esc u e" command via the serial interface or from within a touch/port/normal macro. all the images can be used in the windows bmp format. they can be created and edit using widely available software such as windows paint or photoshop (must be monochrome and correct size). creating individual macros to create your own macros, you need the following: - the ea disk240 *) floppy disk, which contains a compiler, examples and fonts - a pc with a com1 or com2 serial interface and approximately 500kb hard disk space - a text editor such as wordpad or norton editor 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. once the macros are defined, you start the program c:>kitcomp demo.kmc. this creates an eeprom file called demo.eep, which is then automatically stored in the display eeprom with the baud rate entered. this only takes a few seconds, and you can then use your user-defined macros immediately. you will find a detailed description of how to program macros, together with a large number of examples, in the files doku.doc (for word) and doku.txt (dos) on the ea disk240 *) floppy disk. write protection for macros to prevent overwriting stored macros and images close solder bridge wp (connection vdd-wp). please note that baudrate is locked, too. so changing the baudrate by kitbaud.exe requires an open solder strap wp.
7 ea kit160-6 font 1: 4x6 font 5: 8x16 font 3: 6x8 nr. char. height line s x chars. size in pixels ascii- area se lf de f. ascii- codes note 1 2,1 mm 13 x 40 4x6 32 - 95 1..21 micro 2 2,1 mm 13 x 32 5x6 32 - 158 1..21 mini 3 3,0 mm 10 x 26 6x8 32 - 158 1..16 normal 4 3,0 mm 10 x 20 8x8 32 - 158 1..16 bold 5 6,0 mm 5x20 8x16 32 - 158 1..8 big integrated fonts 5 character sets are integrated in each graphics unit as standard. each character set can be used at its normal height or at up to 8 times this height. independently of the height, the width can also be increased two to eight times. in addition, you can define up to 21 characters of your own, depending on the font. these characters are preserved until the supply voltage is switched off. (see the esc e command.) each character can be positioned with pixel accuracy . text and graphics can be combined as required. several different font sizes can also be displayed together. each text can be output left justified, right justified or centered. 90 rotation (for vertical installation of the display) is also possible. macro programming permits the inclusion of up to 11 additional fonts and the complete redesign of the individual characters. a font editor on the ea diskfont6963 floppy disk allows you to create and program in any font you like with a size of up to 16x16 pixels. tip: font effects with large fonts, you can use the command esc l text mode (link, pattern) to produce interesting effects through overlaying (writing and offsetting a word several times). original font 8x16 with zoom 3 at position 0,0 with black pattern "outline font" produced by overlaying (exor) at pos. 1,1 overlaying (exor) of the "outline font" at pos. 2,2 . results in an "outline font with fill" overlaying ( or ) with 50% gray pattern of the "outline font" at pos. 0,0 . results in a "font with pattern fill"
8 ea kit160-6 all commands at a glance command table for the ea kit160 command codes note commands for terminal operation form feed ff (dec:12) ^l deletes the screen and sets the cursor at position (1,1) carriage return cr(13) ^m positions the cursor on the left at the beginning of the line line feed lf (dec:10) ^j positions the cursor in the line below the current one. if the cursor is in the last line, positions it in the 1st line cursor on/off esc q c n1 n1=0: cursor is not visible; n1=1: cursor flashes (inverse 6/10s) position cursor esc o n1 n2 n1=column; n2=line; upper left origin is (1,1) set terminal font esc f t n1 n1=1: sets font no. n1 (1..16) for terminal operation text output commands text mode esc l n1 pat mode n1: 1=set; 2=delete; 3=inverse 4=replace; 5=inverse replace; pat: pattern no. 0..7 set font esc f n1 n2 n3 sets font with the number n1 (1..16); n2=x- n3=y-zoom factor (1x..8x) output string horizontally esc z l x1 y1 text ... nul outputs a string (...) at x1,y1. nul ($00)=end of string; lines are separated by the character '|' ($7c, dec:124); 'l':= left justified at x1; 'z':= centered at x1; 'r':= right justified at x1; y1 is always the upper edge of the string z r output string rotated by 90 (vertically) esc z o x1 y1 text ... nul outputs a string (...) rotated by 90 at x1,y1; nul ($00)=end; lines are separated by the character '|' ($7c, dec: 124); 'o':= top justified at y1; 'm':= vertically centered at y1; 'u':= bottom justified at y1; x1 is always the right edge of the string m u define character esc e n1 data ... n1=character no.; data=number of bytes depending on current font drawing commands graphics mode esc v n1 sets the drawing mode for the commands 'set point', 'draw straight line', 'rectangle', 'rouded rectangle' and 'fill area with pattern' n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace set point esc p x1 y1 sets a pixel at position x1, y1 draw straight line esc g x1 y1 x2 y2 draws a straight line from x1,y1 to x2,y2 continue straight line esc w x1 y1 draws a straight line from the last end point to x1, y1 rectangle commands draw rectangle esc r r x1 y1 x2 y2 draws a rectangle (frame) from x1,y1 to x2,y2 draw rounded rectangle n x1 y1 x2 y2 draws a rectangle with rounded corners from x1,y1 to x2,y2 delete area l x1 y1 x2 y2 deletes an area from x1,y1 to x2,y2 (all pixels off) invert area i x1 y1 x2 y2 inverts an area from x1,y1 to x2,y2 (inverts all pixels) fill area s x1 y1 x2 y2 fills an area from x1,y1 to x2,y2 (all pixels on) fill area with pattern m x1 y1 x2 y2 pat fills an area from x1,y1 to x2,y2 with the pattern pat (0..7) draw box o x1 y1 x2 y2 pat draws a rectangle with the fill pattern pat (0..7); (always replace) draw rounded box j x1 y1 x2 y2 pat draws a rectangle with the fill pattern mst (0..7); (always replace) bitmap image commands image from eeprom esc u e x1 y1 no loads an internal image with the number (0..255) from the eeprom to x1,y1 load image l x1 y1 data ... loads an image to x1,y1; see image structure for the data of the image send hard copy h x1 y1 x2 y2 requests an image. sends the width and height in pixels followed by the actual image data via rs232 display commands (which apply to the whole display) delete display esc d l deletes the contents of the display (all pixels off) invert di splay i inverts the contents of the display (inverts all pixels) fill display s fills the contents of the display (all pixels on) switch display off a makes the contents of the display invisible, but they remain there and further commands are possible switch display on e makes the contents of the display visible again reset display r resets and re-initializes the display controller macro commands execute macro esc m n n1 calls the (normal) macro with the number n1 (max. 7 levels) execute touch macro t n1 calls the touch macro with the number n1 (max. 7 levels) execute port macro p n1 calls the port macro with the number n1 (max. 7 levels) macros autom. cyclical a n1 n2 n3 processes macros n1..n2 automatically cyclically; n3=pause in 1/10s macros autom. ping-pong j n1 n2 n3 processes macros n1..n2..n1 automatically (ping-pong); n3=pause in 1/10s
9 ea kit160-6 bar graph commands define bar graph esc b r l o u no x1 y1 x2 y2 sv ev pat defines a bar graph to the left (l), right (r), top (o) or bottom (u) with the number no (1..16). x1,y1,x2,y2 define the rectangle enclosing the bar graph. sv,ev are the values for 0% and 100%. pat=pattern (0..7) draw bar graph no value sets the bar graph with the number no (1..16) to the new user 'value' keyboard/touch panel commands define touch key with horizontal label esc t h f1 f2 ret code form text ... nul groups touch fields f1 to f2 (diametrically opposite corner fields) together to form a touch key with the return value ret. code (=1..255) (ret. code=0 means the touch key is inactive). form: draws touch key (=0 nothing; =1 delete; =2 with frame) text: positions a string on the touch key (centered) using the current font; lines are separated by the character '|' ($7c, dec: 124); nul character ($00) = end of string define touch key with vertical label (rotated by 90) v (p)reset touch keys p activates all touch keys in ascending order (fields with code 1..60) r deactivates all touch keys (all fields with code 0) touch key response i n1 n1=0: touch key is not inverted when touched n1=1: touch key is automatically inverted when touched s n1 n1=0: no tone sounds when (touch) key is touched n1=1: tone sounds briefly when (touch) key is touched invert touch key m n1 the touch key assigned the return code n1 is inverted manually query key manually w sends the currently depressed (touch) key at the rs-232/rs-422 interface key query on/off a n1 the keyboard query is n1=0:deactivated; n1=1:activated, keystrokes are sent automatically; n1=2:activated, keystrokes are not sent (query with esc t w) menu/pop-up commands define menu with horizontal items esc n h x1 y1 no text ... nul draws a menu from the corner x1,y1 (horizontal menu = upper left corner; vertical menu = upper right corner) using the current font. no:= currently inverted item (e.g.: 1 = 1st item) text:= string with the menu items. the items are separated by the character '|' ($7c,dec:124), e.g. "item1|item2|item3" the background of the menu is automatically saved to the clipboard. if a menu is already defined, it is automatically canceled and removed define menu with vertical items (rotated by 90) v invert menu box i inverts the entire menu box. useful for negative display next item n inverts the next item or remains at the end previous item p inverts the previous item or remains at the beginning menu end/send s removes the menu from the display and replaces it with the clipboard contents. the current item is sent as a number (1..n) (0=no menu displayed) menu end/macro m no removes the menu from the display and replaces it with the contents of the clipboard. macro 'no' is called for item 1; macro no+1 for item 2, and so on menu end/cancel a removes the menu from the display and replaces it with the contents of the clipboard control/definition commands automatic flashing area (cursor function) esc q d x1 y1 x2 y2 defines a flashing area from x1,y1 to x2,y2; activates the flashing function z n1 sets the flashing time n1= 1..15 in 1/10s; 0=deactivates the flashing function c n1 automatically flashing area as cursor for terminal operation n1=0: deactivates flashing function; n1=1: activates flashing function (inverse, 6/10s) select/deselect esc k s add activates the kit with the address n1 (n1=255: all) d add deactivates the kit with the address n1 (n1=255: all) a add assigns a new address (add) (in the power-on macro, for example) wait (pause) esc x n1 wait n1 tenths of a second before the next command is executed buzzer on/off esc j n1 n1=0:tone off; n1=1:tone on; n1=2..255:for n1 1/10s long on send bytes esc s num data ... sends num (1..255; 0=256) bytes at the rs-232/rs-422 interface; data ... = num bytes (e.g. control of an external serial printer) port commands write output port esc y w n1 n2 n1=0: sets all 8 output ports in accordance with n2 (=8-bit binary value) n1=1..8: resets (n2=0), sets (n2=1) or inverts (n2=2) output port n1 read input port r n1 n1=0: reads in all 8 input ports as 8-bit binary value n1=1..8: reads in input port (1=high level=5v, 0=low level=0v) port scan on/off a n1 deactivates (n1=0) or activates (n1=1) automatic scanning of the input port input port inverse i n1 evaluates the input port (n1=0: normal; n1=1: inverted) led backlit on/off l n1 led backlit n1=0: off, n1=1: on; n1=2: invert; n1=3..255 n1/10 sec. on
10 ea kit160-6 example codes to be output in ascii esc z l bel etx t e s t nul in hex $1b $5a $4c $07 $03 $54 $65 $73 $74 $00 in decimal 27 90 76 7 3 84 101 115 116 0 for turbo pascal write(aux, chr(27), 'z', 'l', chr(7), chr(3), 'test', chr(0)); for c fprintf(stdaux, "\x1bzl%c%c%s\x00", 7, 3, "test"); for q basic open "com1:9600,n,8,1,bin" for random as #1 print #1,chr$(27)+"zl"+chr$(7)+chr$(3)+"test"+chr$(0) parameters the graphics kit can be programmed by means of various integrated commands. each command begins with esc followed by one or two command letters and then parameters. all the commands and their parameters, such as coordinates and other transfer values, are always expected as bytes. no separating characters, such spaces or commas, must be used between them. the commands require no final byte such as a carriage return (except for the string $00). a..z, l/r/o/u .................................... all commands are transferred as ascii characters. example: g= 71 (dec.) = $47 initiates the straight-line command. x1, x2, y1, y2 .................................... coordinates are transferred with 1 byte. example: x1= 10 (dec.) = $0a esc .................................................. 1 byte: 27(dec.) = $1b n1,n2,no,sv,ev,value,pat,ret, frm,data ........................................... numerical values are transferred with 1 byte. example: n1=15(dec.) = $0f programming example the following table shows an example in which the string "test" is output left justified at coordinate 7,3. pattern a pattern type (pat = 0..7) can be set as a parameter with some commands. in this way, rectangular areas, bar graphs and even texts can be linked to different patterns and displayed. the following fill patterns are available: pat=0 pat=1 pat=2 pat=3 pat=4 pat=5 pat=6 pat=7 white black 25% gray 50% gray 75% gray 45 right 45 left 45 cross
11 ea kit160-6 descriptions of the various graphics functions on the following pages you will find detailed descriptions of all of the functions in alphabetical order. in each case, an enlarged section of the image, 50x32 pixels in size, is shown as a hard copy example, indicating the contents of the display after the command is executed. the bytes to be transferred are shown as hex values in the examples. esc b l/r/o/u no x1 y1 x2 y2 sv ev pat define bar graph up to 16 bar graphs ( no =1..16) can be defined. these can extend to the left ( l ), right ( r ), up ( o ) or down ( u ). at its full extent, the bar graph occupies an area from x1 , y1 to x2 , y2 . it is scaled with the start value (no extension) sv (=0..254) and the end value (full extension) ev (=0..254). the bar graph is always drawn in inverse mode with the pattern ( pat ): the background is thus always retained. (note: when this command is executed, it defines the bar graph but does not display it). example: $1b $42 $4f $01 $04 $02 $09 $1e $04 $14 $01 bar graph no. 1, which extends upwards, is defined. when it is fully extended, it takes up an area from 4,2 to 9,30. the start and end values correspond to a 4..20 ma display. (the diagram shows the bar graph fully extended, as represented with $42 $01 $14.) esc b no value draw bar graph the bar graph with the number n1 (1..16) is set to the new value (sv <= value <= ev). if value > ev, the end value (ev) is displayed. the bar graph must be defined first (see above). example: $1b $42 $01 $0a bar graph no. 1 defined in the above example is set to a value of 10. esc d l/i/s change contents of display the entire contents of the display are deleted ( l - white), inverted ( i ) or filled ( s - black). example: $1b $44 $49 inverts the entire contents of the display. esc d a/e switch display on/off switches the contents of the display off ( a - not visible) or on ( e - visible). outputs are still possible when it is switched off. example: $1b $44 $41 the contents of the display are no longer visible after this command.
12 ea kit160-6 bit nr. 0 1 2 3 4 5 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 byte 8 bit nr. 0 1 2 3 4 5 6 7 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 byte 8 byte 9 byte 10 byte 11 byte 12 byte 13 byte 14 byte 15 byte 16 user-definable characters (code) 4x6 5x6 6x8 8x8 8x1 16x 16 1 1 1 1 2 2 3 3 2 4 5 4 6 5 3 2 7 6 8 9 7 4 10 8 11 9 5 3 12 13 10 14 11 6 15 12 16 17 13 7 4 18 14 19 15 8 20 21 16 esc e n1 data define character you can define up to 21 characters yourself (depending on the font size). these characters then have the ascii codes 1 to max. 21 and remain in an invisible screen ram 128 bytes in size until the supply voltage is switched off. in the case of a 4x6 font, up to 21 characters can be defined, whereas only 8 characters can be defined for an 8x16 font. please note that if you want to define several characters in different fonts, you must bear in mind that a character with code 1 of the 8x16 font, for example, requires the same amount of ram as the characters with the codes 1 to 3 in the 4x6 font (see the adjacent table). example 1: $1b $45 $01 $04 $0e $15 $04 $04 $04 $04 $00 defines an arrow pointing upward for ascii no. 1 using the 6x8 character set. example 2: $1b $45 $02 $08 $08 $08 $08 $08 $08 $08 $08 $08 $08 $49 $2a $1c $08 $00 $00 defines an arrow pointing downward for ascii no. 2 using the 8x16 character set. esc f n1 n2 n3 set font sets the font with the number n1 (1=4x6 uppercase letters only; 2=6x8; 3=8x16). in addition, an enlargement factor (1..8 times) is set for the width ( n2 ) and height ( n3 ) separately. example: $1b $46 $02 $03 $04 the 6x8 with 3 times the width and 4 times the height is set with immediate effect. in the adjacent figure, the character 'e' is shown in the 6x8 font and with various enlargement factors. esc f t n1 set terminal font sets the font with the number n1 for terminal operation. the font for the terminal is always used without zoom and in replace mode. example: $1b $46 $54 $03 the 6x8 font is set as the terminal font with immediate effect. esc g x1 y1 x2 y2 draw straight line a straight line is drawn from x1,y1 to x2,y2 taking into account the graphics mode set 'v' (set/delete/inverse). example: $1b $47 $03 $14 $28 $06 a straight line is drawn from 3,20 to 50,6. esc h x1 y1 x2 y2 create hard copy of display contents requests the area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ). the graphics chip then immediately sends the width and height of the image section followed by the image data. see the upload image command ('u') for the structure of the image data. example: $1b $48 $00 $00 $1f $0f the upper left part of the screen (32 x 16 pixels) is sent via rs-232.
13 ea kit160-6 esc j n1 switch tone on/off manually switches the tone off ( n1 =0), on for an undefined period ( n1 =1) or on for n1/10 seconds ( n1 =2..255). (this only applies to versions with ea kit160-6ledtp touch panel.) example: $1b $4a $0a the tone sounds for 1 second after this command. esc k a add assign address assigns an address to the ea kit160 ( add =0..254). the best place for this command is in the power-on macro. example: $1b $4b $41 $01 the ea kit160 is assigned the address $01 with immediate effect. esc k s/dadd (de)select kit160 selects ( s ) or deselects ( d ) the ea kit160 with the address add (0..254); the address 255=$ff is a master address for all ea kit160 units. example: $1b $4b $44 $01 all commands for the ea kit160 with the address $01 are ignored with immediate effect. esc l n1 pat set text mode sets the link mode ( n1 ) and pattern ( pat) for the string output text function ( esc z ). example: $1b $4c $03 $03 sets the link mode for all subsequent text functions to gray characters (pattern 3 = 50% gray) inverted with the background. link mode n1: 1 = set: black pixels irrespective of the previous value (or) 2 = delete: white pixels irrespective of the previous value 3 = inverse: changes black pixels to white pixels and vice versa (exor) 4 = replace: deletes the background and sets black pixels 5 = inverse replace: fills the background and sets white pixels
14 ea kit160-6 esc m n/t/p n1 call macro calls the normal macro ( n ), touch macro ( t ) or port macro ( p ) with the number n1 (0..255). example: $1b $4d $4e $0f the (normal) macro with the number 15 is executed. esc m a/j n1 n2 n3 execute macros automatically calls the normal macros with the numbers n1 to n2 automatically every n3 /10 seconds. a =cyclical call (e.g. 1,2,3,4,1,2,3,4, etc.); j =ping-pong call (e.g. 1,2,3,4,3,2,1,2,3,4, etc.). automatic execution is terminated: - when a character is received from the rs-232 interface - when a touch automatically executes a touch macro - when an input change executes a port macro example: $1b $4d $41 $01 $03 $05 the macros with the numbers 1, 2 and 3 are executed automatically with a break of 1/2 second. esc n h/vx1 y1 no text... nul display menu defines and displays a menu with the current font. the background of the menu box is automatically saved on the clipboard (the previous contents of the clipboard are lost) : h =horizontal menu at x1,y1 (upper left corner) or v =vertical menu (rotated 90) at x1,y1 (upper right corner). n1 =currently inverted item; text... =string containing the items. the individual items are separated by the character '|' (=$7c). the string must be terminated with nul = $00. example 1 - horizontal menu: $1b $4e $48 $02 $02 $01 $54 $65 $73 $74 $7c $53 $74 $6f $70 $7c $45 $6e $64 $00 defines a horizontal menu containing the items "test", "stop" and "end" at position 2,2. the 1st item is inverted. example 2 - vertical menu: $1b $4e $56 $28 $01 $01 $54 $65 $73 $74 $7c $53 $74 $6f $70 $7c $45 $6e $64 $00 defines a vertical menu containing the items "test", "stop" and "end" at position 40,1. the 1st item is inverted. esc n n/p next/previous menu item inverts the next ( n ) or previous ( p ) menu item. if the last/first item is already inverted, the command is ignored. example: $1b $4e $4e the next menu item is inverted. esc n i invert menu box inverts the entire menu box. example: $1b $4e $49 esc n s terminate and send menu removes the menu from the display and restores the background. the currently selected item is sent as a number (1..max. item) via the rs 232 interface. example: $1b $4e $53 esc n m n1 terminate menu and call macro removes the menu from the display and restores the background. if item 1 is selected, the (normal) macro with the number n1 is called, for item 2 the macro n1 +1 etc. example: $1b $4e $4d $0a esc n a cancel menu removes the menu from the display and restores the background. example: $1b $4e $41
15 ea kit160-6 esc o n1 n2 position cursor sets the cursor to column n1 and row n2 for terminal operation. the origin in the upper left corner is 1,1. example: $1b $4f $03 $05 sets the cursor to the 3rd column in row 5. esc p x1 y1 set dot sets a pixel at x1,y1 taking into account the graphics set mode 'esc v' (set/delete/ invert). example: $50 $11 $0d sets the pixel at 17,13. esc q c n1 cursor on/off n1 =1: switches the cursor on; it flashes at the current position on the terminal. n1 =0: switches the cursor off. example: $1b $51 $43 $01 switches the cursor off. esc q d x1 y1 x2 y2 define flashing area defines the area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) as an automatically flashing area. the flashing function is started at the same time. this deactivates the terminal cursor. example: $1b $51 $44 $00 $0f $07 $10 defines the flashing area from 0,15 to 7,16. esc q z n1 set flashing time sets the flashing time to n1 (=1..15) tenths of a second. when n1 = 0, the flashing function is deactivated and the original screen restored. example: $1b $51 $5a $03 sets the flashing time to 0.3 seconds. esc r r x1 y1 x2 y2 draw rectangle draws a rectangle from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) taking into account the set graphics mode 'v' (set/delete/inverse). the contents of the rectangle are not changed. see 'esc r o' (draw box). example: $1b $52 $52 $15 $08 $30 $25 draws a rectangle from 21,8 to 48,37.
16 ea kit160-6 esc r n x1 y1 x2 y2 draw rounded rectangle draws a rectangle with rounded corners from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) taking into account the set graphics mode 'v' (set/delete/inverse). the contents of the rounded rectangle are not changed. see 'esc r j' (rounded box). example: $1b $52 $4e $06 $02 $26 $13 draws a rounded rectangle from 6,2 to 38,19. esc r l x1 y1 x2 y2 delete area deletes the area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ). example: $1b $44 $53 $1b $52 $4c $06 $04 $28 $19 the display is filled with esc d s and then deleted from 6,4 to 40,25. esc r i x1 y1 x2 y2 invert area inverts the area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) (black pixels turn white and vice versa). example: $1b $52 $49 $00 $00 $17 $1b inverts the area from 0,0 to 23,27 with the display contents from the "set font" example. esc r s x1 y1 x2 y2 fill area fills the area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) (sets the pixels to black). example: $1b $52 $53 $09 $05 $16 $16 sets the area from 9,5 to 22,22 black. esc r m x1 y1 x2 y2 pat fill area with pattern fills a rectangular area from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) with the pattern pat taking into account the set graphics mode "esc v' (set/ delete/invert/replace/inverse replace). example: $1b $52 $4d $05 $01 $2d $1a $07 fills the area with the pattern 7=45cross from 5,1 to 45,26. esc r o x1 y1 x2 y2 pat draw box draws a rectangle from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) with the pattern pat . the background of the box is deleted. see 'esc r r' (draw rectangle). example: $1b $52 $4f $02 $05 $12 $1e $02 draws a box from 2,5 to 18,30 with the pattern 2=25%gray. esc r j x1 y1 x2 y2 pat draw rounded box draws a rectangle with rounded corners from the upper left corner ( x1,y1 ) to the lower right corner ( x2,y2 ) with the pattern pat . the background is deleted. see 'esc r n' (draw rounded rectangle). example: $1b $52 $4a $07 $03 $23 $16 $03 draws a rounded box from 7,3 to 35,22 with the pattern 3=50%gray. esc s num data... send bytes via rs-232 outputs the next num (1..255, 0=256) bytes at the serial interface. example: $1b $53 $04 $54 $45 $53 $54 transmits the word 'test' via the rs-232c interface.
17 ea kit160-6 esc t h/vf1 f2 ret frm text... nul define touch key defines a touch key and labels it with the current font. h =horizontal or v =vertical labeling (rotated 90). several touch fields can be grouped together to form a single touch key ( f1 =upper left touch field; f2 =lower right touch field of the new touch key). this touch key is assigned a return code with ret (1..255). when the touch key is touched, the touch macro with the number ret is called or, if no touch macro is defined, this return code is sent via the rs232. you use frm to define the format of the touch key (frm=0: don't draw anything; frm=1: delete touch key; frm=2: delete touch key and draw with frame). text... =string with the label (which is always centered on the touch key). the label can also have more than one line; in this case, the lines are separated by the character '|' (=$7c). the string must be concluded with nul = $00. see example on page 3. example 1: horizontal touch key: $1b $54 $48 $01 $01 $41 $02 $54 $45 $53 $54 $00 defines a horizontal touch key (field no. 1 only) with the return code 65='a'. the touch key is drawn with a frame and labeled with the word 'test'. example 2: vertical touch key: $1b $54 $56 $02 $02 $42 $02 $54 $45 $53 $54 $00 defines a vertical touch key (touch field no. 2 only) with the return code 66='b'. the touch key is drawn with a frame and labeled with the word 'test'. esc t p/r preset/reset touch fields assigns p (=ascending return code: 1..32) or r (=reset all touch fields) to all 32 touch fields. in the latter case all touch fields receive the return code 0 (i.e. they are deactivated). example: $1b $54 $52 all touch fields are deactivated by this command and no longer recognized. esc t i/s n1 touch key response these commands set the automatic response of the touch panel to touching. both responses can be activated simultaneously. i =automatic inversion when the touch key is touched ( n1 =0: off or n1 =1: on) s =automatic signal tone when the touch key is touched ( n1 =0: off or n1 =1: on) example: $1b $54 $49 $01 after this command the tone sounds when a touch key is touched. esc t m ret invert touch key manually this command manually inverts the touch key with the return code ret . example: $1b $54 $4d $41 inverts the touch key from the above example with the return code 65='a'. esc t a n1 (touch) key query on/off this command sets the (touch) key query: n1 =0: switches the key query off - no touch macros or manual key query possible. n1 =1: activates the key query - keystrokes trigger touch macros or are sent via rs232. n1 =2: activates the key query - keystrokes trigger touch macros; must be queried manually. example: $1b $54 $41 $02 activates the (touch) key query. the keystrokes are not sent automatically via rs232; they have to be requested manually by means of the command esc t w . esc t w query touch key manually sends the return code of the currently depressed touch key at the rs232. example: $1b $54 $57
18 ea kit160-6 bit nr. bit nr. 0 1 2 3 4 5 6 7 0 1 2 3 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 byte 8 byte 9 byte 10 byte 11 byte 12 byte 13 byte 14 byte 15 byte 16 byte 17 byte 18 byte 19 byte 20 byte 21 byte 22 byte 23 byte 24 esc u e x1 y1 n1 load image from eeprom displays the image saved in the eeprom with the number n1 (0..255) at position x1,y1 . example: $1b $55 $45 $02 $03 $0e displays image number 14 from the eeprom at position 2,3. esc u l x1 y1 data... upload image displays an image at position x1,y1 . data..: - 1 byte for the image width in pixels - 1 byte for the image height in pixels - image data: number = ((width+7) / 8) * height bytes. 1 byte stands for 8 horizontal pixels on the screen; 0=white, 1=black; lsb: left, msb: right; the image is stored from the top down. the bmp2blh.exe -m program on the ea disk240 floppy disk available as an accessory creates the image data, including the width and height, from monochrome windows bitmap graphics (*.bmp). example: $1b $55 $4c $09 $04 $0c $0c $f0 $00 $fc $03 $fe $07 $6e $07 $ff $0f $ff $0f $9f $0f $ff $0f $f6 $06 $0e $07 $fc $03 $f0 $00 loads the adjacent image at position 9,4. esc v n1 set graphics mode sets the link mode n1 for the following graphics functions: esc p (set point), esc g (straight line), esc w (continue straight line), esc r r (rectangle), esc r n (rounded rectangle), esc r m (fill area with pattern). example: $1b $56 $03 sets the link mode to inverse. by way of example, a rectangle is drawn alongside with the link modes set, delete and inverse on an existing background. link mode n1: 1 = set: black pixels irrespective of the previous value (or) 2 = delete: white pixels irrespective of the previous value 3 = inverse: changes black pixels to white pixels and vice versa (exor) 4 = replace: deletes the background and sets black pixels; only area with fill pattern 5 = inverse replace: fills background and sets white pixels; only area with fill pattern esc w x1 y1 continue straight line continues a straight line from the last end or point drawn to x1,y1 taking into account the set graphics mode 'v'. example: $1b $47 $00 $00 $10 $04 $1b $57 $16 $1b $1b $57 $30 $0f a straight line is drawn from 0,0 to 16,4.it is then continued to 22,27 and to 48,15. esc x n1 wait/pause this command suspends the ea kit160 for n1 /10 seconds. example: $1b $58 $0a after this command the ea kit160 waits for a second before the next command is processed. esc y r n1 read input port reads in the input port ( n1 =1..8 = in1..in8). when n1 =0, all the inputs are read in as 8-bit binary values (msb:in8...in1:lsb); see application on page 5. the command "esc y i 1" puts this right (input open: 0). example: $1b $59 $52 $03 reads in port in3. the result is sent via rs232.
19 ea kit160-6 esc y w n1 n2 write output port changes the output port ( n1 =1..8 = out1..out8) to the value n2 (0=low level; 1=high level; 2=invert port). when n1 =0, all the outputs are output as a binary value n2 (msb:out8...out1:lsb); see application on page 5. example: $1b $59 $57 $02 $01 switches the output port out2 to high level. esc y a n1 automatic port query on/off each change at the input port (8-bit binary value in8..in1) can call a port macro (0..255). this command activates ( n1 =1) or deactivates ( n1 =0) the automatic port query. after power-on, the current port status is read and the associated port macro executed immediately. example: $1b $59 $41 $01 activates the automatic port query and executes the associated port macro. esc y i n1 invert input port this command allows the logic of the input port to be inverted ( n1 =0 for normal or n1 =1 for inverse). this is useful with the optocoupler inputs, for example. example: $1b $59 $49 $01 inverts the input port logic. esc y l n1 led backlight on/off led backlight is switched off ( n1 =0) or permanently on ( n1 =1). at n1 =2 backlight is inverted (on->off, off->on). n1 =3..255 turns the backlight n1/10 sec. on and then off. note: led backlight is the same line as output port 8. if you need to use output port 8 then you have to cut backlight from output 8 by changing the solder strip lb8. backlight will be turned on and cannot controled by software anymore. esc z l/z/r x1 y1 text... nul horizontal string writes the string text... left justified ( l ), centered ( z ) or right justified ( r ) at position x1 taking into account the set text mode ( esc l ). multi-line text can also be output, with the lines separated by the character '|' (=$7c). the string must be concluded with nul = $00. position y1 is the upper edge of the 1st line. example 1: writes the text "left|ok" left justified at 0,0. $1b $5a $4c $00 $00 $4c $65 $66 $74 $7c $4f $6b $00 example 2: writes the text "center|ok" centered at 25,0. $1b $5a $5a $19 $00 $43 $65 $6e $74 $65 $72 $7c $4f $6b $00 example 3: writes the text "right|ok" right justified at 49,0. $1b $5a $52 $31 $00 $52 $69 $67 $68 $74 $7c $4f $6b $00 esc z o/m/u x1 y1 text... nul v ertical string writes the string text... rotated by 90 degrees top justified ( o ), vertically centered ( m ) or bottom justified ( u ) at position y1 taking into account the text mode ( esc l ). multi- line text can also be output, with the lines separated by the character '|' (=$7c). the string must be concluded with nul = $00. position x1 is the right edge of the 1st line. example 1: writes the text "top|ok" top justified at 49,0. $1b $5a $4f $31 $00 $54 $6f $70 $7c $4f $6b $00 example 2: writes the text "mid|ok" vertically centered at 49,15. $1b $5a $4d $31 $0f $4d $69 $64 $7c $4f $6b $00 example 3: writes the text "bot|ok" bottom justified at 49,31. $1b $5a $55 $31 $1f $42 $6f $74 $7c $4f $6b $00
lochhamer schlag 17 d- 82166 gr?felfing phone +49-89 -8541991 fax +49-89 -8541721 www.lcd-module.de ea kit160-6 dimensions all dimensions are in mm panel cutout 97,5x75,0 mm antireflex screen or touch panel attention handling precautions ! hints for handling and operating - the module can be destroyed electrically by mispoled or overvoltaged power supply, wrong polarity, overvoltage or static discharge on inputs or shortened outputs. - before disassembling the module, the power supply must be switched off. also all inputs must not carry any current. - display, touch screen and cover glass are scratch- sensitive plastic materials and should not be touched with hard objects. - surfaces should be cleaned with soft fabric without using of chemical solvents. - the module is designed for indoor use only. for operating in outside enviroment adequate precautions must be undertaken. maximum operating temperature range from 0..+50c should be not exceeded. in humid atmosphere or in condensing situations the module functions may drop out. direct sun exposure to the display should be avoided. storage temperature range is -20..+70c.


▲Up To Search▲   

 
Price & Availability of EAKIT160-6LWTP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X