how to read optical USB mouse with PIC18F4550?

Here you can ask for specific code examples and discuss about it with other forum members.
Post Reply
Author
Message
ORB11
Posts: 52
Joined: 13 Feb 2012 01:27

how to read optical USB mouse with PIC18F4550?

#1 Post by ORB11 » 25 Apr 2012 00:14

Hello all,

I wonder if anyone has any examples of how to read a single axis (X) of an optical USB mouse with the USB port on PIC18F4550, and increment and decrement a variable with the mouse scroll forward or backward.
I use the MB v5.40.
thank you in advance to all.

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: how to read optical USB mouse with PIC18F4550?

#2 Post by hexreader » 25 Apr 2012 16:38

Reading USB device (such as a mouse) is impossible with PIC18F4550 as this PIC only has hardware to be a USB device, and you need a USB host. A device cannot talk to a device.

Only some PIC24 and above PICs are USB host capable.

Even then, as far as I know, there are no MikroE libraries or any other examples that will work with USB mouse. It might be worth you checking LIBSTOCK in case I am wrong.
Start every day with a smile...... (get it over with) :)

ORB11
Posts: 52
Joined: 13 Feb 2012 01:27

Re: how to read optical USB mouse with PIC18F4550?

#3 Post by ORB11 » 26 Apr 2012 11:51

hi hexreader,

Thanks for the reply, I pesquizar best how to do this.

thank you

Post Reply

Return to “Code Requests”