LCD0821 Including LCD0821 Technical Manual Revision 3.1 PCB Revision: 2.0 or Higher Firmware Revision: 5.
Revision History Revision 3.1 3.
Contents 1 Introduction ............................................................................................................................................... 1 2 Quick Connect Guide.................................................................................................................................. 2 2.1 Available Headers ............................................................................................................................... 2 2.2 Standard Module ................
7 Appendix .................................................................................................................................................. 20 7.1 Command Summary ......................................................................................................................... 20 7.2 Character Sets ................................................................................................................................... 22 7.3 Block Diagram ..................................
1 Introduction Figure 1: LCD0821 Display The LCD0821 is an intelligent alphanumeric liquid crystal display designed to decrease development time by providing an instant solution to any project. . RS232, TTL and I2C protocols communication options allow the LCD0821 to be connected to a wide variety of host controllers. Communication speeds of up to 115.2kbps for serial protocols and 100kbps for I2C ensure lightning fast display updates.
2 Quick Connect Guide 2.
2.2 Standard Module The standard version of the LCD0821 allows for user configuration of two common communication protocols. First, the unit can communicate using serial protocol at either RS323 or TTL voltage levels. Second, it can communicate using the Inter-Integrated Circuit connect, or I2C protocol. Connections for each protocol can be accessed through the four pin Communication/Power Header as outlined in the Serial Connections and I2C Connections sections below.
2. Make the connections. a. Connect the four pin female header of the Communication/Power Cable to the Communication/Power Header of your LCD0821. b. Insert the male end of your serial cable to the corresponding DB9 header of the Communication/Power Cable and the mate the female connector with the desired communication port of your computer. c. Select an unmodified floppy cable from a PC power supply and connect it to the power header of the Communication/Power Cable. 3. Create.
3 Software The multiple communication protocols available and simple command structure of the LCD0821 means that a variety of applications can be used to communicate with the display. Text is sent to the display as a character string, for example, sending the decimal value 41 will result in an 'A' appearing on the screen. A number of control characters are also activated. Commands are merely values prefixed with a special command byte, 254 in decimal.
This command allows raw bytes to be sent to the display, permitting many different formats for entry and displaying in decimal notation. Any command from this manual may be entered in decimal notation separated by slashes. /254/ /88/ Figure 5: uProject Command Again, the clear screen command is sent to a connected display, this time using uProject raw data command style. Scripts can be run as a whole using the execute command from the script menu, or as single commands by selecting execute once.
4 Hardware 4.1 Standard Model Communication/Power Header Table 4: Communication/Power Pinout Pin 1 2 3 4 Function Vcc Rx (SCL) Tx (SDA) Gnd Figure 6: Communication/Power Header The Communication/Power Header provides a standard connector for interfacing to the LCD0821. Voltage is applied through pins one and four of the four pin Communication/Power Header. Please ensure the correct voltage input for your display by referencing Voltage Specifications before connecting power.
4.2 Common Features General Purpose Outputs Table 6: GPO Pinout Figure 8: GPO Header Pin 1 2 Function GPO Gnd A unique feature of the LCD0821 is the ability to control relays* and other external devices using a single General Purpose Output. It can source up to 10mA of current at five volts when on or sink 20mA at zero volts when off. The two pin header can be interfaced to a number of female connectors to provide control to any peripheral devices required.
5 Troubleshooting 5.1 Power In order for your LCD0821 to function correctly, it must be supplied with the appropriate power. If the power LED near the top right corner of the board is not illuminated, power is not applied correctly. Try following the tips below. First, make sure that you are using the correct power connector. Standard floppy drive power cables from your PC power supply may fit on the Communication/Power Header; however they do not have the correct pin out to provide power.
5.3 Communication When communication of either text or commands is interrupted, try the steps below. • • • • • • • • First, check the communication cable for continuity. If you don't have an ohm meter, try using a different communication cable. If you are using a PC try using a different Com/USB Port. Next, please ensure that the display module is set to communicate on the protocol that you are using, by checking the Protocol Select Jumpers.
6 Commands 6.1 Communication 1.1 Change Baud Rate Dec 254 57 Speed Hex FE 39 Speed ASCII ■ 9 Speed Immediately changes the baud rate. Not available in I2C. Baud rate can be temporarily forced to 19200 by a manual override. Speed Byte Valid settings shown below. v5.0 Table 8: Accepted Baud Rate Values Rate Speed 1200 83 2400 41 4800 207 9600 103 19200 51 28800 34 38400 25 57600 16 76800 12 115200 8 2 1.2 Change I C Slave Address Dec 254 51 Address v5.
6.2 Text 2.1 Clear Screen Dec 254 88 Hex FE 58 ASCII ■X Clears the contents of the screen. v5.0 2.2 Change the Start Up Screen Dec 254 64 Characters v5.0 Hex FE 40 Characters ASCII ■ @ Characters Changes the message displayed on start up. Custom characters can be included by adding their decimal value (07). Characters will automatically wrap on the display. Characters 16 bytes, space characters can be added as needed 2.3 Auto Scroll On Dec 254 81 v5.
2.8 Go Home Dec 254 72 Hex FE 48 ASCII ■H Returns the cursor to the top left of the screen. v5.0 2.9 Move Cursor Back Dec 254 76 Hex FE 4C ASCII ■L Moves cursor one position to the left. Cursor will obey wrap settings. v5.0 2.10 Move Cursor Forward Dec 254 77 Hex FE 4D ASCII ■M Moves cursor one position to the right. Cursor will obey wrap settings. v5.0 2.11 Underline Cursor On Dec 254 74 Hex FE 4A ASCII ■J Displays a line under the current cursor position. Can be used with block cursor. v5.0 2.
6.3 Special Characters 3.1 Create a Custom Character Dec 254 78 ID Data v5.0 Hex FE 4E ID Data ASCII ■ N ID Data Creates a custom character. Each character is divided into 8 rows of 5 pixels; each data byte represents one row. Each byte is padded by three zero bits followed by five bits representing each pixel state. A one represents an on condition while a zero is off. Characters are lost when a new memory bank is loaded, unless they are saved. ID Byte Character ID, value between 0 and 7.
3.4 Save Start Up Dec 254 194 ID Data v5.0 Screen Custom Hex FE C2 ID Data ■ ┬ ID Data Characters ASCII Saves a custom character to memory for the start up screen or repeated use. Start up characters are displayed by sending their ID to the screen. ID Byte Value between 0 and 7. Data Byte[8] Character pixel data, see Custom Degree Character example. 3.5 Initialize Medium Numbers Dec 254 109 v5.0 Hex FE 6D ASCII ■m Loads the medium number custom character bank into memory.
3.10 Initialize Wide Vertical Bar Dec 254 118 v5.0 Hex FE 76 ASCII ■v Loads the wide horizontal bar graph custom character bank into memory. A wide bar is 5 pixels wide. Horizontal bar characters must be initialized before a graph is displayed. 3.11 Place Vertical Bar Dec 254 61 Column Length v5.0 Hex FE 3D Column Length ASCII ■ = Column Length Places a vertical bar graph on the screen extending from the first row of the column specified. The bar extends upwards to the length indicated.
6.5 Display Functions 5.1 Backlight On Dec 254 66 Minutes v5.0 Hex FE 42 Minutes ASCII ■ B Minutes Turns the display backlight on for a specified length of time. If an inverse display color is used this command will essentially turn on the text. Minutes Byte Number of minutes to leave backlight on, a value of 0 leaves the display on indefinitely. 5.2 Backlight Off Dec 254 70 Hex FE 46 ASCII ■F Turns the display backlight off. If an inverse display colour is used this command will turn off the text. v5.
6.6 Data Security 6.1 Set Remember Dec 254 147 Switch v5.0 Hex FE 93 Switch ASCII ■ ô Switch Allows changes to specific settings to be saved to the display memory. Writing to non-volatile memory can be slow and each change consumes 1 write of at least 100,000 available. The Command Summary outlines which commands are saved always, never, and when this command is on only. Remember is off by default. Switch Byte 1 for on or 0 for off. 6.2 Set Data Lock Dec 254 202 245 160 Level v5.
6.7 Miscellaneous 7.1 Write Customer Data Dec 254 52 Data v5.0 Hex FE 34 Data ASCII ■ 4 Data Saves a user defined block of data to non-volatile memory. Useful for storing display information for later use. Data Byte [16] User defined data. 7.2 Read Customer Data Dec 254 53 v5.0 Hex FE 35 ASCII ■5 Reads data previously written to non-volatile memory. Data is only changed when written, surviving power cycles. Response Byte [16] Previously saved user defined data. 7.
7 Appendix 7.1 Command Summary Available commands below include identifying number, required parameters, the returned response and an indication of whether settings are remembered always, never, or with remember set to on.
Table 16: Special Character Command Summary Name Create a Custom Character Save Custom Characters Load Custom Characters Save Start Up Screen Custom Characters Initialize Medium Numbers Place Medium Numbers Initialize Horizontal Bar Place Horizontal Bar Graph Initialize Narrow Vertical Bar Initialize Wide Vertical Bar Place Vertical Bar Dec 78 193 192 Hex 4E C1 C0 ASCII N ñ └ Parameters Byte[9] Byte[10] Byte Response None None None Remembered Remember On Always Never 194 C2 ┬ Byte[9] None Alway
7.
Figure 10: LCD Model Japanese Character Set 23
7.3 Block Diagram Figure 11: Functional Diagram 7.4 Environmental Specifications Table 21: Environmental Limits LCD Standard LCD Extended (-E) 0°C to +50°C -20°C to +70°C -10°C to +60°C -30°C to +80°C Maximum 90% non-condensing Maximum 10°C /min Operating Temperature Storage Temperature Operating Relative Humidity Thermal Shock 7.
7.6 Dimensional Drawings Figure 12: Display Dimensional Drawing* Figure 13: Standard Model Dimensional Drawing *Note: Mounting hole diameter was decreased to 2.5mm in 2013 as per PCN 20130410-01. 7.7 Optical Characteristics Table 25: Display Optics Module Size Viewing Area Active Area Character Size Character Pitch Pixel Size Pixel Pitch Viewing Direction Viewing Angle Contrast Ratio Backlight Half-Life (IY & YG) Backlight Half-Life (R) Backlight Half-Life (GW & WB) 25 58.00 x 32.00 x 26.80 38.
8 Ordering 8.1 Part Numbering Scheme Table 26: Part Numbering Scheme LCD 1 0821 2 -R 3 -V 4 -E 5 8.
9 Definitions ASCII: American standard code for information interchange used to give standardized numeric codes to alphanumeric characters. BPS: Bits per second, a measure of transmission speed. GPO: General purpose output, used to control peripheral devices from a display. GUI: Graphical user interface. Hexadecimal: A base 16 number system utilizing symbols 0 through F to represent the values 0-15.