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.

Step by Step config lcd with XLC library in Mplab

Status
Not open for further replies.

baby_1

Advanced Member level 1
Joined
Dec 3, 2010
Messages
415
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
4,277
Hello
i want to run a character LCD 16*2 in Mplab via xlcd library.according xlcd readme file i add Xlcd.asm and Xlcd.inc to my project.without any function and use xlcd command when i compile my project i got these errors.

Error[105] ..\XLCD.INC 37 : Cannot open file (Include File "XLCD.def" not found)
Error[113] ..\XLCD.INC 71 : Symbol not previously defined (XLCDInit)
Error[113] ..\XLCD.INC 72 : Symbol not previously defined (XLCDCommand)
Error[113] ..\XLCD.INC 73 : Symbol not previously defined (XLCDPut)
Error[113] ..\XLCD.INC 74 : Symbol not previously defined (XLCDDelay5ms)
Error[113] ..\XLCD.INC 75 : Symbol not previously defined (XLCDDelay100us)
Error[113] ..\XLCD.INC 76 : Symbol not previously defined (XLCDCommandInit4bit)
Error[113] ..\XLCD.INC 77 : Symbol not previously defined (XLCDL1home)
Error[113] ..\XLCD.INC 78 : Symbol not previously defined (XLCDL2home)
Error[113] ..\XLCD.INC 79 : Symbol not previously defined (XLCDClear)
Error[113] ..\XLCD.INC 80 : Symbol not previously defined (XLCDReturnHome)
Error[113] ..\XLCD.INC 81 : Symbol not previously defined (XLCDSendMsg)
Error[113] ..\XLCD.INC 84 : Symbol not previously defined (XLCDMODE)
Error[113] ..\XLCD.INC 88 : Symbol not previously defined (XLCDRWPIN)
Error[113] ..\XLCD.INC 89 : Symbol not previously defined (XLCDIsBusy)
Error[113] ..\XLCD.INC 90 : Symbol not previously defined (XLCDReadData)
Error[105] ..\XLCD.ASM 45 : Cannot open file (Include File "p16xxx.inc" not found)
Error[105] ..\XLCD.ASM 46 : Cannot open file (Include File "p18xxx.inc" not found)

how can i fix it?
 

Hi,
it looks like project configuration and search directories problem.

Look here:
(MPLAB IDE)
Project -> Build Options -> Project -> Directories.

Another thing may be localisation of the files in directories and include defs:
#include "..\xxx.inc"
vs
#include "xxx.inc"

Good look :)
Mariusz
 

Hello downubear
i created a folder and put these files.

putrxlcd.c
putsxlcd.c
readaddr.c
readdata.c
setcgram.c
setddram.c
XLCD.asm
xlcd.h
writdata.c
wcmdxlcd.c
openxlcd.c
busyxlcd.c
18XLCD.asm

& i check the Directories they set to my folder .what can i do for config?
 

Hi,
the best way in this case is to download sample project from Microchip site.
There is a lot of them there.

Than compile it, if will works:
- look for settings in Build Option (came with project)
- look for #include directives in source files and compare them with folders (i.e. /src, /h) of the project.

Prepare your project using downloaded example.
You can delete all files except folders and than put there your source and header files accordingly.
MPLab will say that source files are missing, so delete them from project and add your's.

Mariusz
 

how do you ude that Xlcd file ? do you have to save the alfabet or how. is there some guide
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top