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
 
Thread Tools Display Modes
Old 21st November 2007, 05:10 PM   (permalink)
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   Reply With Quote
Old 21st November 2007, 05:16 PM   (permalink)
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 offline   Reply With Quote
Old 21st November 2007, 10:49 PM   (permalink)
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 10:52 PM.
wschroeder is offline   Reply With Quote
Old 22nd November 2007, 02:20 PM   (permalink)
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   Reply With Quote
Old 22nd November 2007, 02:42 PM   (permalink)
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 With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
My HID USB Bootloader in CCS C Please Check it jitun2 Micro Controllers 0 24th October 2007 01:36 PM
What appliance class has a plastic enclosure and an earth connection? Dave#2 Electronic Projects Design/Ideas/Reviews 3 9th May 2006 08:11 AM



All times are GMT. The time now is 04:22 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.