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.

[SOLVED] PIC18f4550 HID interface

Status
Not open for further replies.

ranaya

Advanced Member level 4
Joined
Jan 22, 2012
Messages
101
Helped
4
Reputation
8
Reaction score
9
Trophy points
1,298
Location
Kelaniya
Activity points
2,164
hi every1.....

This question is about USB HID interface with PC using 18f4550. I know there r plenty of examples in the net to get to know about it. I recently found an HID library called "HIDLibrary.dll" compiled by Mike O Brien. With the dll file i found a .Net example as well. But the problem is i cudnt find a Mikroc firmware example for it.

Using HID Read and Write functions i tried to communicate with the firmware (Proteus USB simulation) but was unable to send data to the firmware. (To light an LED)

can some1 give me an example mikroc code for this dll file ?

Here the dll file with .Net example project
View attachment USBHID_Test1.rar

Thanx
 

Btw this .Net example with the dll, will be helpful for every1. Looking for a reply !
 
  • Like
Reactions: hadir

    hadir

    Points: 2
    Helpful Answer Positive Rating
Hello !
Please help me !
I used the example HIDLibrary.dll in "USBHID_Test1" for my project. Software has detected my hardware and send data from PC to very good. But I do not know how to read the data sent from the hardware to the PC. . I think the problem lies in how to use the library HIDLibrary.dll.
Please give me the steps to read 64 bytes from USB?
Thank you !

Firmware : ( Mikro C)
Code:
while(1)
     {
         count=HID_Read();
         if(count!=0)
         {
             for(nn=0;nn<16;nn++)
             {
                 LCD_Chr(2,nn+1,readbuff[nn]);
             }
             for(index=0;index<64;index++)
             {
                 writebuff[index]=readbuff[index];
             }
              HID_Write(&writebuff,64);

         }
     }
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top