gam said:
What kind of errors do you get? This may be an incorrectly set-up project in picant. Otherwise it should work
I have put the three source files ( lcd-example.c/lcd873.c and lcd873.h ) in a directory
I use Sourceboost for compiling
Make a new project with filename lcd in the directory where the files are.
Then add the three files to the project ( in workspace )
Then go to the settings menu option "Toolsuite" and choose C2C-Plus
and option "Target" to PIC16F873
Then do "Compile"
i get the following errors:
Compiling...
F:\SOURCE~1\c2c.exe -PPIC16F873 -SRC -ols -md -O2 -Ip16F873.inc -oLcd.asm lcd.c Lcd873.c
C2C-plus 5.4e C-compiler Copyright(C) 1998-99,2000-2004 by Pavel Baranov
**broken link removed**
support@picant.com
(Extended version, trial period day 3)
Licensed to: not registered
lcd.c
Lcd873.c(731): Warning: Possible truncation to 8-bit
Lcd873.c(732): Warning: Possible truncation to 8-bit
Lcd873.c(978): Warning: Possible truncation to 8-bit
Lcd873.c(1050): Warning: Possible truncation to 8-bit
Lcd873.c(1051): Warning: Possible truncation to 8-bit
Lcd873.c(1329): Warning: Possible truncation to 8-bit
Lcd873.c(1350): Warning: Possible truncation to 8-bit
Lcd873.c(1397): Warning: Possible truncation to 8-bit
Lcd873.c(1418): Warning: Possible truncation to 8-bit
Lcd873.c(1427): Warning: Possible truncation to 8-bit
Lcd873.c(1461): Warning: Possible truncation to 8-bit
Lcd873.c(1470): Warning: Possible truncation to 8-bit
Lcd873.c(1493): Warning: Possible truncation to 8-bit
Lcd873.c(1495): Warning: Possible truncation to 8-bit
lcd.c(134): Warning: Possible truncation to 8-bit
lcd.c(205): Warning: Truncation from 16-bit to 8-bit
lcd.c(209): Warning: Truncation from 16-bit to 8-bit
Lcd873.c
Lcd873.c(26): Error: The function 'input_pin_port_b' is already defined
Lcd873.c(48): Error: General error
Lcd873.c(50): Error: General error
Lcd873.c(53): Error: General error
Lcd873.c(53): Error: General error
Lcd873.c(53): Error: General error
Lcd873.c(54): Error: General error
Lcd873.c(59): Error: The function 'input_pin_port_c' is already defined
Lcd873.c(81): Error: General error
Lcd873.c(83): Error: General error
Lcd873.c(86): Error: General error
Lcd873.c(86): Error: General error
Lcd873.c(86): Error: General error
Lcd873.c(87): Error: General error
Lcd873.c(92): Error: The function 'input_pin_port_a' is already defined
Lcd873.c(114): Error: General error
Lcd873.c(116): Error: General error
Lcd873.c(119): Error: General error
Lcd873.c(119): Error: General error
Lcd873.c(119): Error: General error
Lcd873.c(120): Error: General error
Lcd873.c(135): Error: The function 'lcd_AutoSend' is already defined
Lcd873.c(138): Error: General error
Lcd873.c(159): Error: The function 'lcd_AutoStatusCheck' is already defined
Lcd873.c(163): Error: General error
Lcd873.c(176): Error: General error
Lcd873.c(181): Error: General error in function definition
Finished.
Done
Failed
Whats is gooing wrong
Please can you help me with this problem
Grtz
John