SAM4S-EK2 - is it possible to use it as a USB host and connect a keyboard?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As the title says, I'm trying to see if it's possible to use the SAM4S-EK2 dev board as a USB host with a keyboard device connected. I don't see anything like this in the example projects. Only a bunch of USB device examples, where the Atmel would emulate a keyboard or mouse to a PC host.

Last Edited: Thu. Jan 18, 2018 - 02:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The SAM4-S chip has no USB OTG/host support, so in short no, you wont be able to do what you want

 

Ilya

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the reply, that's what I was afraid of. I'll just have to get creative! Maybe PS/2 keyboards via GPIO pins.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

miker00lz wrote:
that's what I was afraid of.

Where did you get any indication at all that the SAM4-S had any USB Hot capability?

 

I'll just have to get creative! Maybe PS/2 keyboards via GPIO pins.

Why??

It's not like there is any shortage of Cortex-M parts which do have USB Host capability ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Because I'm just doing a personal hobby project on a SAM4S-EK2 board that I happened to get for free. No intention of buying anything else.

The goal is 8086 PC emulator using the onboard LCD, SD as a hard drive, and a keyboard of some kind which is the last thing I have left to do.