MC9S08JM USB Assembly Code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S08JM USB Assembly Code

756 次查看
LiveMike
Contributor II

My project is written in 100% assembly.

I do not know C.

The CMXUSB_LITE demos are in C.

Does anyone have USB code in assembly?

 

It seems that you would need quite a few subroutines (or functions in C) to handle the "standard requests" to enable the USB device and have it "recognized" by the host.  These seem like "basic/general" subroutines that just send/receive data from the USB registers.  At this point though, I'm not even sure which registers do what, or store what USB information.  I'm assuming one is the "class" (HID, Mass Storage, etc.), and I also am confused as to how the "endpoint addresses" work.  This USB is much more complex than I assumed, BUT, it seems the subroutines needed for the initial "USB connecting/communicating" are basic, and then it is just flag polling to receive new information.  Any USB functionality in assembly code would be very helpful.

 

Thanks.

-Mike

标签 (1)
0 项奖励
回复
2 回复数

456 次查看
Tsuneo
Contributor IV

I've written many USB stack for many MCUs, including MC9S08. But I don't have any assembly USB stack. I'm a lazy C/C++ guy, who writes assembly just between #asm/#endasm.

 

If you would start your assembly USB project, I can help you.

I believe it takes a week or so, to make up a HID device in our discussion.

Do you start with me?

 

Tsuneo

0 项奖励
回复

456 次查看
RogerSchaefer
Contributor III

Hello Mike,

 

I am in exactly the same boat.  If you get a solution to this problem please email me.

Thanks,

Roger

0 项奖励
回复