Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
LCD Display NHD-C0216CZ
Posted: Mon Mar 26, 2012 11:43 am
Hello everyone!
For very first time I need to create a driver for this type of display. The difference at this display is that the interface driving this device is SPI or I2C, not a driver to include in my program. I intend to use SPI communication. So I don't know how to initialize the display. If someone ever works with that type of display I would be very thankful to give me some example code or reference.
Excuse my bad english!
Thx in advance!
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Mar 26, 2012 1:40 pm
You didn't post the full part number of the lcd. Just searching with Google
for NHD-C0216CZ gives this data sheet:
http://www.newhavendisplay.com/specs/NHD-C0216CZ-NSW-BBW-3V3.pdf
The data sheet has pseudo-code for a driver on page 10.
You could translate this to CCS.
what is that mean P3=1; or P1=1 or SI=1;
What those notions means in that algorithm?
I have read the whole datasheet and i'm aware about interface communication.
I hope you understand my problem.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Mar 27, 2012 1:50 pm
The P1 and P3 lines are likely some setup code for the i/o ports on
the 8051 microcontroller. You can ignore those lines.
SI is the serial input pin to the lcd. You can use output_low(SI)
and output_high(SI) for those lines.
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum