Using the USB Device Mode

The DEVICE source code illustrates how to implement on the AVR32 microcontroller a Serial to USB application.

appli.jpg

Serial to USB application architecture

Installation

For our example, we will only use a PC for the demonstration: it will both connect to the USB and to the COM port of the EVK110x boards.

Connect the USART peripheral to the USART connector of the EVK110x board. Connect the application to a USB host (e.g. a PC) with a mini-B (embedded side) to A (PC host side) cable. The application will behave as a virtual COM.

appli_evk1100_device.jpg

EVK1100 USB Device Mode

appli_evk1101_device.jpg

EVK1101 USB Device Mode

For the first connection of the EVK110x board on the PC, the operating system will detect a new peripheral. This will open a new hardware installation window. Choose «No, not this time” to connect to Windows Update for this installation and click ‘Next’:

install_1.jpg

Found New Hardware Wizard

On the next screen, select “Install from a list or specific location (Advanced)” and click ‘Next’. Then request to search in the DRIVER folder of the "CDC EXAMPLES" directory as shown below and click ‘Next’

install_3.jpg

location

A warning message "The software [...] has not passed Windows Logo testing..." will appear. Click on "Continue Anyway":

install_4.jpg

Warning

Windows will then process the installation of the driver. Once completed, click ‘Finish’.

install_5.jpg

Installation done

For our example, we will use 2 serial terminals (e.g. HyperTerminal under Windows systems or minicom under Linux systems; USART settings: 57600 bauds, 8-bit data, no parity bit, 1 stop bit, no flow control):

usb_cdc_device_manager.jpg

Installation done

Open the 2 terminals using the same baudrates.

Note that the serial parameters (baud rate, stop bits, etc...) of the "Virtual Serial Term" are automatically applied on the "Serial COM" USART.


Generated on Fri Feb 19 02:32:25 2010 for AVR32 - USB CDC Example by  doxygen 1.5.5