Multiple USB devices in one M52221?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multiple USB devices in one M52221?

1,906件の閲覧回数
MikeD
Contributor I
Can I have a M52221 act as multiple USB devices at the same time?  For a project at work I'm planning on using one board to act as both a mouse and a keyboard, am I going to want to put more then one M52221 on the board and a hub chip?

Thanks
Mike
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

428件の閲覧回数
ericgregori
Contributor I
Yes,  you can make the device support both a keyboard and mouse.  During enumeration just report 2 configurations ( keyboard and mouse ).
 
I have a very detailed appnote on the CMX USB stack that may help.
 
If you shoot me your email address I will send it to you.
 
0 件の賞賛
返信

428件の閲覧回数
macl
Senior Contributor I
Just to clarify, you would like the MCF52221 to act in device mode, correct?  I think you can make it act as multiple devices by setting up separate endpoints.  This would emulate a keyboard/mouse if you connected to a PC host.
 
On the other hand if you want to connect both a usb mouse and usb keyboard to a single MCF52221 and have it act in host mode, then this is more tricky.  I'm not exactly sure of what it would require, but I believe you would need a usb switch or mux to select each one at a time.  You'd also need the driver software for the devices.
 
Mac
0 件の賞賛
返信