US Blaster AVR-280 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Recetor US Blaster AVR-280. USB Host CDC Demonstration Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 14
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 0
AVR280: USB Host CDC Demonstration
1. Introduction
The RS232 interface has disappeared from the new generation of PCs replaced by
the USB interface. To follow this change, applications based on UART interface have
to migrate to USB. Migration to USB can mean heavy development both on the PC
and on the device side. To avoid this development, Atmel offers you solutions based
on the CDC class (Communication Device Class) :
> CDC Device application (See Application Note AVR272) : such a USB device
can be connected to a PC and appears as a Virtual Serial Port.
> CDC Host application : this application replaces a PC, and greets a CDC
Device, allowing an easy and powerfull communication !
The aim of this document is to describe how to start and implement a Host CDC appli-
cation using the STK525 or USBKEY starter kit, and finally introduces a simple
example of dual USB-UART bridge between two PC.
A familiarity with the AVR USB software framework (http://www.atmel.com) and with
the CDC specification (http://www.usb.org) is assumed.
Figure 1-1. Host CDC Application
7727A–USB–09/07
8-bit
Microcontrollers
Application Note
Vista de página 0
1 2 3 4 5 6 ... 13 14

Resumo do Conteúdo

Página 1 - Application Note

AVR280: USB Host CDC Demonstration1. IntroductionThe RS232 interface has disappeared from the new generation of PCs replaced by the USB interface. To

Página 2

107727A–USB–09/07AVR280 Application Note Table 3-2. GET_ENCAPSULATED_RESPONSE request3.3.1.2 Communication parameters requestsThese requests may be u

Página 3

117727A–USB–09/07 AVR280 Application NoteCode 3-5. Notification pipe handler template4. Example4.1 OverviewAll this theory may appear complex, so her

Página 4

127727A–USB–09/07AVR280 Application Note Device CDC package can be run on STK525, USBKEY (AT90USB64x/128x) or STK526 (AT90USB82/162).The USB Device b

Página 5

137727A–USB–09/07 AVR280 Application Notethe port must be correctly entered. Using our package unmodified, you must set the following configuration :

Página 6

Printed on recycled paper.7727A–USB–09/07©2007 Atmel Corporation. All rights reserved. Atmel®, logo and combinations thereof, are registered tradem

Página 7

27727A–USB–09/07AVR280 Application Note 2. Theory of Operation2.1 CDC Configuration2.1.0.1 USBThe CDC class configuration includes two interfaces :•

Página 8

37727A–USB–09/07 AVR280 Application NoteThis is the simplest use case of an UART-to-USB bridge. In such a configuration, once the device has been enu

Página 9

47727A–USB–09/07AVR280 Application Note – RESPONSE_AVAILABLE : the device informs the host that a response is available. Host will need to send a GET

Página 10 - AVR280 Application Note

57727A–USB–09/07 AVR280 Application Note3.1 EnumerationWhen a device connects to the host, enumeration starts. If the device interface is accepted by

Página 11 - AVR280 Application Note

67727A–USB–09/07AVR280 Application Note Code 3-1. CDC device connection detection3.2 Data TransferData transfer is very easy to implement.3.2.1 Recei

Página 12

77727A–USB–09/07 AVR280 Application Note– the array cdc_stream_in_array[CDC_STREAM_IN_SIZE ] is filled in by firmware with incoming data– the variabl

Página 13

87727A–USB–09/07AVR280 Application Note 3.2.2 Sending dataThe principe of operation is very similar to the data reception stage. Data to be transmitt

Página 14 - Regional Headquarters

97727A–USB–09/07 AVR280 Application NoteCode 3-4. Additionnal functions3.3 Communication Management3.3.1 Management elementThrough the endpoint 0 are

Comentários a estes Manuais

Sem comentários