Shop OBEX P1 Docs P2 Docs Learn Events
USB chip - know of any? — Parallax Forums

USB chip - know of any?

computer guycomputer guy Posts: 1,113
edited 2009-10-13 00:47 in Propeller 1
Hi Everyone,

I am wanting to create a USB HID (Human Interface Device) using the propeller chip, obviously the propeller doesn't have the speed required to do USB communication so I was wondering if anyone knew of a chip that can be used with the propeller to allow it to act as a USB HID.

I was looking at the Cypress USB chips and they look promissing but with little documentation I am worried about buying one and not knowing where to start.



Thank you smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.

Guitar Hero controller using the prop (WIP) --> HERE

Comments

  • computer guycomputer guy Posts: 1,113
    edited 2009-10-12 14:12
    Hi BradC,

    Thank you for your speedy reply.
    Is there any examples available for this?

    edit: where did he go?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.

    Guitar Hero controller using the prop (WIP) --> HERE
  • BradCBradC Posts: 2,601
    edited 2009-10-12 14:13
    http://forums.parallax.com/showthread.php?p=675656

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2009-10-12 14:20
    AVRs do bit banging, low speed USB HID stuff with a minimum of 12MIPS (for 1.5M USB ) so a cog should have no problems.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Style and grace : Nil point
  • computer guycomputer guy Posts: 1,113
    edited 2009-10-12 14:20
    Thanks BradC.

    Am looking at it now.
    Will let you know how I go

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.

    Guitar Hero controller using the prop (WIP) --> HERE
  • BradCBradC Posts: 2,601
    edited 2009-10-12 14:27
    Toby Seckshund said...
    AVRs do bit banging, low speed USB HID stuff with a minimum of 12MIPS (for 1.5M USB ) so a cog should have no problems.

    AVR's cheat and ignore the CRC on all inbound packets.. nasty stuff.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • computer guycomputer guy Posts: 1,113
    edited 2009-10-12 14:41
    Hey BradC, how hard would it be for you to add a "TxByte()" or simillar command?
    I noticed that everything it types is hard coded. I need to be able to

    detect a button press ---> send command


    Thanks smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.

    Guitar Hero controller using the prop (WIP) --> HERE
  • BradCBradC Posts: 2,601
    edited 2009-10-12 14:43
    computer guy said...
    Hey BradC, how hard would it be for you to add a "TxByte()" or simillar command?


    For me? relatively easy if I had the time to sit down and get into it.

    For you? A good challenge [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • computer guycomputer guy Posts: 1,113
    edited 2009-10-12 14:50
    Are you please able to sit down and add some more functionality to it when you get a chance.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.

    Guitar Hero controller using the prop (WIP) --> HERE
  • Erik FriesenErik Friesen Posts: 1,071
    edited 2009-10-12 15:58
    I have an HID example posted somewhere on brads link. Using HID will take a little legwork however.

    I don't understand why FTDI or someone doesn't produce an HID chip. It could have a predefined set of reports, or there could be a couple of chip options that way. While it is not that difficult to create your own using a pic18 or the like, it really doesn't do much good outside your own use.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-10-12 16:29
    If you're designing a USB slave device, why not just use the FT232R? There is still OS support for serial mice, so other HID types should be able to be accommodated, as well, via a serial protocol. (In fact, if a serial device is spewing bytes when plugged in, Windows will often mistake it for a mouse and configure it accordingly.) If you're wanting to interface to a USB HID device, of course, FTDI's Vinculum chip will work.

    -Phil
  • BradCBradC Posts: 2,601
    edited 2009-10-13 00:47
    Phil Pilgrim (PhiPi) said...
    If you're designing a USB slave device, why not just use the FT232R?

    Why try and beat a square peg into a round hole? If you use a serial device like the ftdi, your device might work (for certain definitions of work) on some variants of Windows that you have around to test with. If you use HID properly it will work on pretty much any OS/Machine you plug it into.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
Sign In or Register to comment.