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

📄 usb-device-hid-keyboard-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 HID Keyboard 1.4</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    
    <body>
        <h1>USB Device HID Keyboard Project 1.4</h1>

        <div id="breadcrumb">
            <a href="../index.html">Main</a> >
            <a href="usb-framework.html">USB Framework</a> >
            HID Keyboard
        </div>

        <h2>Purpose</h2>
        <p>
            This application creates an USB HID (Human-Interface Device) keyboard on a host
            computer. Pressing any of the buttons on the board outputs characters or special
            keys on the host side.
        </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>
            This examples enumerates as an HID keyboard device to the host computer. Most
            operating systems have a default implementation of this class, so they will
            recognize the keyboard transparently.
        </p>
        <p>
            Once the device is fully configured by the OS, pressing the buttons on the
            board will cause one of the following QWERTY keys to be sent: 'A', '9',
            'Num. Lock' and 'Right Shift' (on evaluation kits with less than four buttons, it
            is not possible to output the extra keys).

            In addition, the third LED on the board will report the num. lock state of the
            keyboard. This means that when pressing the num. lock button on the EK or the num.
            lock button on the keyboard, the LED should turn on & off to reflect the change.
        </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 application.
            </li>
            <li>
                Optionally, connect the DBGU port of the evaluation board to the computer
                and open it in a terminal. Debug information generated by the application
                will be visibled that way.
            </li>
            <ul>
                <li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
            </ul>
            <li>
                Download and run the program 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>In the terminal window, the following text should appear:</li>
            <blockquote>
                <code>
                    -- USB Device HID Keyboard Project 1.4 --
                </code>
            </blockquote>
            <li>
                Connect the USB cable to the board. Traces should start to
                appear on the terminal. If this is the first time the device is connected to
                the PC, the operating system may take some time to install it.
            </li>
            <li>
                Once the device is connected and configured, pressing any of the board 
                buttons should send characters to the host PC. Pressing num. lock should
                also make the third LED toggle its state (on/off).
            </li>
        </ol>
        <h6>Atmel Corporation ©2008</h6>
    </body>
</html>

⌨️ 快捷键说明

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