|
|
View previous topic :: View next topic |
Author |
Message |
EVAN Guest
|
PIC16F690& LCDD.C |
Posted: Tue Aug 21, 2007 3:03 am |
|
|
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> |
Posted: Tue Aug 21, 2007 3:09 am |
|
|
#include <lcd.c> |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
EVAN Guest
|
LCD DISPLAY OK |
Posted: Tue Aug 21, 2007 6:14 pm |
|
|
setup_comparator(NC_NC_NC_NC);
/*Now has been good, LCD display is ok
*/
Thanks a lot!!! |
|
|
|
|
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
|