Page 1 of 1

AVR Only HID Mass Storage Device

Posted: Tue Sep 04, 2007 2:07 am
by Steve
I've been researching this, and it seems possible. Can anyone provide information regarding the possibility of implementing this device.

I want to use an ATmega168, or similar device, to act as a "flash drive" and store one (1) file in the SRAM portion of the uP.

It seems like you could do this via several combinations.

I.e. Full speed, HID Mass Storage device using Bulk transfer.
or Low speed, HID Mass Storage device using control or interrupt transfer.
or Low speed, HID (Insert device here) using control or interrupt transfer.

Again, it seems entirely possible. Looking for any "gotchas" people might see that I haven't yet.

Posted: Tue Sep 04, 2007 5:35 am
by Steve
I think I may need to clarify my last post.

The examples should have read.

Full Speed, Mass storage device using bulk transfer.
Low Speed, HID device using control or interrupt transfer.

TIA.

Posted: Sat Sep 08, 2007 8:37 pm
by christian
AVR-USB can't do full speed, only low speed. However, if you implement the same functionality (bulk endpoints) in low speed, most operating systems accept them as if it were full speed.

I don't see how you can implement a mass storage device as HID, though, without custom drivers. As far as I know, the HID spec has no such option.