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

📄 basic-emac-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 - Basic EMAC 1.4</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    
    <body>
        <h1>Basic EMAC Project 1.4</h1>

        <div id="breadcrumb">
            <a href="../index.html">Main</a> >
            <a href="examples.html">Examples</a> >
            EMAC
        </div>

        <h2>Purpose</h2>
        <p>
            This project uses the Ethernet MAC (EMAC) and the on-board Ethernet transceiver available on Atmel evaluation kits.
            It enables the device to respond to a ping command sent by a host computer.
        </p>

        <h2>Hardware Requirements</h2>
        <div class="requirements">
            <p>
                This application will work on the following evaluation kits:
                <ul>
                    <li>AT91SAM7X-EK</li>
                    <li>AT91SAM7XC-EK</li>
                    <li>AT91SAM9260-EK</li>
                    <li>AT91SAM9263-EK</li>
                    <li>AT91SAM9XE-EK</li>
                    <li>AT91CAP9-DK</li>
                </ul>
            </p>
        </div>
        <p>
            The system reset signal NRST is connected to both the Ethernet PHY and the JTAG/ICE interface. This prevents the
            project from working properly when a JTAG probe is connected. To disconnect NRST from the ICE interface, the
            following modifications must be performed:
            <ul>
                <li>AT91SAM7X/XC-EK: cut strap S2.</li>
                <li>AT91SAM9XE-EK: remove resistor R14</li>
                <li>AT91SAM9260-EK: remove resistor R14</li>
                <li>AT91SAM9263-EK: remove resistor R18</li>
            </ul>
        </p>

        <h2>Description</h2>
        <p>
            Upon startup, the program will configure the EMAC with a default IP and MAC addresses and then ask the
            transceiver to auto-negotiate the best mode of operation. Once this is done, it will start monitoring
            incoming packets and processing them whenever appropriate.
        </p>
        <p>
            The basic will only answer to two kinds of packets:
            <ul>
                <li>It will reply to ARP requests with its MAC address,</li>
                <li>and to ICMP ECHO request so the device can be PING'ed.</li>
            </ul>
        </p>
        <p>
            To test that the board responds correctly to ping requests, type the following command-line on a computer
            connected to the same network as the board:
        </p>
        <blockquote><code>ping 10.159.245.156</code></blockquote>
       
        <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>
                <strong>Optionally</strong>, on the computer, open and configure a terminal application
                (e.g. HyperTerminal on Microsoft Windows) with thesesettings:
                <ul>
                    <li>115200 bauds</li>
                    <li>8 bits of data</li>
                    <li>No parity</li>
                    <li>1 stop bit</li>
                    <li>No flow control</li>
                </ul>
            </li>
            <li>
                Connect an Ethernet cable between the evaluation board and the network. The board may be connected directly
                to a computer; in this case, make sure to use a cross/twisted wired cable such as the one provided with the 
                evaluation kit.
            </li>
            <li>
                Start the application. It will display the following message on the DBGU:
                <blockquote>
                    <code>
                        -- Basic EMAC Project 1.4 --<br />
                        MAC 23:45:56:78:9a:bc<br />
                        IP  10.159.245.156<br />
                    </code>
                </blockquote>
            </li>
            <li>
                The program will then auto-negotiate the mode of operation and start receiving packets, displaying feedback
                on the DBGU. To display additional information, press any key in the terminal application.
            </li>
            <li>
                To test that the board responds to ICMP ECHO requests, type the following command line in a shell:
                <blockquote><code>ping 10.159.245.156</code></blockquote>
            </li>
        </ol>

        <h6>Atmel Corporation ©2008</h6>
    </body>
</html>

⌨️ 快捷键说明

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