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

PIC16F690& LCDD.C

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







PIC16F690& LCDD.C
PostPosted: Tue Aug 21, 2007 3:03 am     Reply with quote

hello,
Very its strange question I use CCS LIB LCDD.C , with PIC18F4550 connection, LCD is OK
LCD <-->PORTD is OK
code
#include<18F4550.h>
#fuses hs,NOWDT,PROTECT,NOLVP,NODEBUG
#use delay (clock=8000000)
#include <lcd.h>
void main(void){

lcd_init();
printf(lcd_putc,"\lcd Test is ok");//ok
while(1){;}
}


But PIC16F690 does not work Procedure when lcd_init(); endless loop
LCD <-->PORTC is NG no DISPLAY
#include <16f690.h>
#fuses INTRC,noWDT,MCLR,noPROTECT//,MCLR//,IOSC4
#use delay(clock=8000000)
#include <lcd.h>
void main(void){
lcd_init();
printf(lcd_putc,"\lcd Test is ok");// is no display
while(1){;}
}


Help me.Help me !
The CCS version is 3.249.
LIB LCDD.C
change ==>
-----

#if defined(__PCH__)
#if defined use_portb_lcd
#byte lcd = 0xF81 // This puts the entire structure
#else
//#byte lcd = 0xF83 // is ok
#byte lcd =0xF87 //test is NG
#endif
#else
#if defined use_portb_lcd
#byte lcd = 6 // on to port B (at address 6)
#else
//#byte lcd = 8 // on to port D (at address 8) --->isOK
#byte lcd = 7 // on to port C (at address 7) --->is NG

#endif
#endif

#if defined use_portb_lcd
#define set_tris_lcd(x) set_tris_b(x)
#else
//#define set_tris_lcd(x) set_tris_d(x)
#define set_tris_lcd(x) set_tris_C(x)
#endif

----
EVAN
Guest







#include <lcd.c>
PostPosted: Tue Aug 21, 2007 3:09 am     Reply with quote

#include <lcd.c>
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 21, 2007 1:11 pm     Reply with quote

See the post at the end of this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=29942
EVAN
Guest







LCD DISPLAY OK
PostPosted: Tue Aug 21, 2007 6:14 pm     Reply with quote

setup_comparator(NC_NC_NC_NC);
/*Now has been good, LCD display is ok
*/


Thanks a lot!!!
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