We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!
Item Qty
Your cart is empty.

AN5792

Title
Title
AVR® DU as a USB CDC Communication Device
Name
Name
AN5792
Date
Date
01/31/2025
Description
Description
In this document, the basics of USB CDC will be explained. It will go through the advantages of using the AVR® DU with the USB Device Stack offered in MPLAB® Code Configurator and how it can replace external translators to enable USB communication.The document will go through two examples that will show how to easily utilize USB CDC communication. The first will be a simple application that shows the basics of CDC and how it interacts with the host. The other example will show a USB to USART bridge application that can be the basis of any application needing to translate external serial communication to USB. Both examples have manual terminal interactions and an automated Python script showing how they can be integrated into a host-side application. Links to the example code and step-by-step instructions for setting it up are provided in the Simple CDC Communication & CDC to USART Bridge sections.

Silicon Products

Title Product Title
AVR32DU28
USB 2.0 FS Device
AVR32DU28 USB 2.0 FS Device
AVR16DU32
USB 2.0 FS Device
AVR16DU32 USB 2.0 FS Device
AVR64DU28
USB 2.0 FS Device
AVR64DU28 USB 2.0 FS Device
AVR32DU20
USB 2.0 FS Device
AVR32DU20 USB 2.0 FS Device
AVR16DU14
USB 2.0 FS Device
AVR16DU14 USB 2.0 FS Device
AVR16DU20
USB 2.0 FS Device
AVR16DU20 USB 2.0 FS Device
AVR16DU28
USB 2.0 FS Device
AVR16DU28 USB 2.0 FS Device
AVR64DU32
USB 2.0 FS Device
AVR64DU32 USB 2.0 FS Device
AVR32DU32
USB 2.0 FS Device
AVR32DU32 USB 2.0 FS Device
AVR32DU14
USB 2.0 FS Device
AVR32DU14 USB 2.0 FS Device