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

help on LCD Display

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 18, 2007 5:02 pm     Reply with quote

I assume you're talking about Mark's LCD driver in the Code Library:
http://www.ccsinfo.com/forum/viewtopic.php?t=20182

I don't have PCM vs. 4.009 to test. The closest I have is vs. 4.014.
I installed that version and compiled the test program shown below.
I programmed it into a 16F877 installed on a PicDem2-Plus board,
with the 4 MHz "can" type external oscillator. It ran OK. I didn't
get any extra characters on the LCD after sending it a "clear screen"
command (\f). I have the original PicDem2-Plus board, not the
latest type, which has a power on/off control connected to pin D7 on
the PIC. Mark's driver (as posted) was for the original PicDem2-Plus.

Try this program. If you still have the problem, it might be caused
by vs. 4.009 of the compiler.
Code:

#include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)

#include <lcdd.c>

//============================
void main()
{

lcd_init();

while(1)
  {
   lcd_putc('\f');
   delay_ms(500);
   lcd_putc("Hello World\n");
   lcd_putc("This is Line two");
   delay_ms(500);
  }

}
humble pie
Guest







help on LCD Display
PostPosted: Fri Jan 19, 2007 1:31 am     Reply with quote

Thanks PCM programmer, I will try out.
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