NHD-C128128BZ-FSW-GBW Newhaven Display, NHD-C128128BZ-FSW-GBW Datasheet - Page 9
NHD-C128128BZ-FSW-GBW
Manufacturer Part Number
NHD-C128128BZ-FSW-GBW
Description
LCD COG GRAPH 128X128 WH TRANSFL
Manufacturer
Newhaven Display
Series
NHD-C128128BZ-Fr
Datasheet
1.NHD-C128128BZ-FSW-GBW.pdf
(13 pages)
Specifications of NHD-C128128BZ-FSW-GBW
Display Type
STN - Super-Twisted Nematic
Display Mode
Transflective
Viewing Area
65.50mm L x 60.50mm W
Backlight
LED - White
Dot Size
0.42mm W x 0.42mm H
Dot Pitch
0.44mm x 0.44mm
Dot Pixels
128 x 128
Pixel Density
128 x 128
Fluid Type
STN
Module Size (w X H X T)
71.3 mm x 75.41 mm x 6 mm
Backlighting
LED White
Operating Temperature Range
- 20 C to + 70 C
Product
Graphic LCD Module
Style
Chip-on-Glass (COG)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Interface
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Example Initialization Program
/*************************************************************/
/*************************************************************/
void write_command(unsigned char datum)
{
A0=0;
E=1;
bus=datum;
CSB=0;
RW=0;
RW=1;
CSB=1;
}
/*************************************************************/
void write_data(unsigned char datum)
{
A0=1;
E=1;
bus=datum;
CSB=0;
RW=0;
RW=1;
CSB=1;
}
/*************************************************************/
void lcd_init(void){
write_command(0xA2); //ICON OFF;
write_command(0xAE); //Display OFF
write_command(0x48); //Set Duty ratio
write_command(0x80); //No operation
write_command(0xa0); //Set scan direction
write_command(0xc8); //SHL select
write_command(0x40); //Set START LINE
write_command(0x00);
write_command(0xab); //OSC on
write_command(0x64); //3x
delay(2000);
write_command(0x65); //4x
delay(2000);
write_command(0x66); //5x
delay(2000);
write_command(0x67); //6x
delay(2000);
write_command(Ra_Rb); //RESISTER SET
write_command(0x81); //Set electronic volume register
write_command(vopcode); //n=0~3f
write_command(0x57); //1/12bias
write_command(0x92); //FRC and pwm
write_command(0x2C);
delay(20000);//200ms
write_command(0x2E);
delay(20000);//200ms
write_command(0x2F);
/*Instruction register*/
/*Read inactive*/
/*put data on port 1*/
/*Chip select active*/
/*Write active*/
/*Write inactive; latch in data*/
/*Chip select inactive*/
/*DDRAM data register*/
[9]