usb-device-cdc-serial-project
Default mainpageusb-device-cdc-serial-project
Description Graph
usb-device-cdc-serial-project
 
Purpose
The USB CDC Serial Project will help you to get familiar with the USB Device Port(UDP) and USART interface on AT91SAM microcontrollers. Also it can help you to be familiar with the USB Framework that is used for rapid development of USB-compliant class drivers such as USB Communication Device class (CDC).

You can find following information depends on your needs:
See

Requirements
This package can be used with all Atmel evaluation kits that have both UDP and USART interface.

The current supported board list:
Description
When an EK running this program connected to a host (PC for example), with USB cable, the EK appears as a Seriao COM port for the host, after driver installation with the offered 6119.inf. Then the host can send or receive data through the port with host software. The data stream from the host is then sent to the EK, and forward to USART port of AT91SAM chips. The USART port of the EK is monitored by the timer and the incoming data will be sent to the host.

Usage
  1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application.
  4. In the terminal window, the following text should appear:
    -- USB Device CDC Serial Project xxx --
    -- AT91xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. When connecting USB cable to windows, the LED blinks, and the host reports a new USB device attachment (if it's the first time you connect an audio speaker demo board to your host). You can use the inf file at91lib\usb\device\cdc-serial\drv\6119.inf to install the serial port. Then new "AT91 USB to Serial Converter (COMx)" appears in the hardware device list.
  6. You can run hyperterminal to send data to the port. And it can be seen at the other hyperterminal connected to the USART port of the EK.
 
Source
The documentation for this Directory was generated from the following files:
  • main.c