Home

ezLCD-002 Manual

image

Contents

1. N TEXT_EAST PRINT_ STRING ex NULL TEXT_S D Text NULL PRINT t East OUTH STRING South TEXT W EST Tex NULL PRINT_ STRING t West 61 nex nex nex nex nex nex nex nex nex nex Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 26 TEXT NORTH Description Set the orientation of the text as shown on the picture below Class Single Byte Commands Code TEXT NORTH 60hex 96dec ASCII TEXT EAST 61hex 97dec a ASCII TEXT SOUTH 62hex 98dec b ASCII TEXT WEST 2Fhex 99dec c ASCII 7 6 5 4 3 2 1 0 TEXT NORTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT EAST Byte 0 Command 7 6 5 4 3 2 1 0 TEXT_SOUTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT WEST Byte 0 Command Note H EXT NORTH is the default text orientation Text North N o gt x m x D e o ynos 1x91 239 159 See Also PRINT CHAR PRINT STRING SELECT FONT The following seguence will print the text pattern similar to the one on the picture above SET XY 25 hex 60 60 dec 10 10 dec SELECT FONT 2B hex 0 0 dec TEXT NORTH 60 hex PRINT STRING 2D hex Text North 49 Rev 2 1 2007 EarthLCD com 50 ezLCD 002 ULL N TEXT_EAST PRINT_ STRING ex NULL TEXT_S D Text NULL PRINT t East OUTH STRING South TEXT W EST Tex NULL
2. be used Baudrate 115200 bps No of Stop Bits 1 Parity Off Handshake None Drivers Software and Documentation The ezLCD CD includes the CP2101 USB drivers The latest documentation software and drivers are provided by the Silicon Laboratories Inc Rev 2 1 2007 EarthLCD com 12 ezL CD 002 2 36 12C 3V Ref is a reference voltage generated by the ezLCD and it 3V Ref should not be used as a power 2 x Rp GND cu1 cng ena When fsc lt 100kHz PWR BATT USB1 i 1000 Max RP eb When fsc gt 100kHz Min Ro 975 O 300 Cb 10 kQ ko Max Rp Cb pF capacitance of one bus line Max C b 400pF 10 feet or 3 meters Figure 9 ezLCD 002 I2C Interface Operation Connector CN2 The ezLCD 002 I2C Interface uses 3 wires e SCL Clock e SDA Data e GND Pull Up Resistors The pull up resistors Rp should be connected to 3V The ezLCD 002 outputs 3V reference voltage which may be used as a pull up source as it is shown on the Figure 9 above Protocol e Configuration The ezLCD 002 is configured as an I2C Slave e Address The default I2C address of the ezLCD 002 is 111 dec 6F hex Handshake The ezL CD 002 responds with NACK non acknowledge if its 1024 byte command circular buffer runs out of space Reminder I2C address byte consists of the 7 address bits and the R W bit in LSB This means
3. ASCII 239 159 7 6 5 4 PUT_BITMAP Byte 0 Command Byte 1 Bitmap Width Byte 2 Bitmap Height Byte 3 pixel at X Y Byte 4 pixel at X 1 Y 3 2 1 0 e pixel Byte width 2 pixel at X width 1 Y pixel Bytewidth 3 pixel at X Y 1 Byte height x width 2 pixel at X width 1 Y height 1 Note The total number of bytes is width x height 3 See Also SET XY SET COLOR PICTURE The following sequence will put 4x3 bitmap at x 60 y 80 SET XY 25 BL hex x 60 dec y 80 dec PUT BITMAP 2E hex width 4 dec height 3 dec l Rev 2 1 2007 EarthLCD com ezL CD 002 pixel x 60 y 80 pixel x 61 y 80 pixel x 62 y 80 pixel x 63 y 80 TOTAL pixel x 60 y 79 4x 3 3 15 bytes pixel x 61 y 79 pixel x 62 y 79 pixel x 63 y 79 pixel x 60 y 78 pixel x 61 y 78 pixel x 62 y 78 pixel x 63 y 78 11112113 14 Rev 21 2007 EarthLCD com ezL CD 002 2 5 19 PUT ICON Description Displays the icon with it s upper left corner positioned at the Current Position The icon is read from the ezLCD ROM Use the ezLCDrom utility to store icons in the ez CD ROM Class Double Byte Command Code 57hex 87dec W ASCII e 0 0 Current Position 239 159 7 6 5 4 3 2 1 0 PUT_ICON Byte 0 Command Seon 1b Bet oni See Also SET XY The foll
4. Quick Start 1 1 Guick Start Install USB Drivers e Run CP2101 Drivers exe which is located in the Drivers USB directory of the ezL CD CD e Connect ezL CD to your computer through the USB cable e Proceed with Plug and Play installation The ezLCD COM port assignment e Connect ezLCD to your computer through the USB cable e The ezLCD COM port assignment should be shown in th Device Manager as CP2101 USB to UART Bridge Controller COMx where x is the COM port number Power ON OFF buttons of the ezLCD 002 e The ezLCD 002 power can be turned ON by pressing the ON pushbutton on the back e The ezLCD 002 power can be turned OFF by pressing the OFF pushbutton on the back e The ezLCD power options are describet in the chapter Power Supply amp Distribution Touch Screen Make sure that the USB drivers are installed Connect ezL CD to your computer through the USB cable Verify the ezLCD COM port assignment Power ON the ezLCD Make sure that the ezLCD COM port is not opened by other applications Run ezLCDtch exe which is located in the Utilities ezLCDtch directory of the ezL CD CD Select the COM port assigned to the ezLCD Press the Open button The ezL CD touch screen taps should now be reflected by the ezLCDtch utility Example of sending commands to the ezLCD using a Windows Command Prompt Make sure that the USB drivers are installed Connect ezLCD to your computer through the USB cable Verify the ezLCD COM port assignmen
5. See Also SET XY BOX FILL The following sequence will draw the red rectangle SEJ ET COLOR 24 hex RED 00000111 bin SET XY 25 hex 95 95 dec 40 10 dec BOX 42 hex 180 180 dec X 2 120 120 dec Y 2 23 Rev 2 1 2007 EarthLCD com 24 ezL CD 002 2 5 3 BOX FILL Description Draws a rectangle filled with Current Color Class Multi Byte Command Code 43hex 67dec C ASCII 7 6 5 4 3 2 1 0 BOX_FILL Byte 0 Command e 0 0 Current Position 239 159 e See Also SET XY BOX The following sequence will draw the rectangle filled with blue color SET_COLOR 24 hex RED 11000000 bin SET XY 25 hex 95 95 dec 40 10 dec BOX FILL 43 hex 180 180 dec X 2 120 120 dec Y 2 Rev 21 2007 EarthLCD com ezL CD 002 25 2 5 4 CIRCLE_R Description Draws a circle in Current Color at Current Position Class Double Byte Command Code 29hex 41dec ASCII 7 6 5 4 3 2 1 0 CIRCLE R Byte 0 Command Li ragius Bytet aug See Also SET XY SET COLOR he following sequence will draw a green circle in the middle of the screen SET_COLOR 24 hex GREEN 00111000 bin SET_XY 25 hex 120 120 dec 80 80 dec CIRCLE_R 29 hex 60 60 dec Rev 2 1 2007 EarthLCD com 26 ezL CD 002 2 55 CIRCLE R FILL Description Draws a circle in Current Color at Current Position filled with Current Color Class Double Byte Command C
6. PRINT_ STRING t West 61 nex nex nex nex nex nex nex nex nex nex Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 27 TEXT SOUTH Description Set the orientation of the text as shown on the picture below Class Single Byte Commands Code TEXT NORTH 60hex 96dec ASCII TEXT EAST 61hex 97dec a ASCII TEXT SOUTH 62hex 98dec b ASCII TEXT WEST 2Fhex 99dec c ASCII 7 6 5 4 3 2 1 0 TEXT NORTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT EAST Byte 0 Command 7 6 5 4 3 2 1 0 TEXT_SOUTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT WEST Byte 0 Command Note H EXT NORTH is the default text orientation Text North N o gt x m x D e o ynos 1x91 239 159 See Also PRINT CHAR PRINT STRING SELECT FONT The following seguence will print the text pattern similar to the one on the picture above SET XY 25 hex 60 60 dec 10 10 dec SELECT FONT 2B hex 0 0 dec TEXT NORTH 60 hex PRINT STRING 2D hex Text North 51 Rev 2 1 2007 EarthLCD com 52 ezLCD 002 ULL N TEXT_EAST PRINT_ STRING ex NULL TEXT_S D Text NULL PRINT_ t East OUTH STRING South TEXT W EST Tex NULL PRINT_ STRING t West 61 nex nex nex nex nex nex nex nex nex nex Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 28 TEXT WEST Descrip
7. y 159 NA er Byte 3 x 2 y 159 bi bO g2 gi gO r2 ri Byte 240 x 239 y 159 U SARS Byte 241 x 0 y 158 bi b0 g2 gi Ete c c Cu AA UCI Byte 38399 x 238 y 0 JERE c c Cu AA Byte 38400 x 239 y 0 See Also SET XY SET COLOR PUT BITMAP Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 12 PLOT Description Plots a point at Current Position in Current Color Class Single Byte Command Code 26hex 38dec amp ASCII 7 6 5 4 3 2 1 0 PLOT Byte 0 Command See Also SET XY SET COLOR The following sequence will put the blue point in the middle of the screen SET_COLOR 24 hex BLUE 11000000 bin SET_XY 25 hex 120 120 dec 80 80 dec PLOT 26 hex Rev 2 1 2007 EarthLCD com 34 ezLCD 002 2 5 13 PLOT XY Description Plots a point in Current Color at specified position Class Multi Byte Command Code 27hex 39dec ASCII 7 6 5 4 3 2 1 0 PLOT XY Byte 0 Command x7 x6 x5 x4 x3 x2 x1 x0 Byte 1 x y7 y6 y5 y4 y3 y2 yi y0 Byte 2 y Note The screen size is 240x160 However the valid x and y ranges are 0 255 239 159 See Also SET XY SET COLOR PLOT The following seguence will put the red point in the middle of the screen SET COLOR 24 hex RED 00000111 bin PLOT XY 27 hex 120 120 dec 80 80 dec Rev 21 2007 EarthLCD com ezL CD 002 35 2 5 14 PRINT CHAR Description Prints a character at Current P
8. Draw the circle with the radius of 60 pixels Data sent to the ezLCD Columns Value and Format Mnemonic Value Format Comment SET_COLOR 24 hex Set the drawing color to green 00111000 bin green SET XY 25 hex Set the drawing position to 120 120 dec x column 120 80 80 dec y row 80 CIRCLE R 29 hex Draw the circle with the radius of 60 60 dec 60 pixels Rev 2 1 2007 EarthLCD com 4 ezL CD 002 2 3 Hardware 8 Interfaces 2 3 1 Block Diagram The ezLCD 002 Hardware Block Diagram is shown in Figure 4 below LCD il ZA V2 LCD_ON 1 0 Connectors A ae l gt gt eg 3e L co NNT gt mM DC DC Converter 29 4912MHz e o 3 6 7V Figure 4 ezLCD 002 Block Diagram The ezLCD 002 receives commands through any of the available interfaces RS232 USB I2C SPI and Parallel The MPU ATmega128L processes the received data and writes the resulting pixels into the Video RAM of the SED1375 LCD controller The SED1375 generates the Digital CRT video signals using the data stored in the Video RAM Rev 2 1 2007 EarthLCD com ezLCD 002 5 2 3 2 Pin Configuration CN2 k EXT PWR ON OFF one y 4EXT_PWR EXT_PWR nr fa ON OFF PWR LIGHT ON i 56 3V Ref GND Co RS232TX ap m D7 E RS232RX NE D5 BATT D2 D3 EXT_PWR DO si wet lt son 7 SCL ON OFF S LRX EXT P
9. ezL CD 002 2 6 3 Saving Firmware file The ezL CD Firmware file will be written in Intel Hex format and should have an extension hex To save the modified Firmware on disk Firmware B Load Save 1 Glick on Firmware Save 2 Enter the filename and then press Save in the file save dialog Rev 21 2007 EarthLCD com ezL CD 002 2 6 4 Programming ezL CD To program the ezL CD with the modified Firmware Program ezL CD Press Program ezL CD This will e open a console window e load a new firmware into the ezL CD Example of messages displayed by the console during the successful programming Detecting AVRISP found on COM1 Reading FLASH input file OK Setting device parameters serial programming mode OK Entering programming mode OK Erasing device OK Programming FLASH using block mode 100 OK Leaving programming mode OK 59 Rev 2 1 2007 EarthLCD com 60 ezL CD 002 2 6 5 2 6 5 1 How To Add a new font to the ezL CD To create and add a new font to the ezL CD 1 Loadthe ezL CD Firmware from the disk by pressing the button 2 Specify font parameters in the Font Lab Select 3 Select the ASCII Range of the font by pressin button a Process 4 Press _____ _ ___ lio convert the selected TTF font into ezL CD font Upon successful conversion the new font will be displayed on the Scratchpad 5 You can save the font by pres
10. that the address byte should be e 222 dec DE hex when sending commands to the ezL CD e 223 dec DF hex when reading the Touch Screen data Rev 21 2007 EarthLCD com ezL CD 002 13 2 3 7 Touch Screen o a D co gt 01 op N 00 01 02 03 04 05 06 07 20 21 22 23 24 30 31 32 33 34 35 41 42 43 44 45 46 ss s ss su us 87 7 6 5 4 3 2 1 0 Pen Down Byte 0 y2 yt y0 O x2 xi x0 Row Column Byte Figure 10 ezL CD 002 Touch Screen Organization Operation The Touch Screen data is transmitted by the ezL CD through RS 232 USB and 12C interfaces The ezL CD 002 Touch Screen is divided into 5 rows and 7 columns The Touch Screen operation is event driven When the Touch Screen is pressed the ezLCD sends the Pen Down Byte which contains the coordinates of the pressed area The format of the Pen Down Byte is shown on the drawing above The Pen Down Byte is retransmitted if the coordinates have been changed while the screen is pressed When the Touch Screen is released the ezLCD sends the Pen Up Byte FF hex RS 232 and USB Touch Screen data transmission is triggered by the Touch Screen event see above 12C Since 1 Thel2C communication have to be initiated by the Master and 2 ezLCD 002 is configured as an I2C Slave the ezLCD 002 Touch Screen data transmission is triggered by the I2C read operation when the ezL CD 002 is address
11. 23hex 35dec ASCII 7 6 5 4 3 2 1 0 LIGHT OFF Byte 0 Command See Also LIGHT ON The following seguence will turn off the screen light LIGHT OFF 23 hex Rev 2 1 2007 EarthLCD com 30 ezL CD 002 2 5 9 LIGHT ON Description Turns on the screen light Class Single Byte Command Code 22hex 34dec ASCII 7 6 5 4 3 2 1 0 LIGHT_ON Byte 0 Command See Also LIGHT OFF The following sequence will turn on the screen light LIGHT_ON 22 hex Rev 21 2007 EarthLCD com ezL CD 002 2 5 10 LINE TO XY Description Draws aline in Current Color from the Current Position to the to specified position Class Multi Byte Command Code 28hex 40dec ASCII 7 6 5 4 3 2 1 0 LINE TO XY Byte 0 Command x7 x6 x5 x4 x3 x2 x1 x0 Byte1 x y7 y6 y5 y4 y3 y2 yi y0 Byte 2 y Note The screen size is 240x160 However the valid x and y ranges are 0 255 239 159 e See Also SET XY SET COLOR PLOT The following sequence will draw a red line across the screen SET_COLOR 24 hex RED 00000111 bin SET XY 25 hex 0 0 dec 0 0 dec LINE TO XY 28 hex 239 239 dec 159 159 dec Rev 2 1 2007 EarthLCD com 32 ezLCD 002 2 5 11 PICTURE Description Puts a bitmap picture over the entire screen Class Multi Byte Command Code 2Ahex 42dec ASCII 7 6 5 4 3 2 1 0 PICTURE Byte 0 Command NA er Byte 1 x 0 y 159 ZNA CH ie Byte 2 x 1
12. D 002 15 2 4 1 1 Operating System Start Address 00000 hex End Address 05FFF hex Size 24kB Upgradable Yes Customizable No The Operating System segment holds all of the ez CD 002 operational software e ezLCD Command Processor e O routines for all the interfaces e LCD control e Graphic routines The Operating System segment is modified by each Firmware Upgrade segment is upgradable This segment cannot be customized by the ezLCDrom utility segment is not customizable Rev 2 1 2007 EarthLCD com 16 ezLCD 002 2 4 1 2 Bitmaps Start Address 06000 hex End Address 0FFFF hex Size 40KB Upgradable Yes Customizable Yes The Bitmaps segment is used for the storage of the user bitmaps icons The bitmaps are stored in compressed form by the ezLCDrom utility They can be displayed on the screen by using the PUT ICON command The Bitmaps segment is modified by each Firmware Upgrade segment is upgradable This segment can be customized by the ezLCDrom utility segment is customizable Note The contents of this segment is overwritten by each Firmware Upgrade Customization of the firmware file by the ezLCDrom utility should be done before the actual ezLCD 002 upload Rev 21 2007 EarthLCD com ezL CD 002 17 2 4 1 3 Fonts Start Address 10000 hex End Address 1DFFF hex Size 56kB Upgradable Yes Customizable Yes The Fonts segment is used to sto
13. T capable of sinking up to 4A The source of the IRLML2502 is connected to GND This pin may be used to drive hi power infrared transmitter The gate of the IRLML2502 is connected to PB7 pin of the ATmega128L LIGHT ON D7 CN1 CN3 Input Light On signal Active Lo When connected to GND turns on the LCD front light The function of this signal is identical to LIGHT ON and LIGHT OFF commands Min Gnd Max 3V or Open LRX PEO CN2 Input RS232 TTL Input Min 0V Max 3V LTX PE1 CN2 Output RS232 TTL Output Min 0V Max 3V MISO PB3 CN2 IO SPI Master Input Slave Output signal Min OV Max 3V MOSI PB2 CN2 IO SPI Master Output Slave Input signal Min 0V Max 3V N C N A CN2 USB1 N A Not Connected ON OFF N A CN1 CN2 Input 3 6 to 7V turns ON the ezLCD 002 power CN3 0 to 1V turns OFF the ezLCD 002 power Open leaves the ezL CD 002 power unchanged Tmin ims Rin gt 250 kOhm RESET RESET CN2 Input Hardware reset Active low Min 0V Max 3V or Open This table is continued on the next page Rev 2 1 2007 EarthLCD com ezL CD 002 Pin Name ATmega128 Pin Names Connector Type Description RS232RX N A CN1 CN3 Input RS232 Receive Min 12V Max 12V RS232TX N A CN1 CN3 Output RS232 Transmit Min 12V Max 12V SCK PB1 CN2 O SPI Serial Clock Min 0V Max 3V SCL PDO CN2 O I2C Seri
14. WR E2 LIGHT_ON USB1 o E4 RS232TX i BUSY RS232RX 55 SS BATT SCK GND Figure 5 LCD 002 Connectors The table below describes the pins and signals of the ezLCD 002 Since the ezLCD 002 uses the ATmega128 microcontroller by Atmel the table also shows the corresponding ATmega128 names for applicable pins Pin ATmega128 Connector Type Description Name Pin Names 3V Ref N A CN2 Output O reference voltage may be used as a pull up source 12C etc It SHOULD NOT be used as a power Source 5V N A USB1 Input Pwr USB VBUS Signal EXT_PWR N A CN1 CN2 Input Pwr External power voltage CN3 PWR Min 3 6V Max 7 0V ACK PE7 CN2 Output Acknowledge signal of the Parallel Interface Active low Min 0V Max 3V BATT N A CN1 CN Input Pwr Lithium lon battery 3 6V BATT BUSY PE6 CN2 Output Busy signal of the Parallel Interface Active high Min 0V Max 3V This table is continued on the next page Rev 2 1 2007 EarthLCD com ezLCD 002 Pin ATmega128 Connector Type Description Name Pin Names DO D7 PFO PF7 CN2 Input Data inputs of the Parallel Interface Min 0V Max 3V or Open DM N A USB1 V O USB Data Minus DP N A USB1 V O USB Data Plus E2 E4 PE2 PE4 CN2 O Spare GND GND CN1 CN2 Gnd Ground CN3 USB PWR BATT IR ON N A CN1 Output Drain of the IRLML2502 N Channel MOSFE
15. al Clock Min OV Max 3V SDA PD1 CN2 O 2C Serial Data Min OV Max 3V SS PBO CN2 SPI Slave Select This signal is used only when the ezLCD 002 is configures as SPI Slave Active low Min 0V Max 3V Note During reset and power up this signal is used as PGM STROBE PE5 CN2 Input Strobe signal of the Parallel Interface Active low Min 0V Max 3V or Open Rev 2 1 2007 EarthLCD com 8 ezLCD 002 2 3 3 Power Supply 8 Distribution VIN VO BATT LCD_ON Signal from SED1375 T on 3 8V Regulator CN1 CN2 CN3 PWR PH BAT EXT_PWR Battery ka 3V CN1 CN3 BATT Charger ON Regulator CND DH V 5V 7 GND 3V LCD Displa Eb Inp Power VIN VO pay ON 1 3V LIGHT ON Signal Button VY oN Regulator GND fromiMEY 10k ON OFF Ok V 3V Ref CN1 CN2 CN3 OFF CN2 O Button 8 POWER_ON ve GND cn cN2 cN3 MPU Output cc PWR BATT USB1 3V Main V V POWER SENSE Power MPU Input Figure 6 ezLCD 002 Power Supply and Distribution Power Sources The ezL CD 002 can be powered by any of the following sources e External Power source 3 6 to 7V e USB 5V e Lithium lon battery At least one of the above power sources should be connected to the ezLCD 002 Power ON OFF When any of the above power sources is connected the ezLCD 002 may be po
16. atchpad pres i A Save ezLCD graphical FontName Height From ont to disk Scratchpad presentation of the Temporary stores loaded firmware ezLCD Font for Load ezLCD B Ee copying into Font List or saving to the disk Font from disk Wht E Save Fonts can be loaded from disk or copied P fromthe Font Lab or Arial Font List Height of the Letter M in Pixels 12 z i Font Lab ASCII From 20 hex St Bold UL a into ezl ont Available AA ER FEN Convert which is then oe selected font copied to the Bite obo pour Scratchpad Select ASCII Range Fos l ez Program ezLCD Load Firmware Save modified ait modified from disk Firmware Firmware Rev 2 1 2007 EarthLCD com ezL CD 002 57 2 6 2 Loading Firmware file from disk The ezLCD Firmware file is written in Intel Hex format and has an extension hex To load the Firmware into ezLCDrom Eiei DySave Upon loading the Firmware from disk ezLCDrom displays the Map of the ez CD ROM 66666 Where 1 Click on Firmware Load 2 Select Firmware file 00000 O3FFF 16kB 04660 Space used by system and software Available space left for the system updates 04000 OFFFF 48kB Space used by bitmaps Available space left for new bitmaps 10000 1DFFF 56kB Space used by fonts Available space left for new fonts 16666 1E000 1FFFF 8kB Boot space 1E 666 1FFFF Rev 2 1 2007 EarthLCD com 58
17. d Bye 1 Y Note The screen size is 240x160 However the valid Y range is O 255 239 159 e See Also H LINE SET XY The following seguence will draw the vertical blue line from 95 10 to 95 110 S ET COLOR 24 hex BLUE 11000000 bin SET XY 25 hex 95 95 dec 10 10 dec V LINE 41 hex 110 110 dec Rev 2 1 2007 EarthLCD com 56 ezL CD 002 2 6 2 6 1 ezL CDrom Utility Overview The ezLCDrom is a utility which allows the user to customize the Firmware of the ezLCD 002 by 1 Adding and removing fonts 2 Adding and removing bitmaps or icons 3 Changing ezLCD settings like serial baudrate pin assignments etc Note In this preliminary version only 1 is implemented eral Drom EEA Fonts ezL CD Font List Bitmaps A 64600 0 PA SN Arial 14 T 0x20 OxFF 3134 ae 2 Arial B_14 14 0x20 OxFF 3272 3 Times New Roman Bold 36 34 0x20 OxFF 20196 4 Forte_26 26 0x20 MFF 11946 A N Font List Available 5 Script MT Bold B_29 29 0x20 OxFF 12526 Shows currently 6 Copy Font from 23 0x20 0x39 675 selected fonts for Rearange the 7 4 Scratchpad Copy v r 0x20 0x39 316 ezL CD programming order of the into Font List ont List into Changes in the Font List Scratchpad Font List are y reflected on the ezL CD 001 gt vy g Pe copy Remove Brass ezLCD ROM Map ROM Map 16666 AJ co ezLCD Font a Shows a live Scr
18. dec 80 80 dec PRINT CHAR 2C hex M 4D hex Rev 2 1 2007 EarthLCD com 44 ezL CD 002 2 5 22 SET BG COLOR Description Sets the Background Color for the following instructions PRINT CHAR BG PRINT STRING BG Class Double Byte Command Code 34hex 52dec 4 ASCII 7 6 5 4 3 2 1 0 SET BG COLOR Byte 0 Command Note The default NATURAL palette has the following color coding 7 6 5 4 3 2 1 0 bi bO g2 gi gO r2 ri rO See Also PRINT CHAR BG PRINT STRING BG The following sequence print Yellow LCD on the Navy background in the middle of a screen using font no 0 SET_BG_COLOR 34 hex VY 10000000 bin T_COLOR 24 hex LLOW 00111111 bin T XY 25 hex 120 dec 80 dec ECT FONT 2B hex 0 dec RINT STRING BG 3D hex Lit 4C hex hex D 44 hex ULL 0 hex El AONAA A gt o H Z U OHU KU Z o gt U Rev 21 2007 EarthLCD com ezL CD 002 2 5 23 SET COLOR Description Sets the Current Color Class Double Byte Command Code 24hex 36dec ASCII 7 6 5 4 3 2 1 0 SET_COLOR Byte 0 Command Note The default NATURAL palette has the following color coding 7 6 5 4 3 2 1 0 bi bO g2 gi gO r2 ri rO See Also CLS PLOT The following sequence will fill the whole display with green SET_COLOR 24 hex GREEN 00111000 bin CLS 21 hex Rev 2 1 2007 EarthLCD com 46 ezL CD 002 2 5 24 SET XY Desc
19. e Adding the Scratchpad font to the Font List e Loading an ezLCD font from the disk Scratchpad ASCII Arial 18 18 0x20 OxFF 6258 Load Font Save Font Where Font Name Name of the Scratchpad font this is obvious Height Distance in ezLCD pixels from the lowest point to the highest point of the font For example 8 ASCII From Limits of the ASCII Range Letters outside the ASCII Range will and ASCII To not be drawn by the ezLCD Minimizing the ASCII Range saves ezLCD ROM space Size Number of bytes occupied by font Load a font from the disk Save the Scratchpad font on the disk Save Font ezLCD Font List Scratchpad Operations Add the Scratchpad font to the end of the ezLCD Font List v Copy the selected font to the Scratchpad where it can be saved aa to the disk Font Lab Scratchpad Operations Generate a new font and put it on the Scratchpad a Process Rev 21 2007 EarthLCD com ezL CD 002 65 2 6 6 3 FontLab Font Lab is used to convert TTF fonts into ezL CD fonts The converted font is moved to the Scratchpad Arial Height of the Letter M in Pixels 12 8 rocess ASCII From 20 hex ject Bold ASCII To FF hex Itallic Where Height of the Letter M in Pixels 12 Letter M is used as a common reference to specify the font height Usually the font height will be bigger then letter M since it is defined as the dista
20. e available interfaces Rev 21 2007 EarthLCD com ezL CD 002 21 2 5 1 ARC Description Draws an Arc in Current Color with the center at Current Position starting on Begin Angle and ending on the End Angle Class Multi Byte Command Code 2Fhex 47dec ASCII 7 6 5 4 3 2 1 0 Byte 0 Command radius Byte ais Byte 2 Arc Begin Angle See Also SET XY SET COLOR CIRCLE R Angle Coding The angle range is from 0 to 255 To transform degrees to ARC angle units Angle_lcd Angle_deg x 32 45 For example 32 45 64 90 128 180 192 270 0 0 360 The angle is drawn clockwise with the zero positioned at the top of a screen as it is shown on the picture below Current Position 270 192 pete pa 809 28 239 159 The following sequence will draw a green arc from 45 to 225 degrees with the center positioned in the middle of a screen SET_COLOR 24 hex Rev 2 1 2007 EarthLCD com 22 ezLCD 002 ET XY 20 80 HU 3 60 32 160 00111000 bin 25 hex 120 dec 80 dec 2F hex 60 dec radius 32 dec begin angle 45 degrees 160 dec end angle 225 degrees Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 2 BOX Description Draws a rectangle Class Multi Byte Command Code 42hex 66dec B ASCII 7 6 5 4 3 2 1 0 BOX Byte 0 Command e 0 0 Current Position 239 159 e
21. ed Ref I2C Only the last recorded Touch Screen byte is sent Pen Down or Pen Up byte Master should be periodically polling ezLCD 002 for the new data How to read the touch using I2C 1 Master Sends START then ezL CD address byte with RW bit set 111 2 1 223 DF hex 2 Slave ezL CD Responds with ACK and sends the last touch screen data Pen Down or Pen Up byte 3 Master Sends ACK or NACK and STOP Notes ezLCD sends always 1 byte per START STOP ezLCD switches to Not Addressed Slave mode after sends the data and receives ACK or NACK see 3 above Rev 2 1 2007 EarthLCD com 14 ezL CD 002 2 4 Firmware 2 4 1 Flash Memory 00000 A Operating System 06000 gt 5 5 Bitmaps z Q o z l N 10000 E gt IL a TD N E B Fonts ao 2 o oO o lt Bootloader R LUE ootloade A Figure 11 ezL CD 002 Flash Memory Map The non volatile memory flash ROM of the ezLCD 001 is divided into 4 segments 1 Operating System 2 Bitmaps 3 Fonts 4 Bootloader The ezL CD 002 firmware upgrade file consists of Operating System Bitmaps and Fonts segments Out of those Bitmaps and Fonts can be user modified by the ezL CDrom utility Software in the Bootloader segment is used for the firmware upgrades and customization The Bootloader permanently resides in the ezLCD 002 flash It is not affected by the firmware upgrades Rev 21 2007 EarthLCD com ezL C
22. m and To ezLCDrom will display the following pop up From To Cancel menu Press to confirm the new ASCII Range or press X Cancel to return without any modifications Rev 21 2007 EarthLCD com Index 67 Index 8 8 bit parallel 2 A ARC 21 ASCII 66 ASCII Fom 65 ASCII Range 66 ASCII To 65 ATmegai28 2 B Baudrate 11 Block Diagram 4 BOX 23 BOX_FILL 24 OC CIRCLE R 25 CIRCLE_R_FILL 26 CLS 27 CN1 11 Command Buffer 3 Command Interpreter 3 commands 2 Communication Parameters D Display 8 Drivers 11 EEPROM 11 ezL CD Font List 63 ezLCD 001 2 ezLCDrom 56 10 F Font 63 FontLab 65 fonts 63 FT232BM 11 H H LINE 28 Handshake 11 LCD 8 LCD controller 2 3 Light 8 LIGHT OFF 29 LIGHT ON 30 LINE TO XY 81 Linux 11 No of Stop Bits 11 Parity 11 PICTURE 32 PLOT 33 PLOT_XY 34 Rev 2 1 2007 EarthLCD com 68 ezLCD 002 Power 8 PRINT CHAR 35 PRINT CHAR BG 36 PRINT STRING 37 PRINT STRING BG 38 PUT BITMAP 39 R ROM 57 RS232 2 gt Scratchpad 64 SED1375 2 SELECT FONT 43 SET BG COLOR 44 SET COLOR 45 SET XY 46 SPI 2 ST TEXT 47 TEXT EAST 47 TEXT NORTH 47 TEXT SOUTH 47 TEXT WEST 47 VLINE 55 Video RAM 4 W Windows 11 Rev 2 1 2007 EarthLCD com
23. mware ezLCD Font List CET A TN o Fontax8 1 l rial 14 2 Arial B 14 14 0x20 OxFF 3272 3 Times New Roman Bold 36 34 0x20 OxFF 20196 4 Forte 26 26 0x20 OxFF 11946 5 Script_MT_Bold_B_29 29 0x20 OxFF 12526 6 Arial Narrow_B_23 23 0x20 0x33 675 Size 7 l rial B 11 11 0x20 0x39 316 co Erga 4 M Ed Remove A copy Where No Font Number used in the command SELECT FONT Font Name Name of the Font this is obvious Height Distance in ezL CD pixels from the lowest point to the highest point of the font For example Mg ASCII From Limits of the ASCII Range Letters outside the ASCII Range will and ASCII To not be drawn by the ezLCD Minimizing the ASCII Range saves ezLCD ROM space Size Number of bytes occupied by font Eg Rearrange the order of the fonts by moving the selected font up or down A Add the Scratchpad font to the end of the list v Copy the selected font to the Scratchpad where it can be saved a to the disk if Remove Remove delete erase the selected font from the list Rev 2 1 2007 EarthLCD com 64 ezLCD 002 2 6 6 2 Scratchpad Scratchpad is used as an interfacing buffer between the disk the ezL CD Font List and the Font Lab Scratchpad Output e Adding the Scratchpad font to the ezLCD Font List e Saving the Scratchpad font on the disk Scratchpad Input e Font Lab puts newly generated font on the Scratchpad
24. nce in ezLCD pixels from the lowest point to the highest point of the font as it is shown on the example below Mg However for example if the particular font contains only capital letters ASCII Range 41 to 5A hex i s height will be equal to the height of the letter M ASCII From 20 hex Select ASCII To FF hex This panel is used to specify the ASCII range of the font Letters outside the ASCII Range will not be drawn by the ezLCD Minimizing the ASCII Range saves ezLCD ROM space ASCII From Displays the bottom of the ASCII Range ASCII To Displays the top of the ASCII Range Selects the ASCII Range Select Described in Selecting ASCII Range a Process This button is used to start converting a TTF font into the ezL CD Font The converted font is moved to the Scratchpad Rev 2 1 2007 EarthLCD com 66 ezL CD 002 2 6 6 3 1 Selecting ASCII Range ASCII From 20 hex is ASCII To FF hex When the Select button is pressed the following form pop ups Ascii Table E3 e i e a a s e gt s s A n c n E r 0 o0 o o0 o o 0 0 o o o o o o o o mjo oo oo o oo ooo olojo ola From To Cancel mlololel gt ele o o v The above form displays the ASCII Table of the selected font The currently selected ASCII Range has a background color The limits of the ASCII Range may be modified by clicking on the table cell If there is a need to distinguish between Fro
25. ode 39hex 57dec 9 ASCII 7 6 5 4 3 2 1 0 CIRCLE R FILL Byte 0 Command radius Bytet Radi See Also SET XY SET COLOR The following sequence will draw a red filled circle in the middle of the screen SET_COLOR 24 hex RED 00000111 bin SET_XY 25 hex 120 120 dec 80 80 dec CIRCLE_R FILL 39 hex 60 60 dec Rev 21 2007 EarthLCD com ezL CD 002 2 5 6 CLS Description Clears screen by filling it with the Current Color Class Single Byte Command Code 21hex 33dec ASCII 7 6 5 4 3 2 1 0 Bye 0 Command See Also SET COLOR The following sequence will clear the screen SET_COLOR 24 hex WHITE 11111111 bin CLS 21 hex 27 Rev 2 1 2007 EarthLCD com 28 ezL CD 002 2 5 7 H_LINE Description Fast draws a horizontal line from Current Position to the column specified by the parameter Class Double Byte Command Code 40hex 64dec ASCII H_LINE Byte 0 Command Bye OO Note The screen size is 240x160 However the valid X range is 0 255 239 159 e See Also V LINE SET XY The following seguence will draw the horizontal green line from 20 60 to 170 60 S ET COLOR 24 hex GREEN 00111000 bin SET XY 25 hex 20 20 dec 60 60 dec H LINE 40 hex 170 170 dec Rev 21 2007 EarthLCD com ezL CD 002 2 5 8 LIGHT OFF Description Turns off the screen light Class Single Byte Command Code
26. osition Class Double Byte Command Code 2Chex 44dec ASCII 7 6 5 4 3 2 1 0 PRINT_CHAR Byte 0 Command Byte 1 ASCII Character See Also SELECT FONT PRINT STRING The following sequence will print black character M in the middle of the screen using font number 2 SELECT_FONT 2B hex 2 2 dec SET COLOR 24 hex BLACK 00000000 bin SET XY 25 hex 120 120 dec 80 80 dec PRINT CHAR 2C hex M 4D hex Rev 2 1 2007 EarthLCD com 36 ezL CD 002 2 5 15 PRINT CHAR BG Description Prints a character at Current Position on the background specified by SET BG COLOR command Class Double Byte Command Code 3Chex 60dec lt ASCII 7 6 5 4 3 2 1 0 PRINT CHAR BG Byte 0 Command Byte 1 ASCII Character See Also SELECT FONT SET BG COLOR PRINT STRING BG The following sequence will print white character M on a black background in the middle of the screen using font number 2 SELECT_FONT 2B hex 2 2 dec SET BG COLOR 34 hex BLACK 00000000 bin SET COLOR 24 hex WHITE alr bin SET XY 25 hex 120 120 dec 80 80 dec PRINI CHAR BG 3C hex M 4D hex Rev 21 2007 EarthLCD com ezL CD 002 37 2 5 16 PRINT STRING Description Prints null terminated String starting at Current Position Class Multi Byte Command Code 2Dhex 45dec ASCII 7 6 5 4 3 2 1 0 ASCII Byte n Last Character A ete net UL See Also SELECT FONT PRINT CHAR The foll
27. owing sequence will display an icon no 3 with it s upper left corner positioned at X 60 Y 43 SET_XY 25 hex 60 60 dec 43 43 dec PUT_ICON 57 hex 3 3 dec Rev 2 1 2007 EarthLCD com 42 ezL CD 002 2 5 20 PUT SF ICON Description Displays the serial flash icon with it s upper left corner positioned at the Current Position The icon is read from the ezLCD 002 1Mbyte Serial Flash Use the ezLCDflash utility to store icons in the ezLCD Serial Flash Class Double Byte Command Code 58hex 87dec X ASCII e 0 0 Current Position 239 159 e 7 6 5 4 3 2 1 0 PUT_SF_ICON Byte 0 Command See Also SET XY The following sequence will display a serial flash icon no 176 with it s upper left corner positioned at X 60 Y 43 SET ET XY 25 hex 60 60 dec 43 43 dec PUT SF ICON 58 hex 176 176 dec Rev 21 2007 EarthLCD com ezL CD 002 2 5 21 SELECT FONT Description Sets the Current Font Class Double Byte Command Code 2Bhex 43dec ASCII 7 6 5 4 3 2 1 0 SELECT FONT Byte 0 Command Note The following fonts are implemented Font O ezLCD Font 1 ezL CU Font 2 ezLCD Font 3 ezLCD Font 4 ezl D Font 5 ez LCD See Also PRINT STRING PRINT CHAR The following sequence will print black character M in the middle of the screen using font number 2 SELECT_FONT 2B hex 2 2 dec SET COLOR 24 hex BLACK 00000000 bin SET XY 25 hex 120 120
28. owing sequence will print violet sign LCD in the middle of the screen using font number 1 Byte 0 Command Byte 1 First Character Byte 2 Second Character ELECT_FONT 2B hex 1 dec _ COLOR 24 hex ET 11000100 bin XY 25 hex dec dec INT STRING 2D hex Y o o Ei M UODHHOBNNOHE ws oo w o D 0 X 2 U H U lt U HU ad ws 5 D x Gi H o 5 oO x Rev 2 1 2007 EarthLCD com 38 ezL CD 002 2 5 17 PRINT STRING BG Description Prints null terminated String starting at Current Position on the background specified by SET BG COLOR command Class Multi Byte Command Code 3Dhex 61dec ASCII 7 6 5 4 3 2 1 0 ASCII Byte 0 Command Byte 1 First Character Byte 2 Second Character Byte n Last Character Byte n 1 NULL See Also SELECT FONT SET BG COLOR PRINT CHAR BG The following sequence print Yellow LCD on the Navy background in the middle of a screen using font no 0 SET BG COLOR 34 hex NAV SET COLOR 24 hex YELLOW 00111111 bin SET XY 25 hex 120 120 dec 80 80 dec SELECT FONT 2B hex 0 0 dec PRINI STRING BG 3D hex TET 4C hex M 43 hex HE 44 hex NULL 0 hex 10000000 bin Rev 21 2007 EarthLCD com ezL CD 002 2 5 18 PUT BITMAP Description Puts Bitmap on the screen starting at Current Position then UP and RIGHT Class Multi Byte Command Code 2Ehex 46dec
29. re the screen fonts of the ezLCD 002 The following default fonts are implemented in the firmware Font O ezLCD Font 1 ezLCD Font 2 ezLCD Font 3 ezLCD Font 4 ez CD Font 5 ez LCD The above fonts can be modified or replaced by the ezLCDrom utility The Fonts segment is modified by each Firmware Upgrade segment is upgradable This segment can be customized by the ezLCDrom utility segment is customizable Note The contents of this segment is overwritten by each Firmware Upgrade Customization of the firmware file by the ezLCDrom utility should be done before the actual ezLCD 002 upload Rev 2 1 2007 EarthLCD com 18 ezLCD 002 2 4 1 4 Bootloader Start Address 1 000 hex End Address 1FFFF hex Size 8kB Upgradable No Customizable No Software in the Bootloader segment is used for firmware upgrades and customization The Bootloader permanently resides in the ezLCD 002 flash It is not affected by firmware upgrades More information about the Bootloader can be found in the Firmware Upgrade and ezLCDrom chapters The Bootloader segment cannot be modified by the Firmware Upgrade segment is not upgradable This segment cannot be customized by the ezLCDrom utility segment is not customizable Rev 21 2007 EarthLCD com ezL CD 002 19 2 4 2 Firmware Upgrade The firmware upload to the ezLCD 002 can be done through either the RS232 or USB interface EzLCD 002 must be r
30. ription Sets the Current Position Class Multi Byte Command Code 25hex 37dec ASCII Byte 0 Command Byte 1 x Byte 2 y Note The screen size is 240x160 However the valid x and y ranges are 0 255 239 159 e See Also PLOT LINE TO XY CIRCLE R The following sequence will put the blue point in the middle of the screen SET_COLOR 24 hex BLUE 11000000 bin SET XY 25 hex 120 120 dec 80 80 dec PLOT 26 hex Rev 21 2007 EarthLCD com ezL CD 002 2 5 25 TEXT EAST Description Set the orientation of the text as shown on the picture below Class Single Byte Commands Code TEXT NORTH 60hex 96dec ASCII TEXT EAST 61hex 97dec a ASCII TEXT SOUTH 62hex 98dec b ASCII TEXT WEST 2Fhex 99dec c ASCII 7 6 5 4 3 2 1 0 TEXT NORTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT EAST Byte 0 Command 7 6 5 4 3 2 1 0 TEXT_SOUTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT WEST Byte 0 Command Note H EXT NORTH is the default text orientation Text North N o gt x m x D e o ynos 1x91 239 159 See Also PRINT CHAR PRINT STRING SELECT FONT The following seguence will print the text pattern similar to the one on the picture above SET XY 25 hex 60 60 dec 10 10 dec SELECT FONT 2B hex 0 0 dec TEXT NORTH 60 hex PRINT STRING 2D hex Text North 47 Rev 2 1 2007 EarthLCD com 48 ezLCD 002 ULL
31. sing 22 Font on the Scratchpad 6 Rearrange the ezlcd Font List if necessary copy 7 Press A to add the Scratchpad font to the ezLCD Font List 8 Rearrange the ezlcd Font List if necessary Ee 9 You can save the new ezLCD Firmware by pressing the button 10 Program the ezLCD with the new Firmware Rev 21 2007 EarthLCD com ezL CD 002 61 2 6 5 2 Rearrange the fonts To rearrange fonts on the ezL CD Font List 1 Make sure that the ez CD Firmware is loaded 2 You can g e Rearrange the order of fonts by pressing one of e Remove the font from the list by pressing 4f Remove button Rev 2 1 2007 EarthLCD com 62 ezLCD 002 2 6 5 3 Save a font from the ezL CD Font List To save a font from the ezL CD Font List 1 Make sure that the ezL CD Firmware is loaded 2 Select the font for saving from the ezL CD Font List V 3 Press P to copy a font from the ezLCD Font List into the Scratchpad Caution This will replace the current Scratchpad font 4 Save the font by pressing 22 8 Font on the Scratchpad Rev 21 2007 EarthLCD com ezL CD 002 63 2 6 6 2 6 6 1 Fonts ezL CD Font List The ezLCD Font List is used to perform the following operations e Adding new fonts to the Firmware e Removing fonts from the Firmware e Rearranging the order of the Firmware fonts The ezLCD Font List shows the fonts of the loaded from the disk Fir
32. t Let s assume that ezL CD is assign to the COM5 Power ON the ezLCD Make sure that the ezLCD COM port is not opened by other applications Open Command Prompt on your computer Set ezLCD Com port parameters Type MODE COM5 BAUD 115200 PARITY N DATA 8 STOP 1 Turn the ezLCD Light ON Type ECHO gt COM5 Set current ezL CD color to green Type ECHO 8 gt COM5 e Send CLS command Type ECHO gt COM5 The ezLCD will fill it s entire screen with the green color Turn the ezLCD Light OFF Type ECHO gt COM5 e etc Rev 2 1 2007 EarthLCD com ezLCD 002 2 1 ezL CD 002 Overview Congratulations on your purchase of ez CD 002 The ezLCD 002 is an all in one advanced color TFT LCD panel which includes 240x160 pixel 512 color 2 7 TFT LCD Sony ACX705AKM LCD controller Epson SED1375 Embedded processor Atmel ATmega128L Power supply which generates all the voltages needed by the logic and the display itself Lithium lon battery charger Touch screen e Interface drivers and other circuitry The ezLCD 002 communicates with the outside world through several implemented interfaces e RS232 e USB e 2C e SPI e 8 bit parallel Centronix printer protocol The ezLCD 002 is driven by a set of commands which can be fed through any of the implemented interfaces The device may be used as an intelligent display or as a stand alone device There is plenty of flash memory left in ATmega128 to incorpora
33. te additional graphical instructions or to customize the software for particular tasks Possible applications include automotive avionics nautical industrial control hobby etc Note This is a preliminary documentation Rev 2 1 2007 EarthLCD com ezL CD 002 3 2 2 Operation The ezL CD 002 is driven by a set of 8 bit commands which can be received by any of the implemented interfaces c d LCD u gt LCD Display Interpreter Controller D RS232 USB 12C SPI 8 bit Parallel Figure 3 ezLCD 002 Data flow Diagram Each of the implemented interfaces uses the same set of ezLCD Commands Upon arrival the ezLCD Commands are stored into the 1024 byte long Command Buffer as shown in Figure 3 All interfaces use the same Command Buffer The Command Interpreter Figure 3 picks up byte by byte the commands stored in the Command Buffer and drives the LCD Controller with the corresponding set of signals and instructions The commands are processed on a First In First Out principle This data flow architecture makes possible the implementation of some advanced graphical commands like CIRCLE R LINE TO XY PUT BITMAP etc The following commands will draw a green circle with a radius of 60 pixels and a centered position at column 120 row 80 Pseudo Code ANSI C format SetColor GREEN Set the drawing color to green SetXY 120 80 Set the position to x 120 y 80 CircleR 60
34. tion Set the orientation of the text as shown on the picture below Class Single Byte Commands Code TEXT NORTH 60hex 96dec ASCII TEXT EAST 61hex 97dec a ASCII TEXT SOUTH 62hex 98dec b ASCII TEXT WEST 2Fhex 99dec c ASCII 7 6 5 4 3 2 1 0 TEXT NORTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT EAST Byte 0 Command 7 6 5 4 3 2 1 0 TEXT_SOUTH Byte 0 Command 7 6 5 4 3 2 1 0 TEXT WEST Byte 0 Command Note H EXT NORTH is the default text orientation Text North N o gt x m x D e o ynos 1x91 239 159 See Also PRINT CHAR PRINT STRING SELECT FONT The following seguence will print the text pattern similar to the one on the picture above SET XY 25 hex 60 60 dec 10 10 dec SELECT FONT 2B hex 0 0 dec TEXT NORTH 60 hex PRINT STRING 2D hex Text North 53 Rev 2 1 2007 EarthLCD com 54 ezLCD 002 ULL N TEXT_EAST PRINT_ STRING ex NULL TEXT_S D Text NULL PRINT t East OUTH STRING South TEXT W EST Tex NULL PRINT_ STRING t West 61 nex nex nex nex nex nex nex nex nex nex Rev 2 1 2007 EarthLCD com ezL CD 002 2 5 29 V LINE Description Fast draws a vertical line from Current Position to the row specified by the parameter Class Double Byte Command Code 41hex 65dec A ASCII V LINE Byte 0 Comman
35. turned on or off by the LIGHT ON signal from MPU ezLCD commands LIGHT ON and LIGHT OFF Additionally the light can be turned on by jumping the signal LIGHT_ON to the GND on the CN1 or CN3 connector The Light On condition has priority over Light Off For example once LIGHT ON jumpered to the GND the light cannot be extinguished by sending the LIGHT OFF command to the ezLCD 002 The following table shows the LCD Light logic is LIGHT ON LIGHT ON LCD Light OFF Open Off OFF GND On ON Open On ON GND On Rev 2 1 2007 EarthLCD com 10 ezL CD 002 2 3 4 RS 232 RS232RX CN1 CN3 RS232TX CN1 CN3 GND cni cng cna LTX PWR BATT USB1 Figure 7 ezLCD 002 RS232 Interface Default Communication Parameters Baudrate 115200 bps No of Stop Bits 1 Parity Off Handshake None Operation RS232 The ezL CD 002 uses 3 wires for a non handshake RS232 communication e RS232 RX ezL CD receive e RS232 TX ezL CD transmit e GND common ground The voltage levels and limits are as per RS232 standard The MPU handles the asynchronous communication protocol The RS232 Driver converts voltage levels from MPU OV Lo and 3V Hi to RS232 12V Lo and 12V Hi Asynchronous Serial The ezLCD 002 uses 3 wires for a non handshake Asynchronous Serial RS232 TTL communication e LRX ezLCD recei
36. unning the Bootloader software The Bootloader always resides in the highest segment of the ezLCD 002 flash memory The program will jump into the Bootloader when the PGR button on the back of the ezLCD 002 is pressed Once ezL CD 002 software enters the Bootloader it stays there until the next power up reset The firmware can be uploaded to the ezLCD 002 by the ezLCDrom utility Since the Bootloader responds to the Atmel s STK500 commands the firmware can also be uploaded by the Atmel AVR Studio available at http Awww atmel com products AVR in Tools and Software section To i ezLCD 002 firmware Power off the ezLCD 002 Connect PC to the ezLCD 002 via USB or RS232 interface Press and hold down PGR button on back of ezLCD 002 Power on the ezLCD 002 Release the PGR Button Upload the firmware using the ezLCDrom utility or Atmel AVR Studio Power off the ezLCD 002 Power on the ezLCD 002 O NO 01 D Rev 2 1 2007 EarthLCD com 20 ezL CD 002 2 5 ezL CD Commands General CLS LIGHT ON LIGHT OFF SET COLOR SET XY Points PLOT PLOT XY Lines H LINE V LINE LINE TO XY Figures ARC CIRCLE R CIRCLE R FILL BOX BOX FILL Bitmaps PUT BITMAP PUT ICON PUT SF ICON PICTURE Text and Fonts SELECT FONT SET BG COLOR TEXT NORTH TEXT EAST TEXT SOUTH TEXT WEST PRINT CHAR PRINT CHAR BG PRINT STRING PRINT STRING BG The ezL CD Commands may be fed to the ezLCD through any of th
37. ve e LTX ezL CD transmit e GND common ground The voltage levels are e 0V to 1V Lo logical 0 e 2V to 3V Hi logical 1 e Absolute minimum 0 2V e Absolute maximum 3 2V The MPU handles the asynchronous communication protocol The Asynchronous Serial Interface uses the same MPU lines as the RS232 does The 2 2k resistor is used to separate the receive signals from both interfaces The Asynchronous Serial receive has the priority over the RS232 receive Rev 21 2007 EarthLCD com ezL CD 002 11 2 3 5 USB Serial Connection asynchronous GND cni CN2 cna PWR BATT USB1 V Figure 8 ezLCD 002 USB Interface Operation Connector CN1 The ezLCD 002 USB Interface uses 4 lines e DM USB Data Minus e DP USB Data Plus e 5V e GND USB Client IC The USB Client IC CP2101 by Silicon Laboratories Inc handles all protocol and physical layer aspects of the USB communication MPU communicates with the USB Client through standard asynchronous serial connection using the following communication parameters e Baudrate 115200 bps e No of Stop Bits 1 e Parity Off Host Configuration The ezLCD CD includes ready to go royalty free USB drivers configure the operating system of the Host Computer to see the ezLCD 002 as an additional COM port When ezLCD 002 USB is configured as a COM port the following communication parameters should
38. wered on by e applying a positive voltage 2V to 7V to the ON OFF pin for at least 1 ms or e by pressing the ON button Figure 6 on the back of the display The ezLCD 002 may be powered off by e connecting ON OFF pin to the ground for at least 1 ms or e by pressing the OFF button Figure 6 on the back of the display e The OFF button has the priority over the ON button When the ON OFF pin is jumpered to the power source the ezL CD power will be cycled by connecting and disconnecting the power source Outputs The ezLCD 002 Power Supply drives the following outputs e 3V Main Power Vcc MPU SED1375 Interfaces e 3 6 to 3 8V LCD LCD Screen V1 e 3V LCD LCD Screen V2 e 16mA constant current LCD Light e Lithium lon battery charge current NOTE The 3V Ref is an I O reference voltage Rev 21 2007 EarthLCD com ezL CD 002 9 It may be used as a pull up source I2C etc It SHOULD NOT be used as a power source Battery Charging When the ezL CD 002 is powered by USB only the charge current is set to 100mA max When External Power is connected charging current is set at 280mA typ The ezLCD embedded battery charger features a precharge current to protect deeply discharged cells If battery voltage is less than 3V the device enters a precharge mode where charging current is limited to 40mA LCD Light The LCD Light is powered by 16mA generated by the White LED Driver The LCD Light can be

Download Pdf Manuals

image

Related Search

Related Contents

MANUAL DEL USUARIO  SOFTBOL - Conade    TLC-40 Eco / TLC-50 Eco User instructions  DW-1 取扱説明書 DW  Philips SVC2560W Anti-static Cleaning wipes  Datamax ST-3306 Printer User Manual  NOUVEAU!! - farla medical  EndoStim User Manual    

Copyright © All rights reserved.
Failed to retrieve file