NHD-0216B3Z-FL-GBW-1 Newhaven Display, 2x16

advertisement
 NHD‐0216B3Z‐FL‐GBW Serial Liquid Crystal Display Module NHD‐ 0216‐ B3Z‐ F‐ L‐ G‐ B‐ W‐ Newhaven Display 2 lines x 16 characters Model Transflective Yellow/Green LED backlight STN‐ Gray 6:00 view Wide Temperature (‐20°C ~ +70°C) RoHS Compliant Newhaven Display International, Inc. 2511 Technology Drive, Suite 101 Elgin IL, 60124 Ph: 847‐844‐8795 Fax: 847‐844‐8796 www.newhavendisplay.com nhtech@newhavendisplay.com nhsales@newhavendisplay.com [1] Document Revision History Revision 0 1 2 Date 7/11/2007 12/15/2009 2/15/2010 Description Initial Release User guide reformat Added Resistor Image Functions and Features •
•
•
•
•
•
2 lines x 16 characters Serial Interface: I2C, SPI or RS232 5V power supply 1/16 duty, 1/5 bias 5x8 pixels with cursor RoHS Compliant [2] Changed by ‐ CL MC Mechanical Drawing
[3] Pin Description Pin No. Symbol 1 2 3 1 2 3 4 5 6 1 2 3 4 5 RX VSS VDD SPISS SDO SCK/SCL SDI/SDA VSS VDD VPP VDD Vss PA0 PA1 External Connection MPU Power Supply Power Supply MPU NC MPU MPU Power Supply Power Suppy NC NC NC NC NC Function Description
RS232 Serial input port
Ground
Power supply for logic (+5.0V)
SPI Slave Select (NC in I2C mode)
No Connect
Serial Clock
Serial Data In (SPI) / Serial Data (I2C)
Ground
Power Supply for logic (+5.0V)
No Connect
No Connect
No Connect
No Connect
No Connect
Recommended LCD connector: 2.54mm pitch pins on P1 or P2 Backlight connector: controlled by command Mates with: ‐ Jumper Communication Selection R1 Short Open Short Open R2 Short Short Open Open Protocol TEST SPI I2C RS232 Description Self‐test 100KHz max clock 100KHz max clock 5V, TTL signal [4] Electrical Characteristics Item Operating Temperature Range Storage Temperature Range Supply Voltage Supply Current Symbol Top Tst VDD IDD Supply for LCD (contrast) VDD‐V0 “H” Level input (Schmitt Trigger) “L” Level input (Schmitt Trigger) “H” Level output “L” Level output Backlight Supply Current Condition
Ta=25°C VDD=5.0V Ta=25°C Vih Vil Voh Vol Iled Min.
‐20
‐30
4.7
‐
Typ.
‐
‐
5.0
125
Max. +70 +80 5.5 ‐ Unit
⁰C ⁰C V mA
‐
‐
‐ V 0.8VDD
VSS
‐
‐
‐
‐
‐
‐
‐
100
VDD 0.2VDD ‐ ‐ ‐ V V V V mA
Min.
‐
‐
‐
‐
‐
‐
‐
Typ.
10
60
45
45
3
100
150
Max. ‐ ‐ ‐ ‐ ‐ 150 200 Unit
⁰ ⁰ ⁰ ⁰ ‐ ms
ms
Optical Characteristics Item Viewing Angle – Top Viewing Angle – Bottom Viewing Angle – Left Viewing Angle – Right Contrast Ratio Response Time (rise) Response Time (fall) Symbol θ θ Ф Ф Cr Tr Tf Condition
Cr ≥ 2
Cr ≥ 2
Cr ≥ 2
Cr ≥ 2
‐
‐
Built‐in LCD Controller: PIC 16F690 http://www.newhavendisplay.com/app_notes/PIC16F690.pdf [5] Communication Information This display uses a built‐in PIC 16F690 for serial communication. I2C protocol: To enter the I2C mode, place a jumper on R1. SDA and SDK have pull‐up resistors (10K Ohm) on R7 and R8. The default I2C address is 80 (50 hex). The I2C address can be changed to any 8‐bit value by command function, with the exception that the LSB (least significant bit) must always be ‘0’. Once the I2C address has been changed, it will be saved in the system memory, and it will revert back to the default address if either RS232 or SPI protocol is selected. The I2C interface is capable of receiving data at up to 100KHz‐clock rate. SPI protocol: To enter the SPI mode, place a jumper on R2. SPI mode has a normally high level idle clock. When Slave Select is LOW, data is sampled on the rising edge of the Clock. The SPI interface is capable of receiving data at up to 100KHz‐clock rate. RS232 protocol: To enter the RS232 mode, both R1 and R2 should be open. The RS232 signal must be 5V TTL compatible. Communication format is 8‐bit data, 1 Stop bit, no parity, no hand‐
shaking. Default BAUD rate is 9600, and is changeable with a command function. Once the BAUD rate has been changed, it will be saved in the system memory, and it will revert back to the default address if either I2C or SPI protocol is selected. ASCII TEXT
To display normal text, just enter its ASCII number. A number from 0x00 to 0x07 displays the user defined custom character, 0x20 to 0x7F displays the standard set of characters, 0xA0 to 0xFD display characters and symbols that are factory‐masked on the SPLC780D controller. 0xFE is reserved. [6] Table of Commands Prefix 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE CMD 0x41 0x42 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4E 0x51 0x52 0x53 0x54 0x55 0x56 0x61 0x62 0x70 0x71 0x72 Param None None 1 Byte None None None None None None None None None 1 Byte 1 Byte 9 Byte None None 1 Byte 1 Byte None None None Description Display on Display off Set cursor Cursor home Underline cursor on Underline cursor off Move cursor left one place Move cursor right one place Blinking cursor on Blinking cursor off Backspace Clear screen Set contrast Set backlight brightness Load custom character Move display one place to the left Move display one place to the right Change RS232 BAUD rate 232 Change I2C address Display firmware version number Display RS232 BAUD rate Display I2C address Changing the I2C Slave Address Syntax hexadecimal 0xFE 0x62 [adr] Parameter Parameter Length Description [adr] 1 byte New I2C address, 0x00 – 0xFE The LSB is always ‘0’. Description This command sets the I2C address, the address must be an even number, (LSB = 0). The
address change requires 20 microsecond to take effect; therefore, the subsequent input
must have an appropriate delay. The default I2C address can be restored if SPI or RS232
is selected as the communication mode.
Default 0x50 [7] Changing BAUD Rate Syntax hexadecimal Parameter Parameter [baud] Description
0xFE 0x61 [baud] Length Description 1 byte New RS232 BAUD Rate, 1 ‐ 8 This command sets the RS232 BAUD rate, the single byte parameter select the desired
BAUD rate as in the table below. The new BAUD rate requires 20 microsecond to take
effect, therefore, the subsequent input must have an appropriate delay. The default
BAUD rate can be restored if I2C or SPI is selected as the communication mode. Illegal
parameter input will be discarded.
Default 9600 BAUD Parameter
1 2 3 4 5 6 7 8 BAUD
300 1200 2400 9600 14400 19.2K 57.6K 115.2K Turn On Display Syntax Parameter Description
Default Turn Off Display Syntax Parameter hexadecimal Parameter None 0xFE 0x41 Length Description None Turn on LCD screen This command turns on the LCD display screen, the display text is not altered.
LCD screen is on hexadecimal Parameter None 0xFE 0x42 Length Description None Turn off LCD screen Description
This command turns off the LCD display screen, the display text is not altered.
Default LCD screen is on [8] Set Cursor Position Syntax hexadecimal 0xFE 0x45 [pos] Parameter Parameter Length Description [pos] 1 byte Put cursor at location specified by [pos], 0x00 to 0x67
Description
This command moves the cursor to a specified location where the next character will be displayed. The
typical cursor position for a 4-line display is show below; a cursor position outside these ranges will not
be viewable.
.
Line1 Line 2 Line 3 Line 4 Default Home Cursor Syntax Parameter Column1
0x00 0x40 0x14 0x54 Column20
0x13 0x53 0x27 0x67 After a reset, the cursor is on position 0x00. hexadecimal Parameter None 0xFE 0x46 Length Description None Position cursor at line 1 column 1 Description This command move the cursor to line 1, column 1 of the LCD screen, the display text is not altered.
Default Turn On Underline Cursor Syntax hexadecimal Parameter Parameter None Description
None 0xFE 0x47 Length Description None Turn on underline cursor This command turns on the underline cursor, the cursor position is where the next character will
appear.
Default The underline cursor is off. Turn Off Underline Cursor Syntax hexadecimal Parameter Parameter None 0xFE 0x48 Length Description None Turn off underline cursor Description
This command turns off the underline cursor.
Default The underline cursor is off. [9] Move Cursor Left One Space Syntax hexadecimal Parameter Parameter None Description
Default 0xFE 0x4A Length Description None Move cursor right 1 space This command moves the cursor position right 1 space, regardless the cursor is displayed or not, and
the displayed character is not altered
None Turn On Blinking Cursor Syntax hexadecimal Parameter Parameter None Description
This command moves the cursor position left 1 space, regardless the cursor is displayed or not, and the
displayed character is not altered
Default None Move Cursor Right One Space Syntax hexadecimal Parameter Parameter None Description
0xFE 0x49 Length Description None Move cursor left 1 space 0xFE 0x4B Length Description None Turn on the blinking cursor This command turns on the blinking cursor, both the cursor and the character on the cursor will blink.
Default The blinking cursor is off. Turn Off Blinking Cursor Syntax hexadecimal 0xFE 0x4C Parameter Parameter Length Description None None Turn off the blinking cursor Description
Default Back Space Syntax Parameter This command turns off the blinking cursor.
The blinking cursor is off. hexadecimal 0xFE 0x4E Parameter Length Description Move cursor back one space, deletes the character on the cursor.
None
None
Description
This command is destructive backspace, the cursor is moved back one space and the character on the
cursor is deleted.
Default None. [10] Clear Screen Syntax Parameter hexadecimal Parameter None None
0xFE 0x51 Length Description Clear LCD and move cursor to line 1 column 1.
Description
This command clears the entire display and place the cursor at line 1 column 1.
Default None. Set Display Contrast Syntax hexadecimal 0xFE 0x52 [contrast] Parameter Parameter Length Description [contrast]
1 byte Set the display contrast, value between 1 to 50
Description
This command sets the LCD character display contrast, the contrast setting is between 1 to 50, where
50 is the highest contrast.
Default Default contrast value is 40. Set Backlight Brightness Syntax hexadecimal 0xFE 0x53 [brightness] Parameter Parameter Length Description [brightness] 1 byte Set the LCD backlight brightness level, value between 1 to 8
Description
This command set the LCD display backlight brightness level, the value is between 1 to 8.
Default Default brightness value is 1. Load Custom Characters Syntax hexadecimal Parameter Parameter [addr] 1 byte
[D0..D7]
Description
Default 0xFE 0x54 [addr] [d0 …d7] Length Description Custom character address, 0 – 7
8 bytes Custom character pattern bit map
There are space for eight user defined custom characters, this command load the custom character into
one of the eight locations. The custom character pattern is bit mapped into 8 data bytes, the bit map for
Spanish character ‘¿’ is shown in table below, to display the custom character, user simply enter the
address of the character (0 to 8).
None. Bit Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 7 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 4 0 0 0 0 1 1 0 0 3 0 0 0 1 0 0 1 0 2 1 0 1 0 0 0 1 0 [11] 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 Hex 0x04 0x00 0x04 0x08 0x10 0x11 0x0E 0x00 Shift Display to the Left Syntax hexadecimal Parameter Parameter None None
Description
Default 0xFE 0x56 Length Description Shift the LCD screen to the right one Place.
0xFE 0x70 Length Description Display the firmware version number.
Description
This command displays the micro-controller firmware version number.
None. Display RS232 Baud Rate Syntax hexadecimal Parameter Parameter None None
Default Display I2C Address Syntax Parameter Description
Default
None Default Description
This command shifts the display one place to the right, the cursor position also moves with the display,
and the display data is not altered.
Display Firmware Version Number Syntax hexadecimal Parameter Parameter None None
0xFE 0x71 Length Description Display Baud Rate
This command displays the current RS232 BAUD rate.
None. hexadecimal Parameter None None
0xFE 0x72 Length Description 2
Display I C Address
This command displays the current I2C slave address.
None.
[12] This command shifts the display one place to the left, the cursor position also moves with the display,
and the display data is not altered.
Default None Shift Display to the Right Syntax hexadecimal Parameter Parameter None None
Description
0xFE 0x55 Length Description Shift the LCD screen to the left one Place.
Built‐in Font Table [13] Example Initialization Program See program code at http://www.newhavendisplay.com/app_notes/Serial_LCD.txt Quality Information Test Item Content of Test High Temperature storage Endurance test applying the high storage temperature for a long time. Endurance test applying the low storage temperature for a long time. Endurance test applying the electric stress (voltage & current) and the high thermal stress for a long time. Endurance test applying the electric stress (voltage & current) and the low thermal stress for a long time. Endurance test applying the electric stress (voltage & current) and the high thermal with high humidity stress for a long time. Endurance test applying the electric stress (voltage & current) during a cycle of low and high thermal stress. Endurance test applying vibration to simulate transportation and use. Low Temperature storage High Temperature Operation Low Temperature Operation High Temperature / Humidity Operation Thermal Shock resistance Vibration test Static electricity test Test Condition Endurance test applying electric static discharge. +80⁰C , 48hrs
2 ‐30⁰C , 48hrs
1,2
+70⁰C 48hrs
2 ‐20⁰C , 48hrs
1,2
+40⁰C , 90% RH , 48hrs 1,2
0⁰C,30min ‐> +25⁰C,5min ‐> +50⁰C,30min = 1 cycle 10 cycles 10‐55Hz , 15mm amplitude. 60 sec in each of 3 directions X,Y,Z For 15 minutes VS=800V, RS=1.5kΩ, CS=100pF One time Note 1: No condensation to be observed. Note 2: Conducted after 4 hours of storage at 25⁰C, 0%RH. Note 3: Test performed on product itself, not inside a container. Precautions for using LCDs/LCMs See Precautions at www.newhavendisplay.com/specs/precautions.pdf Warranty Information and Terms & Conditions http://www.newhavendisplay.com/index.php?main_page=terms [14] Note
3 
Download