Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 21st November 2007, 06:11 PM   #1
Default Help needed developing USB peripheral using HID class

Hi,

I would be v. grateful for some help.

I am developing a device which is going to be connected to a PC via USB, the function that the device does it relatively simple it will collect some data (1024 x 10 bit bcd strings) in an array, i then need to transfer this data to the a piece of software which i will produce.
I am using an Atmel AVR90 USB micro processor and am programming it with embedded C, the code to perform the task itself is not what is causing me the difficulty. I am not sure how to specify the descriptors for the device, are these specific to the HID class and if so are they standardised for this class?
I have seen some example code for some simple HID applications can I use the same code?
I have also read large chunks of the USB specification including enumeratrion and almost everything realated to the HID class but it all so theoretical and no practical examples.
I really want to get to the stage where I can just concentrate on my functional code as opposed to the USB config code.

If anyone has been through this and feels they can help I will be v. grateful!!!

Look forward to any response.
Adester is offline  
Old 21st November 2007, 06:17 PM   #2
Default

Can't help with Atmel, but MicroChip provide full examples in their application notes, including programming of the PC end. Presumably Atmel do something similar?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 21st November 2007, 11:50 PM   #3
Default

I purchased "USB Complete" by Jan Axelson... got lost... then looked at her PC side code examples on her website and it all came together. The book and the code examples here should be enough:

http://www.lvr.com/hidpage.htm

These examples used with the Microchip and other other PIC compiler HID and CDC libraries should get things going.

Regarding ATMEL, I think they now have a USB module in one of their devices.l

Last edited by wschroeder; 21st November 2007 at 11:52 PM.
wschroeder is offline  
Old 22nd November 2007, 03:20 PM   #4
Default

Thanks for the reply,

I have also got a copy of USB complete but it is a mind field.

I will have a look on lvr.com and the atmel site.

Cheers
Adester is offline  
Old 22nd November 2007, 03:42 PM   #5
Default

AVR Freaks is probably your best bet.
http://www.avrfreaks.net/
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Reply

Tags
class, developing, hid, needed, peripheral, usb

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
My HID USB Bootloader in CCS C Please Check it jitun2 Micro Controllers 2 20th February 2009 05:06 PM
What appliance class has a plastic enclosure and an earth connection? Dave#2 Electronic Projects Design/Ideas/Reviews 3 9th May 2006 09:11 AM



All times are GMT. The time now is 12:02 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker