⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb-device-core-project.html

📁 at91sam7x的最新版Ucos-II内核源码.
💻 HTML
字号:
<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>Atmel Corporation - USB Device Enumeration Example 1.4</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    
    <body>
        <h1>USB Device Enumeration Example 1.4</h1>
        <div id="breadcrumb">
            <a href="../index.html">Main</a> >
            <a href="usb-framework.html">USB Framework</a> >
            Enumeration example
        </div>
        <h2>Purpose</h2>
        <p>
            The "USB Core" example project illustrates how to use the USB
            device framework provided by Atmel to create a simple USB
            application.
        </p>
        <div class="requirements">
            <h2>Hardware Requirements</h2>
            <p>
                This package can be used with the following Atmel evaluation boards:
                <ul>
                    <li>AT91SAM7S-EK (except AT91SAM7S32)</li>
                    <li>AT91SAM7X-EK</li>
                    <li>AT91SAM7SE-EK</li>
                    <li>AT91SAM7A3-EK</li>
                    <li>AT91SAM9260-EK</li>
                    <li>AT91SAM9261-EK</li>
                    <li>AT91SAM9263-EK</li>
                    <li>AT91SAM9RL-EK</li>
                    <li>AT91SAM9XE-EK</li>
                    <li>AT91SAM9G20-EK</li>
                </ul>
            </p>  
        </div>
        <h2>Description</h2>
        <p>
            The software performs the USB enumeration phase by sending
            simple descriptors to the host computer. On Microsoft Windows,
            this is enough to have the operating system detect the device
            and try to install it, despite having no functionality at all.
        </p>
        <p>
            To verify that the enumeration is done properly, the USB
            framework output debug traces through the DBGU. Here is the
            output produced by a normal execution of the application:
            <blockquote>
                <code>
                    -- USB Device Enumeration Project 1.4 --<br />
                    <br />
                    USB initialization<br />
                    USBD_Init<br />
                    Connecting device<br />
                    Conn Conn Hlr Res<br />
                    Hlr Res<br />
                    Hlr EoBRes CfgEpt0<br />
                    Hlr Susp<br />
                    Hlr Res<br />
                    Hlr EoBRes CfgEpt0<br />
                    Hlr Ept0 Stp Std gDesc Dev Write0(18)<br />
                    Hlr Ept0 Wr 18 EoT<br />
                    Hlr Ept0 Rd Ack<br />
                    Hlr EoBRes CfgEpt0<br />
                    Hlr Ept0 Stp Std sAddr Write0(0)<br />
                    Hlr Ept0 Wr 0 EoT SetAddr(1)<br />
                    Hlr Ept0 Stp Std gDesc Dev Write0(18)<br />
                    Hlr Ept0 Wr 18 EoT<br />
                    Hlr Ept0 Rd Ack<br />
                    Hlr Ept0 Stp Std gDesc Cfg Write0(9)<br />
                    Hlr Ept0 Wr 9 EoT<br />
                    Hlr Ept0 Rd Ack<br />
                    Hlr Ept0 Stp Std gDesc Cfg Write0(20)<br />
                    Hlr Ept0 Wr 20 EoT<br />
                    Hlr Ept0 Rd Ack<br />
                    Hlr Ept0 Stp Std gDesc Qua Stall0<br />
                    Hlr Ept0 Sta<br />
                    Hlr Susp<br />
                </code>
            </blockquote>
        </p>
        <p class="warning">
            WARNING: on the SAM7X/XC evaluation kit, the project only works in internal flash.
        </p>
       
        <h2>Usage</h2>
        <ol>
            <li>
                Build the program and download it inside the evaluation board.  Please refer
                to the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6132.pdf">SAM-BA User Guide</a>,
                the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6310.pdf">GNU-Based Software Development</a>
                application note or to the <a href="http://www.iar.se/website1/1.0.1.0/78/1/index.php?">IAR EWARM User Guide</a>,
                depending on your chosen solution.
            </li>
            <li>
                On the computer, open  the DBGU port with a terminal application
                (e.g. HyperTerminal on Microsoft Windows).
            </li>
            <ul>
                <li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
            </ul>
            <li>
                Start the application.
            </li>
            <li>In the terminal window, the following text should appear:</li>
            <blockquote>
                <code>
                    -- USB Device Enumeration Project 1.4 --
                </code>
            </blockquote>
            <li>
                Connect the USB cable to the board. Traces should start to
                appear on the terminal. Eventually, the operating system
                will report that an unknown device has been detected, and
                may try to install it.

                <br /><img src="img/hardwarefound.png" />
                <br /><img src="img/hardwarewizard.png" />
            </li>
        </ol>
        <h6>Atmel Corporation ©2008</h6>
    </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -