Interface Mouse to PIC

Author
DerekDonn
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2007/04/25 06:29:10
  • Location: 0
  • Status: offline
2007/04/25 06:35:35 (permalink)
0

Interface Mouse to PIC

I'm trying to find out if it is possible (and somewhat simple) to interface a generic USB mouse to the FS USB demo board (18F4550).  I haven't done any work with USB in the past, and have done a some work with the lower end PICs.  My understanding so far is that the microchip USB framework for HIDs is for setting up the PIC as an HID, not connecting and HID to the PIC.  For now I'd just like to save the mouse x-y coordinates and button presses to a register, or maybe dump them out to a serial port.  Has anyone done anything similar, or could point me in the right direction to get me started?  ANy help would be appreciated.
#1

3 Replies Related Threads

    evandude
    Starting Member
    • Total Posts : 66
    • Reward points : 0
    • Joined: 2006/09/07 08:08:44
    • Location: 0
    • Status: offline
    RE: Interface Mouse to PIC 2007/04/25 06:41:03 (permalink)
    0
    The PIC cannot act as a USB host, therefore you cannot interface a USB device to it.  If you want more info, search the forum, it's been rehashed many times.

    With that said, most USB mice I've seen will work as a PS/2 mouse with a simple connector adapter, so you could most likely just interface the mouse as a PS/2 device (which is pretty easy) and forget about the USB part.
    #2
    DarioG
    Scheisse Menschen
    • Total Posts : 52408
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: hi there
    • Status: offline
    RE: Interface Mouse to PIC 2007/04/25 07:46:30 (permalink)
    0
    Yep, good Evan. For the record, I'll repost this one
    http://forum.microchip.com/tm.aspx?m=239270
    Smile
    #3
    DerekDonn
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2007/04/25 06:29:10
    • Location: 0
    • Status: offline
    RE: Interface Mouse to PIC 2007/04/25 10:02:54 (permalink)
    0
    Thanks both for the quick replies.  I'll look into PS/2.
    #4
    Jump to:
    © 2017 APG vNext Commercial Version 4.5