??? 01/24/06 08:08 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#108158 - Start with a working code Responding to: ???'s previous message |
It may be too difficult for beginners to make an original enumeration code from scratch. Start with a working code, and modify it step by step.
As the first step, implement the ATMEL HID example to your board. Without keyboard part, the enumeration will work at least. Compare pin connections of the MCU on your board to that of the Starter kit. http://www.atmel.com/dyn/resou...oc4245.pdf Select appropriate quartz setting on ATMEL HID example, and compile it. http://www.atmel.com/dyn/resou...-1_0_2.zip Test it on your board, and find the problem on debugger. Tracing the execution of code, you'll realize how enumeration process works and how the USB engine of the MCU responds. [References] "Enumeration: How the Host Learns about Devices" from J.Axelson "USB Complete" http://www.lvr.com/usbcenum.htm USB in a NutShell "Control Transfers" http://www.beyondlogic.org/usbnutshell/usb4.htm "USB Descriptors" http://www.beyondlogic.org/usbnutshell/usb5.htm Tsuneo |
Topic | Author | Date |
AT89C5131 - setup packet | 01/01/70 00:00 | |
Start with a working code | 01/01/70 00:00 | |
GET_DESCRIPTOR | 01/01/70 00:00 | |
SourceUSB![]() | 01/01/70 00:00 | |
USB Bootloader update | 01/01/70 00:00 |