NHD-0440AZ-NSW-FBW Newhaven Display, NHD-0440AZ-NSW-FBW Datasheet - Page 11
![LCD Character Display Modules FSTN (+) Transm 190.0 x 54.0](/photos/26/60/266017/prd_zm_447_sml.jpg)
NHD-0440AZ-NSW-FBW
Manufacturer Part Number
NHD-0440AZ-NSW-FBW
Description
LCD Character Display Modules FSTN (+) Transm 190.0 x 54.0
Manufacturer
Newhaven Display
Datasheet
1.NHD-0440AZ-NSW-FBW.pdf
(12 pages)
Specifications of NHD-0440AZ-NSW-FBW
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4-bit Initialization:
/**********************************************************/
void command(char i)
{
}
/**********************************************************/
void write(char i)
{
}
/**********************************************************/
void Nybble()
{
}
/**********************************************************/
void init()
{
}
/**********************************************************/
P1 = i;
D_I =0;
R_W =0;
Nybble();
i = i<<4;
P1 = i;
Nybble();
P1 = i;
D_I =1;
R_W =0;
Nybble();
i = i<<4;
P1 = i;
Nybble();
E = 1;
Delay(1);
E = 0;
P1 = 0;
P3 = 0;
Delay(100);
P1 = 0x30;
Delay(30);
Nybble();
Delay(10);
Nybble();
Delay(10);
Nybble();
Delay(10);
P1= 0x20;
Nybble();
command(0x28);
command(0x10);
command(0x0F);
command(0x06);
//put data on output Port
//D/I=LOW : send instruction
//R/W=LOW : Write
//Send lower 4 bits
//Shift over by 4 bits
//put data on output Port
//Send upper 4 bits
//put data on output Port
//D/I=HIGH : send data
//R/W=LOW : Write
//Clock lower 4 bits
//Shift over by 4 bits
//put data on output Port
//Clock upper 4 bits
//enable pulse width
//Clock enable: falling edge
//Wait >15 msec after power is applied
//put 0x30 on the output port
//must wait 5ms, busy flag not available
//command 0x30 = Wake up
//must wait 160us, busy flag not available
//command 0x30 = Wake up #2
//must wait 160us, busy flag not available
//command 0x30 = Wake up #3
//can check busy flag now instead of delay
//put 0x20 on the output port
//Function set: 4-bit interface
//Function set: 4-bit/2-line
//Set cursor
//Display ON; Blinking cursor
//Entry Mode set
>= 300ns