Home
Scott Edwards Electronics ILM-216L Datasheet
Contents
1. Distributed by _JAMECO ELECTRONICS www Jameco com 1 800 831 4242 The content and copyrights of the attached material are the property of its owner Jameco Part Number 150990 User s Manual ILM 216 v1 2 07 00 pg 1 Integrated Serial LCD Module ILM 216 ThelLM 216 combines an LCD and microcontroller into a compact module for user interface applications A 2 line by 16 character LCD with supertwist high contrast screen e Bidirectional serial interface 1200 to 9600 baud e Simple receive terminal emulation e Inputs for four pushbuttons or switches that may be read serially e Output for piezo buzzer activated by ASCII bell character e Nonvolatile EEPROM memory for configuration special characters startup screen e Software control of LED backlight on backlit models ThelLM 216 s microcontroller is a PIC16F 84 a flash memory device that can be reprogrammed in circuit Sophisticated users can reprogram the module to their own specifications This manual covers only the standard firmware shipped with the LM 216 Table of Contents Pinout of the EM 2162 c ive acest eed thal eset eatin nidehin aoa ahi eicl aaa 2 Quick Checkout and Contrast Adjustment eeeeeceeeeeeeeeeeeeeeeeeeeeeeeseeeeaeeeeeeetaeeseeeneeseaeeeeereas 2 FOOKUP TOF WSC E E E E E ies catenet ax 2 Basic OperatiOna 25 4 0 ear en Adal whet eta a A del elie ae 3 Control Codes and Special Features 0 ecceeceeese
2. Clear Screen control L ASCII 12 Clear the screen Carriage Return control M ASCII 13 Move cursor to the first position of the next line Backlight ON control N ASCII 14 Turn on the LED backlight Current draw is approximately 40 mA Backlight OFF control O ASCII 15 Turn off the LED backlight Position Cursor control P ASCII 16 Accept a number from 0 to 31 and move the cursor to that screen position where 0 is the first character of the first line and 31 is the last character of the second line Number may bein text or single byte format Text method Send the desired display position as printable text F or example to move the cursor to position 21 6th character 2nd line from a terminal program press control P and type 21 followed by a space or other character which will be discarded Onebyte method Send a single byte whose value is 64 position For example to move to position 21 send a control P ASCII 16 followed by a byte value of 85 64 21 Right align Text control R ASCII 18 Accept a number from 2 to 9 as text representing the width of an area on the screen in which right aligned text is to be printed Cursor will back up that number of characters from present cursor position Subsequent text will be stored without printing to the screen until one of the following is received e The specified number of characters e A control character ASCII 1 31 e A decimal point the period charact
3. Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com ILM 216 v1 2 07 00 pg 7 32 40 48 56 64 72 80 88 96 104 112 120 128 160 168 176 184 192 200 208 216 224 232 240 248 To find the ASCII code for a given character add the row and column numbers NOTE Custom characters occupy ASCII 128 135 For example capital D is in the column marked 64 in row 4 so its ASCII code is ASCII 128 133 load fi fi i EEPROM 68 Use the reverse procedure to determine the symbol for a given code For oad trom con iguration example ASCII code 244 produces the symbol Q found at colum 240 row 4 ASCII 136 160 are blanks Figure 5 Character code chart Program Examples Any computer programming language that can produce serial output 1200 to 9600 bps N81 can talk to the LM 216 The examples here are in BASIC chosen because of its popularity and readability A C programmer can readily understand BASIC but a BASIC programmer generally cannot read C These examples are meant to illustrate only the fundamentals More examples are available from www seetron com BASIC STAMP I Assumes ILM 216 set for 2400 bps factory default serial in pin 3 connected to BS1 pin 0 Uses ctrl P position ASCII 16 and ctrl L clear screen ASCII 12 PAUSE 1000 Wait for display to initialize SEROUT 0 N2400 12 Hello World Clear screen show message PAUSE 2000 Wait 2 secs go to line 2
4. or all accessories just leave the unused pins disconnected Many applications will require just power and serial input 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com User s Manual ILM 216 v1 2 07 00 pg 3 Figure 3 shows how to connect the module to PCs and BASIC Stamp computers in order to run the example programs presented later in this manual DO NOT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 FRONT REVERSE A power Ad D i i l 0 i VIEW Ae ded le computer gt 3 S1 se sal sa serial output 4 Ji v2 computer serial input lt s 5 S1 through S4 User input buttons or i z j r switches that may be read through o a et Te in e Ona ier eonna the serial link using the ESC K n 5V 25mA piezo buzzer P instruction Switches should be ESD e g Radio Shack 273 065 J2 Short pin 8 to pin 6 GND for 9600 baud protected as needed and have low operation leave open to use default baud rate usually lt 10Q contact resistance 2400 baud shown on config test screen Figure 2 Hookup example with accessories PC Serial comm Port BASIC Stamps NOTE ILM 216 serial output is 0 5V only not ILM 216 Stamp ILM 216 true RS 232 10V Most PGs can accept this signal lt pin 4 serial out GND Vss _ pin 1 GND but cable should be
5. 50 frame depth LED backlit 8 50 All dimensions in mm e Worst case tolerance for any dimension is 0 50mm Maximum depth from front of screen frame to highest point on pcb is 15mm Figure 6 Physical dimensions Table 4 Basic Power requirement ecc 4 8 to 5 5 Vdc 5 mA 40 mA backlit Specifications User connector 16 pads on 0 10 centers Connector PINOUL eee cceeeeeceeeeeeeeeeeeceneeeesaeeeesseeesceeeessaeeeenaes see table 1 Serial input RS 232 or inverted TTL CMOS 1200 9600 N81 Serial OUtpUt eee inverted TTL 0 5V 1 0V not true RS 232 Buffer depth ss ccssses cxtsececeescesscdik erties adasaaeeseiacetesecstssizeteaageaztqebaceascie 16 bytes Operating temperature c ccccecceeesseeeeteees 0 to 50 C 32 to 122 F Storage temperature ee eeeeeeeeeeeeeteeeeeees 10 to 60 C 14 to 140 F KODES o CE Supertwist STN yellow green Optimum viewing direction 6 o clock Scott Edwards Electronics Inc 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA ph 520 459 4802 fax 520 459 0623 www seetron com
6. as R short as possible pin 3 serial in 5V Vdd pin2 5V VO pin 0 in 3 serial in 2 ox ooo pin 1 GND uy gt Pins Oo VO pin 1 lt pin 4 serial out pin 2 5V DB 9 female power solder side supply Figure 3 Connecting to PC serial port BASIC Stamps Basic Operation Connect serial input and power to the LM 216 as shown in the previous sections Make sure that pins 6 and 7 are not connected together configuration test mode If they are remove power disconnect pins 6 and 7 and restore power Now you can send text serially to the display On a PC you may use a terminal program Such as Hyperterminal included with Windows 95 and later Set it for the appropriate baud rate the one you saw on the config test screen 2400 is the factory default To override that baud rate and run at 9600 baud connect pin 8 to pin 6 as shown in figure 2 above In addition to the baud rate the terminal should be set for no parity 8 data bits 1 stop bit flow control none local echo on Control Codes and Special Feaures Table 2 lists the ILM 216 control codes To send control codes from a terminal program hold down Control and press another key For example to send ctrl E underline cursor hold down Control and press E To send control codes from a program send the ASCII value as a single byte not as a text representation of the number Using ctrl E as an example send a single byte containing
7. character 5 position 21 SEROUT 0 N2400 16 85 line 2 e 64 21 85 and print PAUSE 2000 SEROUT 0 N2400 12 Goodbye Wait 2 seconds clear screen say bye BASIC STAMP II Assumes ILM 216 set for 2400 bps factory default serial in pin 3 connected to BS2 pin PO Uses ctrl P position ASCII 16 and ctrl L clear screen ASCII 12 If ILM 216 is set for 9600 bps use 4054 S40F0 for BS2 SX as Serout baudmode N2400 con 418D Define inverted 2400 bps serial S43FD for BS2 SX PAUSE 1000 Wait for display to initialize SEROUT 0 N2400 12 Hello World Clear screen show message PAUSE 2000 Wait 2 seconds then go to line 2 position 16 SEROUT 0 N2400 16 85 line 2 64 21 85 and print PAUSE 2000 SEROUT 0 N2400 12 Goodbye Wait 2 secs clear screen say bye 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com User s Manual ILM 216 v1 2 07 00 pg 8 Program Examples cont BASIC QuickBASIC PowerBASIC including First BASIC for PCs under DOS Note QBASIC is the BASIC interpreter that Microsoft shipped with most versions of DOS An alternative is PowerBASIC or First BASIC from www powerbasic com or go to www seetron com and follow the link from the ILM 216 support page Program assumes ILM 21 as shown in fi
8. creen or default patterns for the first six custom characters ASCII 128 through 133 Using the EEPROM instruction you can transfer that data from EEPROM tothe display Send Escape ASCII 27 followed by the letter E ASCII 69 then the number 0 or 1 ASCII 48 or 49 to perform a transfer ESC E 0 causes the EEPROM text screen to be displayed ESC E 1 reloads the first six custom characters from EEPROM Since those custom characters are automatically loaded at startup the only time you might use ESC E 1 is to undo changes made by a previous definition of custom characters ESC D n Figure 4 Defining a custom symbol 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com User s Manual ILM 216 v1 2 07 00 pg 6 Read the Keys ESC K n TheILM has four inputs that may be used to read a four button keypad S1 S4 The Key instruction returns the states of those switches via the serial output Send Escape ASCII 27 followed by K ASCII 75 then the number 0 or 1 ASCII 48 or 49 ESC K O returns a single byte whose lower four bits correspond tothe states of the keys where 0 means open and 1 means dosed S1 corresponds to bit 0 S2 to bit 1 and so on The upper four bits will always be 0100 binary If you send ESC K 0 froma terminal you will see the returned byte as a single character no keys pressed or A through O on
9. e or more keys pressed ESC K 1returns four bytes consisting of O ASCII 48 for open switches and 1 ASCII 49 for closed switches From a terminal you would see 0100 assuming that S2 was closed and the others open Configuration EEPROM ThelLM 216 stores settings custom characters and a 32 character text screen in 64 bytes of EEPROM This kind of memory retains its contents without power Table 3 shows the format of the EEPROM configuration Configuration software is available from www seetron com To download data to the EEPROM connect the ILM 216 toa PC as shown in figure 3 Temporarily connect pins 6 and 7 of the LM 216 together and power the unit It will display the screen shown in figure 1 with some possible variations in the text The LM 216 is waiting to receive 64 bytes that it will copy to EEPROM The download baud rate is fixed at 2400 bps Select the desired settings in the configuration software and press Download Windows version see readme file accompanying DOS version When the download is over the screen will display Setup Complete To use the LM 216 turn off power and disconnect pins 6 and 7 Configuration software is available free from www seetron com downloads page Table 3 Configuration Bytes Byte No Function Explanation 0 29 Custom symbols Each of 6 symbols is defined by 8 rows of 5 bits for a total of 240 bits packed into 30 bytes For example config byte 0 contains symbol 0 row 0 b
10. eeseeeeeeeeneeeeeeeeeeseaeeseaeeeaeeseaeseeeseeeesieeseaeesaees 3 Configuration EEPROM menee ineo aa ereer E atid i ee ea 6 Program Examples 2 aa i e a e a a aa aa a a r aE lea ptesedesl gee 7 Dimensions and Specifications ssirpissiei osiinsa aeaieie eiaeia a Ta aa 8 Figure 1 Location of pins and Contrast control s seessseeeieesireerirnerrrerrnnsrnnerinnernnnennneennnenene 2 Figure 2 Hookup example with ACCOSSOSICS cceccceesceseneeetenneeteeneeeteneeessnneesseaeeetenenenseneetennees 3 Figure 3 Connecting to PC serial port BASIC Stamps ecccscceseeseeceseeeseeteneesseeseeetenesenernes 3 Figure 4 Defining a custom symbol ceeccceeteeeteneeeeenneeteneeeeteneeeeeneeeteaeeseeneeeteeeeteneeesseeeenenees 6 Figured Character COO CHarticiss ccs aoao A tai vids ay van oe ele EEEa aea ARE a aate aa e a gE 7 Figure 6 Physical dimensions sister Airne Aenea eae 8 Disclaimer of Liability Scott Edwards Electronics Inc is not responsible for any special incidental or consequential damages resulting from any breach of warranty or under any legal theory including lost profits downtime goodwill damage to or replacement of equipment or property and any costs or recovering reprogramming or reproducing of data associated with the use of the hardware or software described herein Warranty Scott Edwards Electronics Inc warrants this product against defects in materials and workmanship for a period of 90 days If you disco
11. er ASCII 46 The display will print the text with right alignment and erase any leftover text within the specified width For example move the cursor to the right end of the screen send control R ASCII 18 followed by 5 ASCII 53 then 123 and Enter The 123 will be printed right aligned within the 5 character space Escape Sequences control ASCII 27 followed by additional instructions The ILM 216 understands three instructions that begin with the escape code ASCII 27 i EES Byte Values e Define a Custom Character ESC D n BO B1 B2 B3 B4 B5 B6 B7 EERE binary dedma byte 0 xxx00000 0 ThelILM 216 has eight custom character slots These characters are ed E S aia i mapped to ASCII codes 128 through 134 At startup the unit loads bytes E ee dana bitmaps into the first six custom characters from its EEPROM Using ites EEHEEHE Sai A E the Define instruction you can change a bitmap Send Escape ASCII byte4 E xxx00010 2 27 followed by the letter D ASCII 68 then the symbol number you byte 5 xxx00100 4 wish to define 0 7 ASCII 48 55 followed by eight bytes defining byte 6 xxx00000 0 the bitmap The contents of those bytes map to the custom symbol as SEUA A shown in figure 4 e Transfer Data from EEPROM ESC En The ILM 216 has 64 bytes of EEPROM which may be used to store configuration data such as text for a startup s
12. gure 3 L6 set for 2400 bps factory default connected If you are using a serial port other than coml modify the OPEN instruction accordingly Program uses ctrl P position ASCII 16 and ctril L clear screen ASCII 12 OPEN COM1 2400 N 8 1 CD0 CS0 DSO FOR OUTPUT AS 1 Open the serial port PRINT 1 CHRS 12 Hell Now move to the middl PRINT 1 CHR 16 CHRS INPUT Press Enter XS o World Clear screen show message of line 2 position 21 64 21 85 and print 85 Line 2 Print in middle of line 2 Wait for a key press PRINT 1 CHRS 12 Goodbye Clear screen say bye Dimensions and Specifications Additional information not covered by this manual schematic more program examples configuration downloading utility developer program etc may be obtained from www seetron com You may also request hardcopy by mail Dim A y offset edge to hole ctr top amp btm 2 50 B y pcb height 50 00 C y hole spacing inside pair 31 00 D y screen opening 16 20 k E y character size 5 94 F x character size 2 95 G x offset pcb edge to hole ctr 2 50 L H xscreen frame 71 00 x screen opening 66 00 J x hole spacing 75 00 M Kx pcb width 80 00 Ly frame height 25 00 M y hole spacing outside pair 45 00 N x offset hole ctr to pin 1 5 50 Ox offset between pads 2 54 Y mounting hole diameter 2
13. ic level inverted 12 S2b GND 5 Bell Out 25 mA max 13 S3a Switch input S3 6 GND Ground for pins 7 and or 8 14 S3b GND 7 Config Test Ground to configure 15 S4a Switch input S4 8 Force 9600 Ground to force 9600 bps 16 S4b GND A Do not reverse 5V and GND even momentarily Reversed power will destroy the electronics Do not exceed 5 5V into 5V Overvoltage will damage the module or shorten its life Quick Checkout and Contrast Adjustment Refer to figure 1 Temporarily connect pins 6 and 7 together Apply power to pins 1 and 2 ensuring proper polarity as indicated in table 1 When power is applied the LCD will display the firmware version and factory configured baud rate as shown in figure 1 Actual text may vary The LCD contrast is set at the factory You may adjust it by turning the contrast control with a small flat blade screwdriver The baud rate shown on the test screen 2400 bps is the factory setting indicates the baud rate stored in the LM 216 s configuration memory This is the serial data rate the module will use in normal operation unless overridden by grounding pin 8 See Configuration EEPROM NOTE When you are done with checkout disconnect power and remove the connection between pins 6 and 7 This connection is for test and configuration and must be removed for normal operation Hookup for Use Figure 2 shows how to connect serial O and accessories to the LM 216 You may operate the module without any
14. itch closed Null control ASCII 0 Nulls are ignored sending a null to the display has no effect However unlike other unused codes nulls are not even stored in the display buffer They may be used as a brief time delay whose length depends on the baud rate 1200 bps 8 33 ms delay 2400 bps 4 16 ms 4800 bps 2 08 ms 9600 bps 1 04 ms Cursor Home control A ASCII 1 Move the cursor to the first character position of the first line Hide Cursor control D ASCII 4 Hide the cursor either type blinking or underline Show Underline Cursor control E ASCII 5 Show a non blinking underline cursor at the printing location Show Blinking Block Cursor control F ASCII 6 Show a blinking block cursor at the printing location Bell control G ASCII 7 Pulse pin 5 low for approximately 100 ms to beep piezo buzzer Backspace control H or backspace key ASCII 8 Move the cursor back one space and erase the character in that space Horizontal Tab control I or Tab key ASCII 9 Move the cursor forward to next multipleof four column Smart Linefeed control J ASCII 10 Move cursor down one line If immediately preceded by carriage return linefeed is ignored Vertical Tab control K ASCII 11 Move cursor up one line 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 e www seetron com User s Manual ILM 216 v1 2 07 00 pg 5
15. its O 4 and symbol 0 row 1 bits 0 2 30 Settings Bits 1 and 0 set the baud rate 00 9600 01 4800 10 2400 11 1200 Power on delay Bit 2 determines backlight status at startup 0 OFF 1 ON Bit 3 determines screen status at startup 0 blank 1 EEPROM text bytes 32 63 Bits 4 through 7 form a four bit value 0 15 that sets a startup delay in units of 2 5 seconds 0 to 37 5 seconds After power is applied the ILM 216 ignores its serial input for the startup delay time firmware v28 and higher 31 Key delay Bits 0 3 form a four bit value 0 15 that sets the delay in 0 5 ms units before response to an ESC K keypad query Delay lets slow computers prepare for serial receive Bits 4 7 are unused 32 63 Screen text A 32 byte string that is written to the screen at startup if bit 3 of byte 30 above is 1 or whenever an ESC E 1 instruction is received Factory Settings The LM 216 ships with default settings loaded into its EEPROM The custom characters are as shown in figure 5 the default baud rate is 2400 bps which may be changed to 9600 by shorting pin 8 to pin 6 or other GND at startup the backlight is off and the screen is blank the delay after an ESC K key read is set to 2 5 ms startup delay is 0 and the screen text displayable by ESC E 0 is set to Scott Edwards Electronics Inc or custom text requested by a distributor s 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott
16. the value 5 00000101 binary Control codes not listed in the table are ignored by the LM 216 and have no effect s 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com User s Manual ILM 216 v1 2 07 00 pg 4 Table 2 Display Control Codes Function Code ASCII Null ignored prior to buffer ctrl 0 Cursor home ctrl A 1 Hide cursor ctrl D 4 Show underline cursor ctrl E 5 Show blinking block cursor ctrl F 6 Bell pulse piezo buzzer output ctrl G 7 Backspace ctrl H 8 Horizontal tab cursor to next multiple of 4 column ctrl l 9 Smart linefeed cursor down one line ctrl J 10 Vertical tab cursor up one line ctrl K 11 Formfeed clear screen ctrl L 12 Carriage return ctrl M 13 Backlight on ctrl N 14 Backlight off ctrl O 15 Accept cursor position entry ctrl P 16 Format right aligned text ctrl R 18 Escape ESC start multipart instruction ctrl 27 e Define graphics character ESC D n BO B1 B2 B3 B4 B5 B6 B7 where nis the character number 0 7 and BO B7 are bytes mapping the pixels Transfer data from EEPROM to display ESC E n where nis 0 or 1 with O meaning text screen and 1 meaning symbols e Read the keys S1 S4 and report serially ESC K n where n sets format O single byte bits 0 3 correspond to Si S4 and 1 four bytes consisting of text characters 0 and 1 a 1 means sw
17. ver a defect we will at our option repair replace or refund the purchase price Return the product with a description of the problem We will return your product or its replacement via standard shipping Expedited shipping is available at the customer s expense e Note Abusing the module connecting reversed power or attempting to repair or modify it voids this warranty Trademarks and Copyrights Windows and MS DOS are registered trademarks of Microsoft Corporation BASIC Stamp is a registered trademark of Parallax Inc All trademarked names referenced herein are the property of their respective holders This manual in its entirety is copyright Scott Edwards Electronics Inc 1998 99 s 1939 S Frontage Road Suite F Sierra Vista AZ 85635 USA Scott Edwards Electronics Inc ph 520 459 4802 fax 520 459 0623 www seetron com User s Manual ILM 216 v1 2 07 00 pg 2 Pinout of the ILM 216 Connections to the LM 216 are made through a row of solder pads located at the bottom edge of the module figure 1 Table 1 lists the pads functions contrast control darker pin 1 pin 16 pin 16 pin 1 Figure 1 Location of pins and contrast control Table 1 Pins and Functions Pin Function Notes Pin Function Notes 1 GND Do not reverse power A 9 Sia Switch input S1 2 5V Do not reverse power 10 Sib GND 3 Serial In RS 232 or 5 volt logic 11 2a Switch input S2 4 Serial Out 5 volt log
Download Pdf Manuals
Related Search
Related Contents
Télécharger PDF Estufa de cuarzo 2 barras Crena Manual do Usuário Journal - Les cordées In Win BL672 HiPath CAP Common Application Platform SXD-R200SS 取扱説明書 COBY electronic CT-P9340 User's Manual Generateur d`hemodialyse - Artis/Evosys - Gambro Copyright © All rights reserved.
Failed to retrieve file