Home

TC51320 Controller User`s Manual

image

Contents

1. Address Radius 0101110 0 01011 x x X X X X Coordinate Y Coordinate 0 0 Address 0 21 R circle radius e Specify Start page and column Data Data X Data Y X Y circle center point Start page Address Data 0100 0101110 01010 0101x x Address 0 06 Data x Start column X page address from 0 to 7 Address Data 01010 1 010111010 Address 0 12 Data x column address from 0 to 127 e Select Screen font font 5x7 default x 1 font 8x14 x 2 font 8x14 Bold x 3 Address Data 010101110111 1011 0 0 0 0 0 10 Address 0 15 Data x e Backlight Address Data 010100111010 11010 0 010 0 Address 0 09 Data x e The touch screen controller can respond by sending X and coordinates of a touch screen contact location or by sending digits if used as a to main ON 1 OFF x 2 11 microprocessor computer The controller will respond by sending 5 character to main microprocessor after the touch screen release Touch screen operation Coordinates Mode allow 2 Ad
2. nen ee nenne steer nete nene 15 Copyright 2004 2011 TVI Electronics LLC FIGURES Figure 2 1 Hardware Connection e E EUN C EIS eme AN tels entr te Fig re 2 2 Default Software Screen rss ecce ess ce a CEN eL ERE eu etes ago Figure 3 1 TC51320 Controller Board Layout inserer Figure 3 2 PC to TC51320 Controller Figure 3 3 MCU to TC51320 Controller Connection s TABLES Table 3 1 Atmega16 Spare Pins Table 3 2 Jumpetsi iiec tie ve de etti eco de dd tas esas er E de SR ON inc COS le atat a tud er a PAIR TOI CONNEC LOIS PME CC HE EET ORE 3 ERAT CK Example 2 1 Default Power Up inner Copyright 2004 2011 TVI Electronics LLC 1 FUNCTIONS AND 5 1 1 GENERAL The TC51320 is an intelligent LCD controller with an integrated touch screen control that supports Optrex F 51320 Series 128x64 COG Monochrome STN Graphic LCDs This controller allows user to individually control each display pixel This independent pixel control allows user displaying both text and pictures simultaneously The TC51320 uses an ATMEGA16 microcontroller and external AT24C512 serial EEPROM The microcontroller can be reprogrammed at any time by using AVRISP device 1 2 FEATURES 1 2 1 1 2 2 1 2 3 1 2 4
3. Address OxOB Data x NORMAL x 1 REVERSE x 2 Clear screen Address Data 01010 01001010 0 010 010 011 Address 0x01 Data 0 01 F 51320 series LCDs have two LCD BIAS Sets Changing LCD Bias Set 1 7 1 9 will affect the display contrast Address Data 010101011110 0 0 0010 x Address Data x 1 7 x 1 1 9 2 Optrex F 51320 series LCD modules provide 9 bits of software contrast adjustment This is subdivided into 3 bit rough adjustment called V5 Voltage Regulator Internal Resistor Ratio Set and 6 bit fine adjustment called Electronic Volume V5 Voltage Regulator Internal Resistor Ratio Set Address Data 010101011110 0 00 Address 0 0 Data x from 0 to 7 Electronic Volume Address Data 0101011 0 0 010 Address 0 10 Data x from 0 to 63 The TC51320 controller supports Horizontal Scrolling Bar feature Scrolling text location can be selected by Start page command User can specify a scrolling delay and select font Max number of scrolling characters is 25 Run scrolling text command will activate a touch screen By pressing the touch screen controller will stop the scrolling text clear
4. X Coordinate Y Coordinate 0 0 Step 1 Address Data number of coordinates in string Step 2 X from 0 to 127 Y from 0 to 63 coordinates If the specified number of coordinates gt 1 repeat Step 2 For more than 128 X and coordinates repeat Steps 1 amp 2 Overwriting the same coordinate will reverse a pixel on the screen ON OFF To draw a line Address Data 01010 111111 0 0 010 010 01010 X1 Coordinate Start Y1 Coordinate Start O X X X X X X X O0j O0O x X X X XX 2 Coordinate End Y2 Coordinate End 01 0 0 X X X XX Address Ox1E Data 0x00 Data Data Yl Data X2 Data Y2 X1 Y1 Start coordinate X2 Y2 End coordinate To clear a line Address Data 01010 11111110 010 010 01010 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 0 0 Address Data 0x00 Data X1 Data Yi Data X2 Data Y2 1 1 Start coordinate X2 Y2
5. AVRISP interface AVRISP In System Programmer interface allows user to program own code into microcontroller AVRISP device is required 1 2 5 Draw Clear Line Rectangle Circle The TC51320 controller simplifies drawing and clearing of horizontal vertical and skew lines and shapes such as rectangle and circle 1 2 6 Voltage regulator The TC51320 has a built in voltage regulator connector 111 with input 7 15 VDC for F 51320GNY LY AFN 9 VDC is recommended and output 5 VDC connector J5 The voltage regulator is capable to provide up to 1A current for external applications 5V power may be applied to J5 eliminating the need for 111 1 2 7 Software control Software allows controlling LCD contrast backlight ON OFF and display ON OFF 1 2 8 Hardware contrast adjustment The TC51320 controller has a trimmer potentiometer R17 for contrast adjustment If you are not satisfied with the default contrast settings use R17 to adjust the settings 1 2 9 Horizontal scrolling bar The TC51320 controller provides a horizontal scrolling bar feature Up to 25 characters may be stored in the external EEPROM Scrolling bar delay and font type can be specified by a command See Commands List 1 2 10 Fonts The TC51320 controller supports 3 built in font sizes 5x7 8x14 and 8 x 14 Bold The bmp font files are stored as screens 1 4 in controller s memory The font files can be created in Windows Paint or other compatible program D
6. RS 232 communication interface with nine programmable baud rates The TC51320 controller has RS 232 protocol interface Communication parameters are 8 Bit No Parity and 1 Stop Bit The TC51320 controller is shipped set at 9600 baud rate The baud rate can be changed by a command and stored regular DB9 connector on board allows communication with PC through the standard serial cable TVI Electronics offers this cable as part number DB9MF A serial TTL interface is supplied at J4 For TTL interface remove the jumpers on J4 header please see jumpers configuration 512k bites external EEPROM 512kb of external EEPROM are divided into 64 pages of 1024 bytes each The lower four pages of this memory hold a default text font used to display text The remaining memory can be used to store up to 60 full screen images A utility program allows user to convert and download 128x64 pixels bmp or jpg patterns to display Touch screen controller The touch screen controller can respond by sending X and Y coordinates of touch screen contact location or by sending digits if used as a keypad to main microprocessor or computer In Keypad Mode controller sends ASCII code of each number Esc button sends char 27 ASCII for Esc Ent button sends char 13 ASCII for Enter The TC51320 controller is calibrated for touch screen Any command sent from main computer or microprocessor will disable touch screen The touch screen can be enabled by a command
7. Electronics TC51320 CONTROLLER USER MANUAL Revised August 2011 www tvielectronics com E BS 2211 Rayford Rd Ste 111 332 Spring TX 77386 281 408 4051 281 408 4052 User Manual August 2011 THIS PAGE INTENTIONALLY LEFT BLANK Copyright 2004 2011 TVI Electronics LLC IMPORTANT NOTICE TVI Electronics shall not be liable in any action against it in way related to the products or software for any loss or damages whether non specified direct indirect special incidental or consequential including downtime loss of profits or goodwill regardless of the legal theory asserted TVI Electronics reserves the right to make corrections modifications enhancements improvements and other changes to its products and services at any time and to discontinue any product or service without notice Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete All products sold by TVI Electronics are subject to company s terms and conditions of sale supplied at the time of order acknowledgment User is responsible for determining whether the TVI Electronics products and software are fit for User s particular purpose and suitable for its method of production including intellectual property liability for User s application Copyright 2004 2011 TVI Electronics LLC WARRANTY TVI Electronics warrants performance o
8. 1 2 8 CONS eh 2 129 12 10 Tol cms 1 2 11 Spare Pins ON Atmeg d16 ie eis ee deerit E 1532 POWER REQUIREMENTS 23 ex Perte re Ine ee rer eire o e oe E HO CI e E ED OP TURO RR GETTING STARTED 2 1 HARDWARE dues sans doa Eve aped sun rade RR Ye Dr RR 2 2 POWER D 2 3 QUICKSTART a OPERATION 3 1 51320 CONTROLLER JUMPERS AND SWITCHES 3 1 1 Serial Communication Eh 334 2 Settings cm BJ BegulD HON 22 2 3 2 TC51320 COMMANDS LIST ken eden rte ten te tt PHYSICAL 2 15 4 1 TOUCH SCREEN LCD MODULE PHYSICAL 5 4
9. its page and send ASCII char 7 Bell to main computer or microprocessor To restart scrolling text feature the appropriate command is required 13 Run a scrolling text 1 Save scrolling text to the external EEPROM Address Data 010101110100 0 01 0 Address 0 18 Data x ASCII Code max 25 2 Select scrolling delay Address Data Delay Time 01010 1110 1 111 Address 0 17 Data x To calculate delay time multiply x by 1 10 of second 3 Run scrolling text with selected font Address Data Font Selector 0101011 0 111110 0 0 010 010 Address 16 Data x font 5x7 default x 1 font 8x14 x 2 font 8x14 Bold x 3 If scrolling text was previously saved in the external EEPROM and the delay was specified use Run scrolling text command to restart a scrolling feature Set baud rate Address Data 0101010111111 1 01 101010 Address OxOF Data x 2400bps x 0 4800bps x 1 9600bps x 2 14400bps x 3 19200bps x 4 28800bps x 5 38400bps x 6 57600bps x 7 76800bps x 8 115200bps x 9 The baud rate is stored and will default to the stored value 512kb of external EEPROM is divided i
10. 8 being sure it is seated push the latch back in Figure 2 1 Hardware Connection J1 PIN 1 2 2 POWER UP Connect a power supply to J11 power jack make sure the polarity is correct Screen 5 is the power up screen which will be displayed each time the unit is powered up The power up screen can be customized through Control Panel software The factory default will show TVI Electronics logo and current controller firmware revision as shown on Default Power Up Screen below Example 2 1 Default Power Up Screen Electronics TC51320 rev B 2 3 QUICK START Download and install Control Panel software on your PC Follow instructions that the installer gives you When installation is complete connect a serial cable from your PC to the TC51320 controller Once this connection is made launch the Control Panel software on your PC Select an appropriate COM Port Baud Rate default 9600 and click Connect Now you may begin using the software to evaluate the TC51320 controller board Figure 2 2 Default Software Screen r Control Panel File Help Settings Modes Communication Utilities Touch Screen Port 5 Coordinates Keypad Baud Rate 600 Change Baud Rate Calibration 9600 x 206 Restore Default Contrast Controller response V5 Electronic F 51553 F 51320 volume 3 43 3101 gt l Connecte
11. End coordinate To draw a rectangle Address Data 010101111110 0 0 010 010 011 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 01 0 0 X X X XX Address Ox1E Data 0 01 Data X1 Data Yl Data X2 Data Y2 X1 Y1 upper left corner X2 Y2 lower right corner To clear a rectangle Address Data 010101111111 0 0 010 010 011 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 0 0 Address Data 0x01 Data Data Y1 Data X2 Data Y2 X1 Y1 upper left corner X2 Y2 lower right corner draw filled rectangle Address Data 01010 111111 0 0 010101001110 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 01 0 0 X X X XX Address Ox1E Data 0x02 Data Data Yl Data X2 Data Y2 X1 Y1 uppe
12. d 5 9600 n 8 1 12 00 PM 3 This chapter describes each function of the 51320 controller 3 1 TC51320 CONTROLLER JUMPERS AND SWITCHES Figure 3 1 TC51320 Controller Board Layout 6 51420 o mmu e EHHE cire cie c9 R1 R9 R14R10R13 V RTXDG c19 c24 C23 Table 3 1 16 Spare Pins 1 2 3 4 5 6 7 8 PORT PD7 PD6 PD5 PDA PC2 Table 3 2 Jumpers Reference Function Setting Subsection Designator 14 Serial communication through RS232 ON 3 1 1 Serial communication through Atmega16 UART OFF Table 3 3 Headers Reference Designator Function J2 AVRISP Interface Table 3 4 Connectors Reference Function Designator 11 F 51320 LCD Interface 13 F 51320 LCD Backlight Connector J5 Optional 5VDC Input Output 17 RS232 DB 9 Connector J8 Touch Screen Connector 110 Optional RS232 Connector 111 7 15 VDC Input for F 51320GNY LY AFN 9 VDC is recommended Table 3 5 Switches Reference Function Setting Subsection Designator S141 Contrast regulation by resistor R17 ON 3 1 3 Contrast regulation by software OFF 9600 222 User defined Baud Rate OFF Hardwar
13. dress Data 010101010110 10 0 0010 x Address 0 05 Data x ON x 1 OFF x 2 Controller response X Coordinate Comma 0 01 1101111 010 Coordinate String Terminator 0110111 0 010 01 0 0 2 0 20 Mode Address Data 010101110011 0 0010 x Address 0 13 Data x ON x 1 OFF x 2 Touch Screen Calibration Address Data 010101110010 0 010 010 011 Address 0 19 Data 1 The calibration routine is provided to compensate for the normal touch screen variation You will be asked to touch all four corners of the touch screen A Dot along with comments will appear on the screen indicating where to make a touch If inaccurate data is received you will be asked to repeat the touch screen calibration After successful calibration the controller will print Done the screen Display power save mode Address Data 010101011101 0 0010 x Address OxOD Data x ON x 1 OFF x 2 12 Display background color Address Data 010101011011 0 0 0010 x
14. e Contrast Adjustment ON Software Contrast Adjustment OFF ne 3 1 1 Serial Communication Communication with Touch Screen LCD Module through RS232 installation of jumpers J4 Factory Default Figure 3 2 PC to TC51320 Controller Connection PC COM Port 3 1 2 3 1 3 Communication with Touch Screen LCD Module through Atmegai6 UART requires removal of two jumpers on J4 Use J4 as a header to connect TXD RXD and GND from external application For details refer to schematic Use J10 as optional RS232 connector Figure 3 3 MCU to TC51320 Controller Connection Baud Rate Settings The 51320 controller has nine programmable baud rates The 51320 controller is shipped set at 9600 baud rate A baud rate is set by a command and stored The baud rate can be changed at any time by turning off switch S1 2 Contrast Regulation The Optrex F 51320 series LCD modules provide 9 bits of software contrast adjustment This is subdivided into 3 bit rough adjustment called V5 Voltage Regulator Internal Resistor Ratio Set and 6 bit fine adjustment called Electronic Volume To adjust contrast through software switch 1 and 3 on S1 must be turned OFF To adjust contrast through hardware switch 1 and 3 on Si must be turned ON The values provided the TC51320 controller should work in most cases but it is possible that your particular design requires a different combination of Resistor Ratio and Electronic V
15. e module is not provided with this protective feature Do not ingest the LCD fluid itself should it leak out of a damaged LCD module Should hands or clothing come in contact with LCD fluid wash immediately with soap Conductivity is not guaranteed for models that use metal holders where solder connections between the metal holder and the PCB are not used Do not stack up modules since they can be damaged by components on neighboring modules Do not place heavy objects on top of the product This could cause glass breakage Do not scratch LCD or touch screen In order to maintain module reliability do not touch or hold by the connector area Avoid any bending pulling or other excessive force on flexible cables which can result in broken connections ATTENTION AVOID DISCONNECTING TOUCH SCREEN FROM THE J8 CONNECTOR Copyright 2004 2011 TVI Electronics LLC About This Manual This user s manual describes the function and operation of the TC51320 controller Firmware rev B and higher This manual will help you quickly set up the touch screen controller evaluation board and its accompanying software so that you can rapidly test and evaluate their usefulness for your application If You Need an Assistance If you have any questions about this evaluation board feel free to e mail TVI Electronics Support Team at support tvielectronics com Include the product name in the subject heading Copyright Copyri
16. f its hardware products to the specifications applicable at the time of sale in accordance with TVI Electronics standard warranty All TVI Electronics products have been manufactured to your company s or your own specifications as a part for use in your company s or own general electronic products It is guaranteed to perform according to delivery specifications This evaluation board being sold by TVI Electronics is intended for use for ENGINEERING DEVELOPMENT OR EVALUATION PURPOSES ONLY We cannot take responsibility if the product is used in medical devices nuclear power control equipment aerospace equipment fire and security systems or any other applications in which there is a direct risk to human life and where extremely high levels of reliability are required 1 We cannot accept responsibility for any defect which may arise from additional manufacturing of the product including disassembly and reassembly after product delivery 2 We cannot accept responsibility for any defect which may arise after the application of strong external force to the product 3 We cannot accept responsibility for any defect which may arise due to the application of static electricity after the product has passed your company s acceptance inspection procedures Customers are responsible for their products and applications using TVI Electronics components To minimize the risks associated with customer products and applications customers should pr
17. ght 2011 TVI Electronics LLC All rights reserved TVI Electronics reserves the right to make changes and improvements to its product without notification Trademarks Windows is a registered trademark of Microsoft Corporation OPTREX is a registered trademark of Optrex Corporation Notice to Users When a system failure may cause serious consequences protecting life and property against such consequences with a backup system or safety device is essential The user agrees that protection against consequences resulting from system failure is the user s responsibility This device is not approved for life support or medical systems Copyright 2004 2011 TVI Electronics LLC 5 FUNCTIONS AND 1 1 AGENERAL o 1 2 squvugls m 1 2 1 RS 232 communication interface with nine programmable baud rates 1 2 2 512k bites external EEPROM sesenta nana senses santa daas asses 1 2 3 Touch screen controller e i ER eda 7 2 4 AVRISP interfaCe iv ics ve etr t re v CE reve 1 2 5 Draw Clear Line Rectangle Circle 1 2 6 Voltage regular OE tacite CUR NUR eon 1 2 7 Software cohtrol eti re wd
18. ifferent font sizes can be freely mixed on the screen 1 2 11 Spare pins Atmega16 8 port pins of ATmega16 microcontroller PA6 7 2 PD4 PD5 PD6 PD7 are available for your personal use 1 3 POWER REQUIREMENTS Power to the 51320 is derived from the external power supply through either 211 or J5 connectors Voltages of 7 VDC to 15 VDC for F 51320GNY LY AFN 9 VDC is recommended must be supplied through J11 connector Since it is regulated on the TC51320 this input voltage does not need to be regulated as long as it falls within this range Voltage of 5 VDC must be supplied through the J5 and should be regulated Make sure the polarity is correct Reversed power will damage the device and or power supply 2 2 GETTING STARTED This chapter guides you through the hardware connection powering up the TC51320 controller and setting up the software for initial testing 2 1 HARDWARE CONNECTION Carefully open the LCD connector latch J1 by pulling the brown latch outwards Insert the flat data cable contacts side down into the connector being sure the cable is fully seated push the latch back in being sure the cable is pushed all the way in Pass straight wires through the 33 backlight connector holes and solder the F 51320 LED pads and with the corresponding holes on the J3 connector If you have a touch screen carefully pull the latch on connector J8 out Insert the touch screen cable into J
19. nto 64 pages 1024 bytes each The lower four pages of this memory hold default text font used to display text The remaining memory can be used to store up to 60 full screen images A utility program allows user to convert and download 128x64 pixels bmp or jpg graphics to display 14 Load screen from Address Data 010101011 0 01010 x Address 0x08 Data x from 1 to 64 Save current screen Address Data 01010111 10 0 011 0 x Address 0 11 Data x from 1 to 64 The controller will respond with exclamation mark 0 21 when ready for the next command 4 PHYSICAL DESCRIPTION This chapter contains the Touch Screen LCD Module physical dimensions 4 1 TOUCH SCREEN LCD MODULE PHYSICAL DIMENSIONS e Dimensions for Modules with F 51320 LCD Blue White 97 0mm 50 0mm 25 0mm D e Dimensions for Modules with F 51553 LCD Yellow Green 97 0mm 50 0mm 32 0mm D 15
20. olume Changing of LCD Bias Set 1 7 1 9 will affect the display contrast 3 2 51320 COMMANDS LIST Text Mode Print a single character Address Data ASCII 0101010 0 01110 x X Address 0 02 Data ASCII for a character Print a string Address Data ASCII or String Terminator 0101110101111 0 X X The string starts with Address 0 26 followed by ASCII Data for every character The max string size is 25 ASCII characters For a string less than 25 characters use a string terminator OxOD Graphic Mode To operate in Graphic Mode the controller requires two characters per command Address Data 0101 10101010 1 1 X Address 0x03 Data 8 bit desired graphic pattern XY Mode allows control of a single pixel as well as drawing shapes such as rectangle and circle and horizontal vertical or skew lines according to the entered coordinates In a Pixel mode the controller will rewrite the contents of the display data RAM for a given pixel 0 0 coordinate at the top left corner of the screen 127 63 coordinate at the lower right corner of the screen Pixel Address Data 01010101 01110 x xx X x
21. ovide adequate design and operating safeguards Copyright 2004 2011 TVI Electronics LLC 9 10 11 12 TOUCH SCREEN LCD MODULE HANDLING PRECAUTIONS The following precautions will guide you in handling of our product correctly Liquid crystal display devices 1 1 The liquid crystal display device panel used in the liquid crystal display module is made of plate glass Avoid any strong mechanical shock on LCD and touch screen Should the glass break handle it with care 1 2 The polarizer adhering to the surface of the LCD is made of a soft material Guard against scratching it 1 3 Wash your hands or clothes if you touch liquid crystal Avoid Static electricity 2 1 When working with the module use your naked or gloved hand and wear non conductive work suit to prevent generating static electricity by friction ESD ground straps should be utilized 2 2 Be sure to ground any electrical appliances you may be using such as soldering iron cutting pliers tweezers etc 2 3 Floors doors and work tables must be grounded to discharge electricity When the LCD module alone must be stored for long periods of time 3 1 Protect the modules from high temperature and humidity 3 2 Keep the modules out of direct sunlight or direct exposure to ultraviolet rays 3 3 Protect the modules from excessive external forces Use the module with a power supply that is equipped with an over current protector circuit since th
22. r left corner X2 Y2 lower right corner To clear a filled rectangle or a specified area Address Data 01010 11111110 010010 01110 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 0 0 Address Data 0x02 Data X1 Data Y1 Data X2 Data Y2 X1 Y1 upper left corner 2 2 lower right corner To reverse pixels of the specified rectangle Address Data 010101111110 0 0 010 010 1 1 X1 Coordinate Start Y1 Coordinate Start 0 0 2 Coordinate End Y2 Coordinate End 01 0 0 X X X XX Address Ox1E Data 0x03 Data Data Yl Data X2 Data Y2 X1 Y1 upper left corner X2 Y2 lower right corner To draw a circle Address Radius 0101110 0 X Coordinate Coordinate O X X X X X X X O0j O0O x X X 10 Address 0 20 R circle radius To clear a circle Data Data X Data Y X Y circle center point

Download Pdf Manuals

image

Related Search

Related Contents

MATLAB Compiler  73~78ページ  Quel avenir pour la médiation sociale  operation - Sears Parts  statIM 2000/5000 G4  instructivo para el sistema de reporte en linea - sirel  Eagle 450 Service Manual  Samsung S19A200BW User Manual  EDGE® 800  Untitled  

Copyright © All rights reserved.
Failed to retrieve file