NHD-C160100AZ-RN-GBW Newhaven Display, NHD-C160100AZ-RN-GBW Datasheet - Page 8
NHD-C160100AZ-RN-GBW
Manufacturer Part Number
NHD-C160100AZ-RN-GBW
Description
LCD COG GRAPH 160X100 REFLECT
Manufacturer
Newhaven Display
Series
NHD-C160100AZ-Rr
Datasheet
1.NHD-C160100AZ-RN-GBW.pdf
(12 pages)
Specifications of NHD-C160100AZ-RN-GBW
Display Type
STN - Super-Twisted Nematic
Display Mode
Reflective
Viewing Area
38.50mm L x 25.20mm W
Backlight
Without Backlight
Dot Size
0.20mm W x 0.20mm H
Dot Pitch
0.22mm x 0.22mm
Dot Pixels
160 x 100
Pixel Density
160 x 100
Fluid Type
STN
Module Size (w X H X T)
41.5 mm x 36 mm x 2.1 mm
Backlighting
None
Operating Temperature Range
- 20 C to + 70 C
Product
Graphic LCD Module
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Interface
-
Lead Free Status / Rohs Status
Details
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
NHD-C160100AZ-RN-GBW
Manufacturer:
Newhaven Display Intl
Quantity:
135
Example Initialization Program
void write_command(unsigned char datum)
{
A0=0;
E=1;
P1 = datum;
CS1=0;
RW=0;
RW=1;
CS1=1;
}
//‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
void write_data(unsigned char datum)
{
A0=1;
E=1;
P1=datum;
CS1=0;
RW=0;
RW=1;
CS1=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(0xa1); //Set scan direction //changed from 0 to 1
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
//‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
[8]
/*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*/