background image

2002-11-13

PRODUKTINFORMATION

Vi reserverar oss mot fel samt förbehåller oss rätten till ändringar utan föregående meddelande

ELFA artikelnr
75-576-22 Grafisk LCD Seriell 120x32

Summary of Contents for 75-576-22

Page 1: ...2002 11 13 PRODUKTINFORMATION Vi reserverar oss mot fel samt förbehåller oss rätten till ändringar utan föregående meddelande ELFA artikelnr 75 576 22 Grafisk LCD Seriell 120x32 ...

Page 2: ... utility program allows you to convert and download bitmapped pictures 120x32 pixel BMP graphics to the display G12864 Compatibility The G12032 is very similar to the larger G12864 but there are some inevitable differences If you are familiar with the G12864 check the comparison table in the specifications section of this document Table of Contents l Description l Disclaimer of Liability l Warrant...

Page 3: ... its EEPROM memory The slide show demo runs until the unit receives serial input or is shut off Upon receiving serial input the G12032 discontinues the slide show and responds normally printing text and processing instructions as described later in this manual Since SET mode allows you to change startup settings stored in EEPROM you should set the unit to RUN mode before sending serial data to it ...

Page 4: ...ke sure that your power supply is regulated to 5VDC 0 25V and is capable of supplying up to 75 mA Power Supply Cautions Do not reverse 5V and GND when supplying 5VDC through J1 These connections are protected by a shunt diode on the circuit board A reversed connection will look like a short circuit to your power supply and may damage it A sufficiently powerful supply connected backwards may destro...

Page 5: ...g range of 0 to 50 C 32 to 122 F You may tweak the contrast setting by turning this control very slightly while viewing an image on the display Getting Acquainted The best way to get acquainted with the G12032 is to connect power and serial data as outlined in the previous sections boot up a terminal program like the Windows Terminal accessory or Serial Sender from www seetron com and type some te...

Page 6: ...m in its data buffer Sending a null is the equivalent of a brief time delay Delay lengths depend on serial speed at 2400 baud a null takes 4 milliseconds ms at 9600 1 ms ASCII Value Control Code ASCII Name G12032 Function 0 ctrl NUL Null ignored prior to buffer 1 ctrl A SOH Send cursor home position 0 upper left corner 2 ctrl B STX Begin inverse text white on black printing 3 ctrl C ETX End invers...

Page 7: ...d be used with caution since a large backspace would erase several smaller characters Horizontal Tab ASCII 9 Control I Tab Key Tab which may also be sent as control I causes the cursor to jump to the next multiple of four column position without otherwise affecting the display For example if the cursor is at position 0 sending TAB moves it to position 4 Tabs wrap to the next line or from the last ...

Page 8: ...nstructions that move the printing position ctrl P works in terms of the font size in effect at the time If you have a mixture of font sizes on the screen keep this in mind See the description of the font instruction for further information on screen layouts with various font sizes Ignored ASCII 17 Control Q Control Q is ignored but takes space in the buffer Use control if you need a time delay Ri...

Page 9: ...appears as text If you edit the A so that it looks like Z and download this altered font you ll get Z whenever you send A to the display It s best to confine your changes to the high ASCII characters 128 191 and leave the normal alphanumeric characters alone Figure 3 Default character set stored in screens 0 and 1 If you require more than one font pattern or you want to define sets of of symbols t...

Page 10: ... three bytes 101 or a single byte containing the value 64 101 165 i e A5 hex 10100101 binary When you send multiple numbers as shortcuts you do not need any characters to separate them nor any throwaway character s Sequence Purpose Effect ESC A x y Set screen address for next ESC B n to x y ESC B n Write bit pattern n to current screen address Screen address is incremented by 1 after write ESC D G...

Page 11: ... temporarily suspends the G12032 s usual behavior of discarding nulls ASCII 0 A total of 480 bytes make up a graphic screen These bytes map to the screen in exactly the same fashion as those sent via the write byte instruction working left to right and top to bottom See the Painless Graphics Primer for a map of the graphics screen The G12032 starter package includes simple utilities for converting...

Page 12: ... if small or tall fonts are in effect The bitmaps pictures of the individual characters that make up the font are nothing more than a pair of ordinary 120x32 pixel graphics By default the G12032 looks at EEPROM pages 0 and 1 as the font Figure 3 shows how the display maps portions of those graphics to the printable characters ASCII values of 32 to 191 If you need more than 160 characters you can s...

Page 13: ...ppens modify the program with one or two nulls ASCII 0s after the line instructions This will give the G12032 time to process the instructions Set Graphics M ode ESC M n Set the logic used to combine new black pixels with old in subsequent plot and line instructions to n where 0 is OR and 1 is XOR Note that this logic is only used in plotting black pixels If the ink is set to white the G12032 unco...

Page 14: ...reen The number n sets the vertical origin as follows l 0 top l 1 bottom ESC V affects only line and plot operations ESC L ESC T ESC P Points and lines already on the screen are not affected ESC V also does not affect byte oriented operations ESC A and ESC B The factory default configuration is 0 top but ESC W write configuration to EEPROM can change this setting W rite Configuration to EEPROM ESC...

Page 15: ... bottom The figure below shows how rows of bytes in address order correspond to four horizontal stripes of 120 bytes apiece The magnified portion of the drawing shows the byte located at xy coordinate 0 0 In keeping with mathematical tradition x is the horizontal coordinate and y is the vertical That byte contains 10011111 binary or 159 decimal Figure 5 Screen Layout The other way to look at the s...

Page 16: ...ck and white BMP file Hint If you used an upscale graphics program e g Photoshop to create the file and the file size is slightly off you can correct this by opening the file with Paint and resaving it as a standard BMP file Using the Downloading Program The conversion downloading program is a simple program that runs under any recent version of Windows 95 or later You will find several versions o...

Page 17: ...sumptions that might affect decisions about using the G12032 in consumer products Differences from the G12864 The G12032 is similar to the G12864 graphics display There are a few differences NOTE The G12864 has a minor bug regarding proper termination of decimal numbers The G12864 is supposed to discard the throwaway character that follows a decimal number However it does not discard ESC This mean...

Page 18: ...ffer can hold a maximum of 64 bytes All times are measured from entry of the last instruction parameter to the processing of the next instruction Mechanical Specifications Parameter min max typical unit Operating temperature range 0 50 C 32 122 F Storage temperature range 20 70 C 4 158 F Supply voltage to J2 9VDC 7 0 12 0 9 0 Vdc Supply voltage to J1 5V 4 50 5 50 5 00 Vdc Current draw backlight of...

Page 19: ... material like chamois soaked in petroleum benzine Do not scrub hard or you may damage the display surface l Wipe off saliva or water immediately Contact with water over a long period of time may cause deformation or color fading l Don t allow the LCD to come into contact with oil and fats l Condensation on the surface and contact terminals due to cold will damage stain or dirty the polarizers Aft...

Page 20: ... examples in several dialects of BASIC Additional examples will be posted at www seetron com as they become available As a headstart we recommend that you use a terminal program to try some of the recipes techniques for achieving particular effects by manually typing instructions and data Once you understand the recipes you can translate them into the programming language of your choice Type the r...

Page 21: ...cipe shows how different fonts can be displayed on the same screen Note that the font size is set before the screen address input Recipe 4 Selective Highlighting This recipe shows how to use esc R to selectively highlight lines of text cntl P p 99 mph shortcut for 48 is 64 48 112 p is ASCII 112 Type this Purpose effect cntl L Clear screen esc E 2 space Show EEPROM image 2 G12032 title screen esc E...

Page 22: ... this Purpose effect cntl L Clear screen esc F 0 space Set 4x20 font space MENU ITEM 1 return Text space MENU ITEM 2 return Text space MENU ITEM 3 return Text space MENU ITEM 4 return Text esc R 1 space Highlight reverse the first line esc R 2 space Highlight reverse the second line esc R 4 space Highlight reverse the third line esc R 8 space Highlight reverse the fourth line Type this Purpose eff...

Reviews: