NHD-0216K3Z-NS(RGB)-FBW-V3 数据手册
Product Specification
NHD-0216K3Z-NS(RGB)-FBW-V3
Newhaven Display International, Inc.
2661 Galvin Court, Elgin, IL 60124 USA
Ph: 847.844.8795 | Fx: 847.844.8796
www.newhavendisplay.com
REACH
Compliant
RoHS
Compliant
Table of Contents
Document Revision History ……………………………………………………………………………………………………………………..…. 2
Mechanical Drawing ………………………………………………………………………………………………………..…………….….……... 3
Pin Description ……………………………………………………………………………………………………………………………….….……… 4
Electrical Characteristics ……………………………………………………………………………….…………………………………….…….. 5
Optical Characteristics ………………………………………………………………………………………………………………………………… 5
Driver Information ……………………………………………………………………………………………………..………………………………. 5
Table of Commands ……………………………………………………………………………………………………………….…………………… 8
Built-in Font Table …………………………….………………………………………………………………..……………………………….…... 14
Quality Information ………………………………………………………………………………………………….………………………………. 15
Additional Resources
➢ Support Forum: http://www.nhdforum.newhavendisplay.com
➢ Github: https://github.com/newhavendisplay
➢ Example Code: https://www.newhavendisplay.com/example_code.html
➢
Knowledge Center: https://www.newhavendisplay.com/knowledge_center.html
➢ Quality Center: https://www.newhavendisplay.com/quality_center.html
➢ Precautions for using LCDs/LCMs: https://www.newhavendisplay.com/specs/precautions.pdf
➢ Warranty / Terms & Conditions: https://www.newhavendisplay.com/terms.html
1
Document Revision History
Revision
Date
Description
Changed By
0
5/16/12
Initial Release
SB
1
10/1/12
Character address code updated
AK
2
5/30/13
Electrical characteristics updated, RGB backlight note added in
command table
AK
3
11/15/16
Mechanical Drawing, Electrical & Optical Char. Updated
SB
4
9/13/17
Electrical Characteristics Updated
TM
5
9/25/18
Mechanical Drawing, Backlight Characteristics, & I2C Speed
Updated
SB
6
8/27/19
I2C Information, Custom Character note Added, Pinout
Description revised
AS
7
12/2/2021
Backlight restructure & ratings updated
ZP
2
1
A
2
3
Mechanical Drawing
J1
4
5
6
SYMBOL
7
8
REVISION
DATE
A
J2
J3
B
B
C
C
PIN ASSIGNMENT
D
Display Pattern
E
1
2
3
RX
VSS
VDD
1
2
3
4
5
6
SPISS
SDO
SCK/SCL
SDI/SDA
VSS
VDD
1
2
3
4
K
E
A-RED
A-GREEN
A-BLUE
D
Standard Tolerance:
(Unless otherwise specified)
F
Product Descrip�on: 2x16 Character LCD
1. LCD Driver IC: ST7066U & PIC16F690
2. LCD Inteface: I2C, SPI, & RS232/TTL
3. LCD Power Requirement: 5.0V
4. Op�cal Features: FSTN (-), Transmissive
1
2
Linear:
±0.3mm
Unless otherwise specified:
• Dimensions are in Millimeters
• Third Angle Projection
SCALE:4:1
3
4
5
Revision:
Drawing/Part Number:
NHD-0216K3Z-NS(RGB)-FBW-V3
Drawn By:
Drawn Date:
Z.Palrang
12/2/2021
Approved By:
Approved Date:
Do Not Scale Drawing
Z.Palrang
12/2/2021
1A
Size:
A3
Scale:
NS
Sheet 1 of 1
This drawing is solely the property of Newhaven Display International, Inc.
The information it contains is not to be disclosed, reproduced or copied in
whole or part without written approval from Newhaven Display.
6
7
8
F
Pin Description
J1:
Pin No.
1
2
3
Symbol
RX
VSS
VDD
External Connection
MPU
Power Supply
Power Supply
Function Description
RS-232 (TTL) Serial input port
Ground
Supply Voltage for logic (+5.0V)
Symbol
SPISS
SDO
SCK/SCL
SDI/SDA
VSS
VDD
External Connection
MPU
NC
MPU
MPU
Power Supply
Power Supply
Function Description
SPI Slave Select (NC in I2C mode)
No Connect
Serial Clock
Serial Data In (SPI) / Serial Data (I2C)
Ground
Supply Voltage for logic (+5.0V)
Symbol
K
A-RED
A-GREEN
A-BLUE
External Connection
Power Supply
Power Supply
Power Supply
Power Supply
Function Description
Ground for LED backlights
Power supply for Red LED (20mA)
Power supply for Green LED (20mA)
Power supply for Blue LED (20mA)
J2:
Pin No.
1
2
3
4
5
6
J3:
Pin No.
1
2
3
4
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
RS-232
Description
Self-test
100KHz max clock
50KHz max clock
5V, TTL signal
4
Electrical Characteristics
Item
Operating Temperature Range
Storage Temperature Range
Supply Voltage
Supply Current (LCD)
IDD
“H” Level input
“L” Level input
VIH
VIL
Condition
Absolute Max
Absolute Max
VDD = 5.0V
TOP = 25°C
-
IR
VR
IG
VG
IB
VB
ILED = 20mA
ILED = 30mA
ILED = 30mA
Symbol
ϕY+
ϕYθXθX+
CR
TR
TF
Condition
Backlight Supply Current
Backlight Supply Voltage
Backlight Supply Current
Backlight Supply Voltage
Backlight Supply Current
Backlight Supply Voltage
Symbol
TOP
TST
VDD
Red
Green
Blue
Min.
-20
-30
4.7
Typ.
5.0
Max.
+70
+80
5.3
Unit
⁰C
⁰C
V
2.0
3.5
4.5
mA
0.7*VDD
VSS
-
VDD
0.6
V
V
1.8
2.8
2.8
20
2.1
30
3.1
30
3.1
2.4
3.4
3.4
mA
V
mA
V
mA
V
Optical Characteristics
Optimal
Viewing
Angles
Item
Top
Bottom
Left
Right
Contrast Ratio
Response Time
Rise
Fall
CR ≥ 2
TOP = 25°C
Min.
2
-
Typ.
40
60
60
60
5
150
200
Max.
250
300
Unit
⁰
⁰
⁰
⁰
ms
ms
Controller Information
Built-in PIC16F690 controller.
Please download specification at http://www.newhavendisplay.com/app_notes/PIC16F690.pdf
5
Communication Information
This display uses a built-in PIC16F690 for serial communication.
100mS delay is required upon power-up for the built-in PIC to initialize the display controller.
I2C protocol:
To enter the I2C mode, place a jumper on R1.
SDA and SCL have pull-up resistors (10K Ohm) on R7 and R8.
The default I2C address is 80 (50 hex) when counting the R/W bit, and 40 (28 hex) if not. 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 RS-232 or SPI protocol is selected.
The I2C interface can receive data at up to 50KHz clock rate.
SPI protocol:
To enter the SPI mode, place a jumper on R2.
SPI mode has a normally high 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.
RS-232 (TTL) protocol:
To enter the RS-232 mode, both R1 and R2 should be open.
The RS-232 signal must be 5V TTL compatible. Communication format is 8-bit data, 1 Stop bit, no parity, no handshaking.
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 to the default address if either I2C or SPI protocol is selected.
Self-Test Mode
To enter self-test mode, both R1 and R2 should be populated with a 0Ω resistor.
In self-test mode the backlight will be turned on and set to high, the contrast will be set to nominal value. Then the
display returns the following screens:
Screen 1:
- Newhaven Display
Screen 2:
- Firmware Version 3.0
Screen 3:
- Default baud rate: 9600
- Default I2C Slave Address: 0x50
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 ST7066U 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
Command
0x41
0x42
0x45
0x46
0x47
0x48
0x49
0x4A
0x4B
0x4C
0x4E
0x51
0x52
0x53
0x54
0x55
0x56
0x61
0x62
0x70
0x71
0x72
Parameter
1 Byte
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 Character Write (0x00 ~ 0xFF) 1
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 RS-232 BAUD rate
Change I2C address
Display firmware version number
Display RS-232 BAUD rate
Display I2C address
Execution time
100uS
100uS
100uS
100uS
1.5mS
1.5mS
1.5mS
100uS
100uS
100uS
100uS
100uS
1.5mS
500uS
100uS
200uS
100uS
100uS
3mS
3mS
4mS
10mS
4mS
* = N/A for RGB models
1
‘Set Cursor’ command must precede ‘Display Character Write’ command when calling Custom Characters.
Changing the I2C Slave Address
Syntax
hexadecimal 0xFE
Parameter
Parameter
[addr]
Length
1 byte
0x62
[addr]
Description
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 microseconds to take effect; therefore, the
subsequent input must have an appropriate delay. The default I 2C address can be
restored if SPI or RS-232 is selected as the communication mode.
Default: 0x50
7
Changing BAUD Rate
Syntax
hexadecimal 0xFE
Parameter
Parameter
[BAUD]
Length
0x61
[baud]
Description
1 byte
New RS-232 BAUD Rate, 1 - 8
Description This command sets the RS-232 BAUD rate. The single byte parameter selects the
desired BAUD rate as in the table below. The new BAUD rate requires 20
microseconds 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.
Parameter
1
2
3
4
5
6
7
8
BAUD
300
1200
2400
9600
14400
19.2K
57.6K
115.2K
Default: 9600 BAUD
Turn On Display
Syntax
Parameter
hexadecimal 0xFE
Parameter
None
0x41
Length
None
Description
Turn on LCD screen
Description This command turns on the LCD display screen. The display text is not altered.
Default: LCD screen is on
Turn Off Display
Syntax
Parameter
hexadecimal 0xFE
Parameter
None
Length
None
0x42
Description
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
Parameter
hexadecimal 0xFE
0x45 [pos]
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 2-line 16-character display is
show below; a cursor position outside these ranges will not be viewable.
Column 1
0x00
0x40
Line 1
Line 2
Column 16
0x0F
0x4F
Default: After a reset, the cursor is on position 0x00
Home Cursor
Syntax
Parameter
hexadecimal 0xFE
Parameter
None
0x46
Length
None
Description
Position cursor at line 1 column 1
Description This command moves the cursor to line 1, column 1 of the LCD screen. The display
text is not altered.
Default: None
Turn On Underline Cursor
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x47
Length
None
Description
Turn on underline cursor
Description This command turns on the underline cursor.
Default: Underline cursor is off
Turn Off Underline Cursor
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
Length
None
0x48
Description
Turn off underline cursor
Description This command turns off the underline cursor.
Default: Underline cursor is off
9
Move Cursor Left One Space
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x49
Length
None
Description
Move cursor left 1 space
Description This command moves the cursor position left 1 space whether the cursor is turned
on or not. The displayed character is not altered.
Default: None
Move Cursor Right One Space
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x4A
Length
None
Description
Move cursor right 1 space
Description This command moves the cursor position left 1 space whether the cursor is turned
on or not. The displayed character is not altered.
Default: None
Turn On Blinking Cursor
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x4B
Length
None
Description
Turn on the blinking cursor
Description This command turns on the blinking cursor.
Default: The blinking cursor is off
Turn Off Blinking Cursor
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
Length
None
0x4C
Description
Turn off the blinking cursor
Description This command turns off the blinking cursor.
Default: The blinking cursor is off
10
Back Space
Syntax
hexadecimal 0xFE
Parameter
0x4E
Parameter
Length
Description
None
None
Move cursor back one space, delete last character.
Description This command is destructive backspace. The cursor is moved back one space and
the character on the cursor is deleted.
Default: None
Clear Screen
Syntax
hexadecimal 0xFE
Parameter
0x51
Parameter
Length
Description
None
None
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
Parameter
Parameter
[contrast]
0x52
Length
1 byte
[contrast]
Description
Set the display contrast, value between 1 and 50
Description This command sets the display contrast. The contrast setting can be between 1
and 50, where 50 is the highest contrast.
Default: 40
Set Backlight Brightness
Syntax
hexadecimal 0xFE
Parameter
Parameter
[brightness]
1 byte
Length
0x53
[brightness]
Description
Set the backlight brightness level, value between 1 and 8
Description This command sets the backlight brightness level. Default: 8.
1 = Backlight OFF & 8 = Backlight On (100%)
11
Load Custom Characters
Syntax
hexadecimal 0xFE
Parameter
0x54
[addr] [d0 …d7]
Parameter
Length
Description
[addr]
1 byte
Custom character address, 0 – 7
[D0...D7] 8 bytes
Custom character pattern bit map
Description There is space for eight user-defined custom characters. This command loads 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.
Bit
7
Byte 1 0
Byte 2 0
Byte 3 0
Byte 4 0
Byte 5 0
Byte 6 0
Byte 7 0
Byte 8 0
Default: None
Note
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
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
In order to display the custom character, user would first need to call ‘Set Cursor
Position’ command, then followed by the address of the custom character (0 to
8).
Shift Display to the Left
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x55
Length
None
Description
Shift the LCD screen to the left 1 space.
Description This command shifts the display to the left 1 space. The cursor position also moves
with the display, and the display data is not altered.
Default: None
Shift Display to the Right
Syntax
hexadecimal 0xFE
Parameter
0x56
Parameter
Length
Description
None
None
Shift the LCD screen to the right 1 space.
Description This command shifts the display to the right 1 space. The cursor position also
moves with the display, and the display data is not altered.
Default: None
12
Display Firmware Version Number
Syntax
hexadecimal 0xFE
Parameter
0x70
Parameter
Length
Description
None
None
Display the firmware version number.
Description This command displays the firmware version.
Default: None
Display RS-232 Baud Rate
Syntax
hexadecimal 0xFE
Parameter
Parameter
None
0x71
Length
None
Description
Display Baud Rate
Description This command displays the RS-232 BAUD rate.
Default: None
Display I2C Address
Syntax
Parameter
hexadecimal 0xFE
0x72
Parameter
Length
Description
None
None
Display I2C Address
Description This command displays the current I2C slave address.
Default: None
Example Initialization Program
See program code at http://www.newhavendisplay.com/app_notes/Serial_LCD.txt
13
Built-in Font Table
14
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
Endurance test applying electric static
discharge.
Test Condition
Note
+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
For 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
3
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.
15