CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

LCD Display NHD-C0216CZ

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

LCD Display NHD-C0216CZ
PostPosted: Mon Mar 26, 2012 11:43 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Mar 26, 2012 1:40 pm     Reply with quote

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.

There is a driver flow-chart and pseudo-code on pages 33-34 here:
http://www.newhavendisplay.com/app_notes/ST7032.pdf
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Tue Mar 27, 2012 2:44 am     Reply with quote

Ok but I met some problems with understanding the notion like:
Quote:
void init() //not this one
//initialize the LCD //not this one
{

P3 = 1; //P3?
P1 = 1; //P1?
.....
SI=1; //likely, Serial Input?

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

View user's profile Send private message

PostPosted: Tue Mar 27, 2012 1:50 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Mar 28, 2012 1:20 pm     Reply with quote

Thank you!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group