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 CCS Technical Support

Porting CC5X LCD code to CCS for PIC16F88

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



Joined: 29 Jan 2011
Posts: 41

View user's profile Send private message

Porting CC5X LCD code to CCS for PIC16F88
PostPosted: Mon Sep 30, 2024 4:57 am     Reply with quote

I would like to attempt to port the code for a Sparkfun Serial enabled 16 x 2 LCD. This is a medium to long term project.

https://www.sparkfun.com/products/retired/9395

I really like the CCS compiler but I have zero experience with B Knudsens CC5X compiler. My ultimate aim is to create a PCB that I can attach a jellybean 16 x 2 LCD to, as well as learn something myself. This is for use in an embedded systems course where I work.
I am not sure if the code that is freely available can be compiled with the free version of CC5X. I will report back on that later this week. In the meantime, I have attached the link to the firmware here for your perusal (click on documents -> firmware).

https://www.sparkfun.com/products/retired/9395

I can add the code to a reply if that would be more convenient. Please let me know.

I really just want to know if anyone has any experience of porting code from CC5X to CCS and if they could help me somehow. Thanks.
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Mon Sep 30, 2024 5:08 am     Reply with quote

Seriously there is really nothing involved at all. Forgot about 'porting'. That
code is just a serial interface to a standard LCD. The simplest driver for the
LCD is PCM_Programmers flex_lcd (in the code library here). That accepts
pretty much the same commands (the command set is close to the Hitachi
standard set for these displays). So all you need is a simply #USE RS232
and that driver, and 95% if this is already written.
djsb



Joined: 29 Jan 2011
Posts: 41

View user's profile Send private message

PostPosted: Mon Sep 30, 2024 5:12 am     Reply with quote

Ttelmah,
Thanks for your reply.
I will give it a go. If the basic functionality goes well, I'm hoping to add I2C capability to it as well if there's enough code space.

David.
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