joelfinkle 1 Posted October 22, 2013 Share Posted October 22, 2013 Is it possible to attach USB devices to the Device USB on a Tiva/Stellaris LaunchPad eval kit board? I'm planning a game, and rather than scraping up a bunch of switches for a keypad, I've got a USB keypad sitting around which would do the job nicely. Is this do-able? Is it major effort? Quote Link to post Share on other sites
spirilis 1,265 Posted October 22, 2013 Share Posted October 22, 2013 I believe you can do this on the Tiva b/c it's not just a Device port, but also a Host and OTG capable port. Need the right USB dongle for its connector. Stellaris LP you can't, it's only a Device port. Also check out: http://forum.stellarisiti.com/ for a more Tiva/Stellaris-oriented forum. Quote Link to post Share on other sites
cde 334 Posted October 22, 2013 Share Posted October 22, 2013 Is it possible to attach USB devices to the Device USB on a Tiva/Stellaris LaunchPad eval kit board? I'm planning a game, and rather than scraping up a bunch of switches for a keypad, I've got a USB keypad sitting around which would do the job nicely. Is this do-able? Is it major effort? Yep. The Tiva is a Slave/Host/OTG USB device, and there is Tiva-ware for a USB Host HID device (Human Interface Device, like standard usb keyboards). See http://www.ti.com/lit/ug/spmu297/spmu297.pdf for details on the Tiva USB software and try checking out http://forum.stellarisiti.com/ for the Stellaris/Tiva forum. Quote Link to post Share on other sites
bluehash 1,581 Posted October 22, 2013 Share Posted October 22, 2013 What the above commenters mentioned, also: http://forum.stellarisiti.com/topic/453-launchpad-usb-example-and-documentation-additionslabs/ Quote Link to post Share on other sites
cde 334 Posted October 22, 2013 Share Posted October 22, 2013 What the above commenters mentioned, also: http://forum.stellarisiti.com/topic/453-launchpad-usb-example-and-documentation-additionslabs/ Op wants to host a usb keyboard, not emulate one. Quote Link to post Share on other sites
joelfinkle 1 Posted October 22, 2013 Author Share Posted October 22, 2013 Op wants to host a usb keyboard, not emulate one. This. The USB Driver docs might have enough info for me to hammer it out... I was hoping to frob somebody else's work. Something tells me this isn't going to be a cake walk in Energia. Quote Link to post Share on other sites
bluehash 1,581 Posted October 23, 2013 Share Posted October 23, 2013 Stellarisware should have a USB keyboard Host example. Quote Link to post Share on other sites
cde 334 Posted October 23, 2013 Share Posted October 23, 2013 This. The USB Driver docs might have enough info for me to hammer it out... I was hoping to frob somebody else's work. Something tells me this isn't going to be a cake walk in Energia. Section 3.8.6 of the Tivaware document spmu297 I linked above. Not just the description, but an actual USB Host Keyboard example. joelfinkle 1 Quote Link to post Share on other sites
igor 163 Posted October 23, 2013 Share Posted October 23, 2013 Another option could consider is PS/2 protocol.Turns out that many USB keyboards also have a fall-back PS/2 mode.http://hackaday.com/2013/07/06/veronica-6502-gets-keyboard-input-via-usb/PS/2 protocol simpler to implement (if have to do it from scratch), may not take as much overhead.There are examples of PS/2 implementation around. Quote Link to post Share on other sites
joelfinkle 1 Posted October 25, 2013 Author Share Posted October 25, 2013 Section 3.8.6 of the Tivaware document spmu297 I linked above. Not just the description, but an actual USB Host Keyboard example. Cool... now to figure out if it will work with Energia. There's a usb.h, but it doens't match usblib. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.