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.

ERROR:Program to get input from keypad and display it on LCD.

Status
Not open for further replies.
5 errors:

C:\Users\DCS\Desktop\full\full.c:12:Error [1027] unable to locate 'htc.h'
C:\Users\DCS\Desktop\full\full.c:14:Error [1027] unable to locate 'lcd.h'
C:\Users\DCS\Desktop\full\full.c:61:Error [1027] unable to locate 'pic18.h'
C:\Users\DCS\Desktop\full\full.c:62:Error [1027] unable to locate 'lcd.h'
C:\Users\DCS\Desktop\full\full.c:63:Error [1027] unable to locate 'delay.h'

send me <htc.h> file..
 

The each of the header and C file codes I posted previously must be put into its own separate file with the names I have provided above the code, NOT in the same file named full.c.

main.c
lcd.c
lcd.h
delay.c
delay.h

NO full.c

Remove the #include <pic18.h> from main.c, this should correct the issues you are experiencing.

BigDog
 
screen.jpgscreen1.jpg

attached all files thn why showing lcd nd htc errors??
 

The first problem is you are using Microchip's C18, not HiTech PICC18 Compiler.

The second problem is there is no lcd.c file listed under "Source Files."

You'll need to specify a device specific header file, <pic18f4550.h>, instead of <htc.h> and substitute appropriate delay routines in C18 for those used in the code for the PICC18 compiler.

It has become apparent that this is one of your first programs, if not the first, so I would suggest gaining experience with some simple examples, like blinking an LED, before tackling this project.

BigDog
 

D:\project\engineers garrage\delay.h:60:Error: syntax errorscreen2.jpg
ya it's my first time...
 
Last edited:


its my project given by clg......so its compulsory 4 me...
its get easy 4 me when i get help like u people.....thanx 4 dat


i got error in
extern void DelayMs(unsigned char);
line shown above post screen shot
 

...It has become apparent that this is one of your first programs, if not the first, so I would suggest gaining experience with some simple examples, like blinking an LED, before tackling this project...

I full agree with that sugestion.
Could be more productive.

+++
 

what is this funtion :: bit_is_clear(PIND,c2)
please give the defining
 

That´s just a macro definition to an evaluator command :

Code:
#define bit_is_clear 	( sfr, 	bit ) 		   (!(_SFR_BYTE(sfr) & (1 << (bit)) ))


+++
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top