USB HID generic example

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RuGl_1600761
Employee
Employee
25 replies posted 25 sign-ins 10 replies posted

to connect embedded design with PC using a USB CDC profile is common, This approach suffer from the ned of installing a windows driver. Using HID profile this drawback is removed, for HID do not need a driver to install. I am a cypress newbe and I would be very pleased if there is an example for USB HID generic avaliable. (other than mouse or keyboard) Could anybody help with suchan example project

rgl
0 Likes
1 Solution
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi rugl_1600761​,

You can go through the application note here, which explains the USB HID basics with PSoC 3 and PSoC 5LP : https://www.cypress.com/documentation/application-notes/an57473-usb-hid-basics-psoc-3-and-psoc-5lp

You can go through the code example which demonstrates the use of USB block in PSoC 5LP to implement a HID mouse- https://www.cypress.com/documentation/code-examples/ce95394-usb-hid-mouse-psoc-35lp

Also, You can go through the code example which demonstrates to configure USB block in PSoC 6 as a human interface device (HID). The device enumerates as a 3 button mouse. I have provided the link here: https://www.cypress.com/documentation/code-examples/ce226423-psoc-6-mcu-usb-hid-mouse-application

PSoC 6 is our latest high performance dual-core microcontroller. It incorporates a full-speed USB device interface up to eight endpoints. A 512-byte SRAM buffer is provided and also, DMA is supported.

Please go though the above and let us know in case you need further clarifications.

Best Regards,

Aashita

View solution in original post

2 Replies
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi rugl_1600761​,

You can go through the application note here, which explains the USB HID basics with PSoC 3 and PSoC 5LP : https://www.cypress.com/documentation/application-notes/an57473-usb-hid-basics-psoc-3-and-psoc-5lp

You can go through the code example which demonstrates the use of USB block in PSoC 5LP to implement a HID mouse- https://www.cypress.com/documentation/code-examples/ce95394-usb-hid-mouse-psoc-35lp

Also, You can go through the code example which demonstrates to configure USB block in PSoC 6 as a human interface device (HID). The device enumerates as a 3 button mouse. I have provided the link here: https://www.cypress.com/documentation/code-examples/ce226423-psoc-6-mcu-usb-hid-mouse-application

PSoC 6 is our latest high performance dual-core microcontroller. It incorporates a full-speed USB device interface up to eight endpoints. A 512-byte SRAM buffer is provided and also, DMA is supported.

Please go though the above and let us know in case you need further clarifications.

Best Regards,

Aashita

RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

We have a PSoC 6 code example with HID Generic.

GitHub - cypresssemiconductorco/mtb-example-psoc6-usb-hid-generic: This example demonstrates how to ...

If you are using PSoC 5LP, you can refer to the descriptor from the code example above.