| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Thu Jan 18, 2007 5:02 pm |   |  
				| 
 |  
				| 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);
 }
 
 }
 | 
 |  |