Help for HID device with usbfs block

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

cross mob
Anonymous
Not applicable

 Hi,

   

I try with the Psoc to use the USBFS block to make an HID device.

   

I try with the exemple to simulate a mouse mooving, but my target is to use the USBfs, in order to activite some output.

   

For exemple  I want to turn on a DEL on the P0[1]. with my computer.

   

My problem is I don't know how do it.

   

Could you please help me?

   

 

   

Kind regards

0 Likes
4 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I would rather suggest you to use the USBUART. It has the advantage for communicating in both directions with your PC using something simple as HyperTerminal on PC side.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 I know the USBuart, I use it on another project, but I want to try with HID, because it's plug and play.

   

 

   

I would like to make an card like this:http://www.phidgets.com/products.php?category=0&product_id=1012_2

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might be of some assistance -

   

 

   

embedded-firmware.blogspot.com/2008/12/hid-mouse-in-psoc.html

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 So what you want is to send commands from you computer to your MCU?

   

You can do that using an OUT endpoint. Use USB_EnableOutEP() to enable the out enpoint and when wGetEPCount() says there is some data, read the enpoint using USBFS_bReadOutEP()

0 Likes