Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hi-tech PIC C LCD Problem

Status
Not open for further replies.

johncsl82

Advanced Member level 4
Full Member level 1
Joined
Aug 16, 2004
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
925
hi...

I got problem display a character 'T' on the LCD........ I'm using Pr*teus 6.7 SP3 to simulate the device....

I attach toghter with both schematic and codes....

please check what wrong..... thanks

Thanks
 

You should include lcd.c file in the lcdtest.c insteade of lcd.h.

best luck,
 

    johncsl82

    Points: 2
    Helpful Answer Positive Rating
I'm using MPLAB IDE V7.20 when I include "lcd.c"

it generate error during make:

Code:
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_init (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_goto (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_puts (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_clear (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_putch (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_write (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _DelayMs (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\delay.obj 10 : multiply defined symbol: _DelayMs (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_init (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_goto (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_puts (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_clear (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_putch (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _lcd_write (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\lcd.obj 24 : multiply defined symbol: _DelayMs (C:\HT-PIC\samples\lcd\lcdtest.obj)
Error[000] C:\HT-PIC\samples\lcd\delay.obj 10 : multiply defined symbol: _DelayMs (C:\HT-PIC\samples\lcd\lcdtest.obj)
BUILD FAILED: Mon Jul 18 23:16:48 2005

:(

anyway I used HDPIC IDE to make it, it's ok..... but still there is no output on the LCD..... :(

Thanks
 

ok now I get to work...

code:
Code:
void main()
{
	TRISA = 0xF3;
	TRISB = 0xF0;
	DelayMs(100);
	lcd_init();
	lcd_clear();
	lcd_puts("I'm the man!");
	//lcd_putch('T');
}

Thanks :)

Thanks
 

Hi johncsl82,

it is your welcome.

Have nice works,
 

    johncsl82

    Points: 2
    Helpful Answer Positive Rating
sorry...

I get the LCD to work at the Pr*teus Pro 6.7 SP3........ now I'm having problem..... it seem that it won't work on Oshonsof PIC Simulator IDE v5.33 and the real environment.................

I'm attach all files...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top