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

LCD doesn't Display

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



Joined: 19 Feb 2013
Posts: 50

View user's profile Send private message Yahoo Messenger MSN Messenger

LCD doesn't Display
PostPosted: Sat Feb 22, 2014 6:16 am     Reply with quote

Hello,
I am using a serial LCD as the following one :

https://www.sparkfun.com/products/9393

I was thinking of using the JP2 pins. So, it would be like the regular LCD.

I used the LCD library in the website and the following program:

Code:


#include <18f2455.h>

#FUSES HS,NOLVP,NOPROTECT,NOWDT,PUT
#USE DELAY(clock=16M)
#include "Flex_LCD216.c"


void main(void)
{

   delay_ms(4000);
      lcd_init();
   
   lcd_putc("\fHello World");
   delay_ms(2000);
   lcd_putc("\f");
   lcd_putc("Line Number 2");
   delay_ms(2000);
   while (TRUE)
   {
      output_BIT(PIN_A5,1);
      delay_ms(1000);
      lcd_putc("Hello world");
      delay_ms(1000);
      output_BIT(PIN_A5,0);
      delay_ms(1000);

   }
}






I am starting to think that it work if I use the JP2 Pins.

Does anyone know how the JP2 PINS work in this LCD ?
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sat Feb 22, 2014 6:27 am     Reply with quote

Hi,

No, you absolutely cannot do that! If you connect directly to J2 then your PIC will be in parallel with the PIC on the serial LCD backpack. That is NOT going to work. Use the LCD as a serial LCD or get a standard LCD.

John
amjad_alahdal



Joined: 19 Feb 2013
Posts: 50

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Sat Feb 22, 2014 6:54 am     Reply with quote

Thank you
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Feb 22, 2014 7:18 am     Reply with quote

Or remove the processor from the serial LCD board...then you can use JP2 Shocked
_________________
Google and Forum Search are some of your best tools!!!!
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