NHD-0216CW-AY3 - NewHaven Display

NHD-0216CW-AY3
Character OLED Display Module
NHD0216CWAY3-
Newhaven Display
2 lines x 16 characters
Character OLED Module
Model
Yellow
2.4V~5.5V Supply Voltage
Newhaven Display International, Inc.
2661 Galvin Ct.
Elgin IL, 60124
Ph: 847-844-8795
Fax: 847-844-8796
www.newhavendisplay.com
[email protected]
[email protected]
Document Revision History
Revision
0
1
Date
12/15/2014
4/6/2015
Description
Initial Release
Pin Description, Electrical Characteristics Updated
Functions and Features






2 lines x 16 characters
Built-in LCD comparable controller
4/8-bit Parallel, SPI, or I²C MPU interface
2.8V or 5.0V operation
RoHS compliant
Slim design
[2]
Changed by
AK
PB
L
A
I
Mechanical Drawing
1
2
3
4
A
Rev
D
O
C
1
Date
A
B
C
D
Date
10/22/14
Unit
Gen. Tolerance
±0.3mm
2
6
T
N
F
N
Notes:
1. Color: Yellow
2. Display format: 2 lines x 16 characters
3. Supply Voltage: 2.4V~5.5V
4. Interface: 4/8-bit Parallel, SPI, I²C
5. Controller: US2066
6. RoHS Compliant
Description
E
D
I
B
C
5
3
4
mm
5
Model:
NHD-0216CW-AY3
6
The drawing contained herein is the exclusive property of Newhaven Display International, Inc. and shall not be copied, reproduced, and/or disclosed in any format without permission.
[3]
Pin Description
Parallel Interface:
Pin No.
1
2
Symbol
VSS
VDD
External Connection
Power Supply
Power Supply
3
REGVDD
Power Supply
4
5
6
7-10
D/C
R/W
E
DB0 – DB3
MPU
MPU
MPU
MPU
11-14
15
16
17-19
20
DB4 – DB7
/CS
/RES
BS0 – BS2
VSS
MPU
MPU
MPU
MPU
Power Supply
Function Description
Ground
Supply Voltage for OLED and Logic
VDD=2.8V for 2.8V operation, VDD=5V for 5V operation
Internal 5V I/O Regulator select signal
REGVDD=0V for 2.8V operation, REGVDD=5V for 5V operation
Data/Command select signal. D/C=0: Command, D/C=1: Data
Read/Write select signal, R/W=1: Read R/W=0: Write
Operation Enable signal. Falling edge triggered.
Four low order bi-directional three-state data bus lines.
These four are not used during 4-bit operation.
Four high order bi-directional three-state data bus lines.
Active LOW Chip Select signal
Active LOW Reset signal
MPU interface select signal
Ground
Serial Interface:
Pin No.
1
2
Symbol
VSS
VDD
External Connection
Power Supply
Power Supply
3
REGVDD
Power Supply
4-6
7
8
9
10-14
15
16
17-19
20
NC
SCLK
SDI
SDO
NC
/CS
/RES
BS0 – BS2
VSS
MPU
MPU
MPU
MPU
MPU
MPU
Power Supply
Function Description
Ground
Supply Voltage for OLED and Logic
VDD=2.8V for 2.8V operation, VDD=5V for 5V operation
Internal 5V I/O Regulator select signal
REGVDD=0V for 2.8V operation, REGVDD=5V for 5V operation
No Connect. Tie to Ground
Serial Clock signal
Serial Data Input signal
Serial Data Output signal
No Connect. Tie to Ground
Active LOW Chip Select signal
Active LOW Reset signal
MPU interface select signal
Ground
I²C Interface:
Pin No.
1
2
Symbol
VSS
VDD
External Connection
Power Supply
Power Supply
3
REGVDD
Power Supply
4
5-6
7
8
9
10-15
16
17-19
20
SA0
NC
SCL
SDAIN
SDAOUT
NC
/RES
BS0 – BS2
VSS
MPU
MPU
MPU
MPU
MPU
MPU
Power Supply
Function Description
Ground
Supply Voltage for OLED and Logic
VDD=2.8V for 2.8V operation, VDD=5V for 5V operation
Internal 5V I/O Regulator select signal
REGVDD=0V for 2.8V operation, REGVDD=5V for 5V operation
Slave Address select signal
No Connect. Tie to Ground
Serial Clock signal
Serial Data Input.
Serial Data Output. Tie together with SDAIN (pin 8)
No Connect. Tie to Ground
Active LOW Reset signal
MPU interface select signal
Ground
[4]
MPU Interface Pin Selections
Pin
Name
BS0
BS1
BS2
4-bit Parallel
6800 interface
1
0
1
4-bit Parallel
8080 interface
1
1
1
8-bit Parallel
6800 interface
0
0
1
8-bit Parallel
8080 interface
0
1
1
Serial
Interface
0
0
0
I²C
Interface
0
1
0
MPU Interface Pin Assignment Summary
Bus
Interface
4-bit 6800
4-bit 8080
8-bit 6800
8-bit 8080
SPI
I²C
D7
D6
Data/Command Interface
D5
D4
D3
D2
D1
D[7:4]
Tie LOW
D[7:4]
Tie LOW
D[7:0]
D[7:0]
Tie LOW
SDO
SDI
Tie LOW
SDAOUT SDAIN
[5]
D0
SCLK
SCL
Control Signals
E
R/W
/CS
D/C
E
R/W
/CS
D/C
/RD
/WR
/CS
D/C
E
R/W
/CS
D/C
/RD
/WR
/CS
D/C
Tie LOW
/CS
Tie LOW
Tie LOW
SA0
/RES
/RES
/RES
/RES
/RES
/RES
/RES
Electrical Characteristics
Item
Operating Temperature Range
Storage Temperature Range
Supply Voltage for logic
Supply Voltage for I/O Regulator
Supply Current
Sleep Mode Current
“H” Level input
“L” Level input
“H” Level output
“L” Level output
Symbol
Top
Tst
VDD
REGVDD
IDD
IDDSLEEP
Vih
Vil
Voh
Vol
Condition
Absolute Max
Absolute Max
VDD = 5V
Min.
-40
-40
2.4
4.4
0.8*VDD
0.9*VDD
-
Typ.
2.8
5.0
70
2
-
Max.
+85
+90
5.5
5.5
135
5
0.2*VDD
0.1*VDD
Unit
⁰C
⁰C
V
V
mA
mA
V
V
V
V
Optical Characteristics
Item
Viewing Angle – Top
Viewing Angle – Bottom
Viewing Angle – Left
Viewing Angle – Right
Contrast Ratio
Response Time (rise)
Response Time (fall)
Brightness
Lifetime
Symbol
Condition
Cr ≥ 10,000:1
Cr
Tr
Tf
Min.
80
80
80
80
10,000:1
120
80,000
Typ.
10
10
150
-
Max.
-
Unit
⁰
⁰
⁰
⁰
us
us
2
cd/m
Hrs
50% checkerboard
Ta=25°C, 50%
checkerboard
Note: Lifetime at typical temperature is based on accelerated high-temperature operation. Lifetime is tested at
average 50% pixels on and is rated as Hours until Half-Brightness. The Display OFF command can be used to
extend the lifetime of the display.
Luminance of active pixels will degrade faster than inactive pixels. Residual (burn-in) images may occur. To avoid
this, every pixel should be illuminated uniformly.
Controller Information
Built-in US2066 controller.
Please download specification at http://www.newhavendisplay.com/app_notes/US2066.pdf
DDRAM Address
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
[6]
Table of Commands
[7]
[8]
[9]
[10]
[11]
[12]
Timing Characteristics
6800-Series Parallel Interface:
Condition 1: /CS low pulse width > E high pulse width
[13]
Condition 2: /CS low pulse width < E high pulse width
[14]
8080-Series Parallel Interface:
[15]
Serial Interface:
[16]
I²C Interface:
[17]
Built-in Font Tables
[18]
[19]
[20]
Example Program Code
void command(char i)
{
C_S = 0;
P1 = i;
D_C = 0;
R_W = 0;
E = 1;
delayms(1);
E = 0;
}
void data(char i)
{
C_S = 0;
P1 = i;
D_C = 1;
R_W = 0;
E = 1;
delayms(1);
E = 0;
}
//chip select LOW – active
//data on port
//data/command select LOW – command
//read/write select LOW – write
//enable HIGH
//delay
//enable LOW – data latched
//chip select LOW – active
//data on port
//data/command select HIGH – data
//read/write select LOW – write
//enable HIGH
//delay
//enable LOW – data latched
void output()
{
int i;
command(0x01);
command(0x02);
for(i=0;i<16;i++)
{
data(0x1F);
}
command(0xC0);
for(i=0;i<16;i++)
{
data(0x1F);
}
}
void init()
{
RES = 1;
delayms(1);
command(0x2A);
command(0x71);
data(0x00);
command(0x28);
command(0x08);
command(0x2A);
command(0x79);
//clear display
//return home
//write solid blocks
//line 2
//write solid blocks
//reset HIGH – inactive
//delay
//function set (extended command set)
//function selection A
// disable internal VDD regulator (2.8V I/O). data(0x5C) = enable regulator (5V I/O)
//function set (fundamental command set)
//display off, cursor off, blink off
//function set (extended command set)
//OLED command set enabled
[21]
command(0xD5);
command(0x70);
command(0x78);
command(0x08);
command(0x06);
command(0x72);
data(0x00);
command(0x2A);
command(0x79);
command(0xDA);
command(0x10);
command(0xDC);
command(0x00);
command(0x81);
command(0x7F);
command(0xD9);
command(0xF1);
command(0xDB);
command(0x40);
command(0x78);
command(0x28);
command(0x01);
command(0x80);
command(0x0C);
delayms(100);
//set display clock divide ratio/oscillator frequency
//set display clock divide ratio/oscillator frequency
//OLED command set disabled
//extended function set (2-lines)
//COM SEG direction
//function selection B
//ROM CGRAM selection
//function set (extended command set)
//OLED command set enabled
//set SEG pins hardware configuration
//set SEG pins hardware configuration
//function selection C
//function selection C
//set contrast control
//set contrast control
//set phase length
//set phase length
//set VCOMH deselect level
//set VCOMH deselect level
//OLED command set disabled
//function set (fundamental command set)
//clear display
//set DDRAM address to 0x00
//display ON
//delay
}
void main(void)
{
init();
while(1)
{
output();
delayms(2000);
}
}
Precautions for using OLEDs/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
[22]