Let´s use USB!
Learn how a USB stack is build up and how you can implement it on a microcontroller.
Last updated
Learn how a USB stack is build up and how you can implement it on a microcontroller.
Last updated
Some microcontrollers, such as the AT90USB1287 used here, have a built-in USB interface, with the help of which the microcontroller can function as a USB device or as a USB host. This enables the user to to connect the microcontroller with a computer or a USB stick.
I´ll give you a short overview of how a USB 2.0 stack is built and how you can implement your own USB stack on an AT90USB1287 microcontroller. Due to the complexity of the USB, I will split the tutorial into several parts and discuss a specific section of the USB stack in each part.
A brief introduction to the USB protocolInitialize the USB as a USB deviceInitialize the control endpointNow we need a few descriptorsPass the first enumerationCreate the device driverPlease check out my GitLay repository for the complete project.