USB HID with PIC 18F458

General discussion on mikroC.
Post Reply
Author
Message
lancelot_flo
Posts: 2
Joined: 04 Oct 2007 21:54

USB HID with PIC 18F458

#1 Post by lancelot_flo » 04 Oct 2007 22:01

Hi everybody,

i've been using EasyPic 4 for about 3 month now and i am very happy with it.
However i encounter some problems that i am unable to solve, since i am a real beginner:

i tried to compile the HID example for MikroC, and chose the 18F458 as target. The program gives then an error message:

Undeclared Identifier [HID_InterruptProc] in expression


Could somebody help me? Is it impossible to program a usb device using this PIC type?

Thanks very much in advance for your help

XorXaX
Posts: 181
Joined: 14 Nov 2006 17:09
Location: Ludvika, Sweden
Contact:

#2 Post by XorXaX » 05 Oct 2007 07:37

The PIC18F458 doesn't support USB.

Try one of the PICs listed here: Very long URL to Microchip

My favourites are the PIC18F4553 and PIC18F2553.
Jonas Andersson, Sweden
EasyPIC3, EasyPIC5, various dev boards and fully licensed mikroC
"It's nice to be important, but it's more important to be nice"

octal
Posts: 534
Joined: 09 Feb 2005 14:15
Location: France
Contact:

#3 Post by octal » 05 Oct 2007 08:49

XorXaX wrote: My favourites are the PIC18F4553 and PIC18F2553.
I agree with that because they have a 12bits ADC. But unfortunately the PicFlash software does not yet support them, so with my EasyPic3/Pic4 boards I can not yet use them.
Hope that mE does an update quickly.
Regards
octal
http://www.pocketmt.com

KaB0o
Posts: 8
Joined: 25 Feb 2010 20:52

Re: USB HID with PIC 18F458

#4 Post by KaB0o » 13 Feb 2011 21:29

I have the same error with a project downloaded from this site although I have selected PIC18F4550 ...

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: USB HID with PIC 18F458

#5 Post by slavisa.zlatanovic » 14 Feb 2011 13:00

Hi!

@KaB0o
Be sure to include the USB Library in your project using Project Manager.
If this doesn't help, then check if the same thing is happening also with the USB HID examples (PIC18F4550) distributed with the compiler.
If yes, then please reinstall the compiler and try to compile the example again.

@everyone else reading this topic
We have supported PIC18F4553 and PIC18F2553 MCUs long time ago by our PICFlash (mikroProg Suite) programmer.
Best regards
Slavisa

KaB0o
Posts: 8
Joined: 25 Feb 2010 20:52

Re: USB HID with PIC 18F458

#6 Post by KaB0o » 22 Feb 2011 16:40

The examples work ,

still I get this error :/

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: USB HID with PIC 18F458

#7 Post by slavisa.zlatanovic » 23 Feb 2011 14:02

Hi!
still I get this error :/
Please, send me your project. I'll inspect it and suggest further steps.
My email is: slavisa.zlatanovic@mikroe.com
Best regards
Slavisa

giannisss
Posts: 11
Joined: 13 Feb 2011 11:29

Re: USB HID with PIC 18F458

#8 Post by giannisss » 23 Feb 2011 15:50

I have the same problem, and i cant solve it.
i put the source code usb1.c from book "Advanced PIC Microcontroller Projects in C" but when i go to build it apears message
->> 42 324 Undeclared identifier 'HID_InterruptProc' in expression usb1.c
i tried to change the code but nothing...

i am using mikroC pro 4.15 on vista

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: USB HID with PIC 18F458

#9 Post by slavisa.zlatanovic » 24 Feb 2011 09:56

Hi giannisss!

I've already answered the same question here:
http://www.mikroe.com/forum/viewtopic.p ... 09#p143709

P.S.
Please, don't duplicate posts.
Best regards
Slavisa

Post Reply

Return to “mikroC General”