Skip to main content
knidh
Associate II
October 27, 2018
Question

I am using STM32F373VC microcontroller. I want to interface a usb keyboard to toggle led connected on pin by pressing key on keyboard.please help me.

  • October 27, 2018
  • 5 replies
  • 2180 views

..

    This topic has been closed for replies.

    5 replies

    After Forever
    Senior III
    October 27, 2018

    Do you have a question? Where is your code? Where are you struggling?

    knidh
    knidhAuthor
    Associate II
    October 31, 2018

    thank you sir i got answer i am using wrong micro controller for this purpose.

    waclawek.jan
    Super User
    October 27, 2018

    USB is asymmetric, you have master (Host) and slaves (Devices). Keyboard is a Device. So you'd need the STM32 to act as Host, but the USB in STM32F3xx is Device only.

    So you can't.

    JW

    knidh
    knidhAuthor
    Associate II
    October 31, 2018

    thank you sir

    waclawek.jan
    Super User
    October 27, 2018

    USB is asymmetric, you have master (Host) and slaves (Devices). Keyboard is a Device. So you'd need the STM32 to act as Host, but the USB in STM32F3xx is Device only.

    So you can't.

    JW

    knidh
    knidhAuthor
    Associate II
    October 31, 2018

    thank you sir

    Pavel A.
    October 28, 2018

    But you can connect a PS/2 keyboard to gpio pins of STM32. We did this. Works great.

    -- pa

    knidh
    knidhAuthor
    Associate II
    October 31, 2018

    thank you sir

    knidh
    knidhAuthor
    Associate II
    October 29, 2018

    thank you sir