NHD-0208BZ-RN-YBW-33V

[10]
Example Initialization Program
8-bit Initialization:
/**********************************************************/
void command(char i)
{
P1 = i; //put data on output Port
D_I =0; //D/I=LOW : send instruction
R_W =0; //R/W=LOW : Write
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
/**********************************************************/
void write(char i)
{
P1 = i; //put data on output Port
D_I =1; //D/I=HIGH : send data
R_W =0; //R/W=LOW : Write
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
/**********************************************************/
void init()
{
E = 0;
Delay(100); //Wait >40 msec after power is applied
command(0x30); //command 0x30 = Wake up
Delay(30); //must wait 5ms, busy flag not available
command(0x30); //command 0x30 = Wake up #2
Delay(10); //must wait 160us, busy flag not available
command(0x30); //command 0x30 = Wake up #3
Delay(10); //must wait 160us, busy flag not available
command(0x38); //Function set: 8-bit/2-line
command(0x10); //Set cursor
command(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
/**********************************************************/
[11]
4-bit Initialization:
/**********************************************************/
void command(char i)
{
P1 = i; //put data on output Port
D_I =0; //D/I=LOW : send instruction
R_W =0; //R/W=LOW : Write
Nybble(); //Send lower 4 bits
i = i<<4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Send upper 4 bits
}
/**********************************************************/
void write(char i)
{
P1 = i; //put data on output Port
D_I =1; //D/I=HIGH : send data
R_W =0; //R/W=LOW : Write
Nybble(); //Clock lower 4 bits
i = i<<4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Clock upper 4 bits
}
/**********************************************************/
void Nybble()
{
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
/**********************************************************/
void init()
{
P1 = 0;
P3 = 0;
Delay(100); //Wait >40 msec after power is applied
P1 = 0x30; //put 0x30 on the output port
Delay(30); //must wait 5ms, busy flag not available
Nybble(); //command 0x30 = Wake up
Delay(10); //must wait 160us, busy flag not available
Nybble(); //command 0x30 = Wake up #2
Delay(10); //must wait 160us, busy flag not available
Nybble(); //command 0x30 = Wake up #3
Delay(10); //can check busy flag now instead of delay
P1= 0x20; //put 0x20 on the output port
Nybble(); //Function set: 4-bit interface
command(0x28); //Function set: 4-bit/2-line
command(0x10); //Set cursor
command(0x0F); //Display ON; Blinking cursor
command(0x06); //Entry Mode set
}
/**********************************************************/
[12]
Quality Information
Test Item
Content of Test
Test Condition
Note
High Temperature storage
Endurance test applying the high
storage temperature for a long time.
+80C , 48hrs
2
Low Temperature storage
Endurance test applying the low storage
temperature for a long time.
-30C , 48hrs
1,2
High Temperature
Operation
Endurance test applying the electric stress
(voltage & current) and the high thermal
stress for a long time.
+70C 48hrs
2
Low Temperature
Operation
Endurance test applying the electric stress
(voltage & current) and the low thermal
stress for a long time.
-20C , 48hrs
1,2
High Temperature /
Humidity Operation
Endurance test applying the electric stress
(voltage & current) and the high thermal
with high humidity stress for a long time.
+40C , 90% RH , 48hrs
1,2
Thermal Shock resistance
Endurance test applying the electric stress
(voltage & current) during a cycle of low
and high thermal stress.
0C,30min -> 25⁰C,5min ->
50⁰C,30min = 1 cycle
10 cycles
Vibration test
Endurance test applying vibration to
simulate transportation and use.
10-55Hz , 15mm amplitude.
60 sec in each of 3 directions
X,Y,Z
For 15 minutes
3
Static electricity test
Endurance test applying electric static
discharge.
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

NHD-0208BZ-RN-YBW-33V

Mfr. #:
Manufacturer:
Newhaven Display
Description:
LCD Character Display Modules & Accessories STN- Y/G Refl 58.0 x 32.0
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet