ملخص المحتوى في الصفحة رقم 1
Ethernet-DK
EMBEDDED ETHERNET DEVELOPMENT KIT USER’S GUIDE
1. Overview
The Embedded Ethernet Development Kit (Ethernet-DK) provides all the hardware and software required to
develop real-world embedded Ethernet applications using the industry proven CMX Micronet™ protocol stack and
high-performance Silicon Laboratories microcontrollers. The TCP/IP protocol stack is developed specifically for
embedded processors and is freely distributed in an easy-to-use library. A TCP/IP Configuration Wizard i
ملخص المحتوى في الصفحة رقم 2
Ethernet-DK 2. Kit Contents The Embedded Ethernet Development Kit contains the following items: C8051F120 Target Board AB4 Ethernet Development Board CAT5e Ethernet Cable Silicon Laboratories Evaluation Kit IDE and Product Information CD-ROM. CD content includes the following: Silicon Laboratories Integrated Development Environment (IDE) Keil C51 Evaluation Toolchain (assembler, linker and C compiler with 4 kB object code generation and unlimited library code usage) Source code e
ملخص المحتوى في الصفحة رقم 3
Ethernet-DK 3. Hardware Setup The following instructions illustrate how to setup the hardware included with the kit. 1. Connect the AB4 Ethernet Development Board to the C8051F120 Target Board at J24 (Figure 2). Apply slight pressure to ensure the mating 96-pin connectors are firmly connected. 2. Using the ribbon cable, connect the USB Debug Adapter to the C8051F120 Target Board at the JTAG header as shown in Figure 3. 3. Connect one end of the provided USB cable to any available USB port on
ملخص المحتوى في الصفحة رقم 4
Ethernet-DK 4. Network Setup The Embedded Ethernet Development Kit can be connected to an Ethernet network using a standard Ethernet cable (see Figure 4) or directly to a PC using a crossover cable (see Figure 5). Table 1 describes the benefits of using each of the connection methods. A standard Ethernet cable is included in the kit and crossover cables are available for order from the Silicon Laboratories website, at www.silabs.com. Note: Firewalls or VPN policies may need to be disabled in or
ملخص المحتوى في الصفحة رقم 5
Ethernet-DK 4.1. Network Setup Procedure If using a standard cable: 1. Connect the AB4 Ethernet Development Board to an Ethernet wall outlet or to a router/switch using a standard Ethernet cable. 2. Connect a PC to the same Ethernet network using a standard Ethernet cable. If using a crossover cable: 1. Connect the AB4 Ethernet Development Board directly to a PC using an Ethernet crossover cable. 2. Configure the PC to have a static IP address. The steps below show how to configure a Windows P
ملخص المحتوى في الصفحة رقم 6
Ethernet-DK 4.2. Selecting an IP Address for the Embedded System For a PC to recognize an embedded system on a network, its IP address and subnet mask need to be configured. Below are a few guidelines to follow when choosing an IP address for the embedded system. Figure 6 shows an example of a compatible PC and embedded system IP address combination. 1. Find the IP address and Subnet mask for the PC. If a Default Gateway is specified, then save this address for later use. If you are using a c
ملخص المحتوى في الصفحة رقم 7
Ethernet-DK 5. Software Setup The included CD-ROM contains the Silicon Laboratories IDE, Keil C51 toolset, and documentation including datasheets, application notes, and an electronic version of this user’s guide. The instructions below describe how to install the Embedded Ethernet Development Kit software. Refer to the readme.txt file on the CD-ROM for the IDE release notes containing the latest information regarding supported devices, revision history, and known issues. 1. Place the Embedded
ملخص المحتوى في الصفحة رقم 8
Ethernet-DK 4. Unselect the “Install Raisonance Evaluation 8051 Toolset” option and select “Install Keil Evaluation 8051 Toolset”. Then press the Install button. 5. Follow the installation prompts to install the development tools. The following applications will be installed: The Silicon Laboratories IDE will be installed by default in the C:\SiLabs\MCU directory. The Embedded Ethernet examples will be installed by default in the C:\SiLabs\MCU\Examples\C8051F12x\Ethernet directory. The
ملخص المحتوى في الصفحة رقم 9
Ethernet-DK 6. Embedded Ethernet Tutorial Now that the Embedded Ethernet Development Kit hardware has been set up, the software installed, and the embedded system connected to a network, it is time to download firmware into the MCU and test its network connectivity. The Embedded Ethernet Tutorial consists of four stages of increasing functionality and will allow the user to quickly learn how to use the development kit hardware and software. 6.1. Stage 1—Basic Web Server In the first demo stage
ملخص المحتوى في الصفحة رقم 10
Ethernet-DK 5. In the System Settings section of the left window, select IP Addresses. 6. In the right window, set the Source IP Address to the IP address of the embedded system. 7. If the Gateway IP Address and Subnet mask of the network are known, then fill in the addresses on the right window (see Figure 8). 8. If using the CP2200, the MAC address field is ignored. The CP2200 Ethernet Controller contains a unique factory-programmed MAC address stored in Flash memory. Figure 8. TCP/IP Confi
ملخص المحتوى في الصفحة رقم 11
Ethernet-DK 9. Save the selected configuration using the File Save As menu. 10. Generate a new project with supporting firmware by selecting Generate Project from the File menu (see Figure 9). 11. When prompted for a folder to save the project, browse to an empty directory or create a new directory. Note: Any files in the selected directory will be overwritten. Click the OK button. 12. Click the OK button when the “Project generated successfully” message appears. 13. Close the TCP/IP Confi
ملخص المحتوى في الصفحة رقم 12
Ethernet-DK 6.1.2. Programming the MCU We will now build the project created by the TCP/IP Configuration Wizard and download the firmware to the MCU using the Silicon Laboratories IDE. 1. From the Windows Start menu, start the Silicon Laboratories IDE. The shortcut will be under the Start Silicon Laboratories menu. Alternatively, the Silicon Labs IDE can be started by double-clicking IDE.exe located by default in the “C:\SiLabs\MCU” directory. 2. After the splash screen disappears, open the g
ملخص المحتوى في الصفحة رقم 13
Ethernet-DK 5. Verify the Compiler and Linker tabs are pointing to the C51.exe (compiler) and BL51.exe (linker) files in C:\Keil\C51\BIN in the Executable field. 6. Press the Compiler tab's Customize button. Under the Variable Location drop down box, select Large: XDATA and press OK. Then press OK to close the Tool Chain Integration dialog. 7. Build the project. This can be done by clicking on the Build/Make Project button in the toolbar, selecting Project Build/Make Project from the menu
ملخص المحتوى في الصفحة رقم 14
Ethernet-DK 8. Click the Connect button in the toolbar or select Debug Connect from the menu. Note: If you receive the error message “Communication could not be established with the specified serial adapter”, open the Connection Options Dialog by selecting Options Connection Options from the menu. Verify that the USB Debug Adapter is selected and that the debug interface is set to JTAG. 9. Download the project to the target by clicking the Download Code button in the toolbar. 10. Run the de
ملخص المحتوى في الصفحة رقم 15
Ethernet-DK 6.1.3. Testing Connectivity Using PING After pressing GO, the MCU will be executing the TCP/IP stack firmware. The LEDs on the RJ-45 Ethernet connector should light up if the MCU is connected to a network. Once the network router detects the presence of the embedded system, it will be accessible from any PC connected to the same network. This usually takes a few seconds, but can take over 30 seconds depending on the size of the network. The delay is minimized if the embedded system i
ملخص المحتوى في الصفحة رقم 16
Ethernet-DK 6.2. Stage 2—Basic Web Server with DHCP and Netfinder Capability In the first stage of the demo, we learned how to generate firmware for an embedded web server using the TCP/IP Configuration Wizard and access the embedded server from a web browser. In this stage, we will learn how to generate a web server that uses automatic network configuration (DHCP) to automatically obtain an IP address from the network. We will also find the embedded web server on the network using the Netfinde
ملخص المحتوى في الصفحة رقم 17
Ethernet-DK 5. Save the selected configuration using the File Save As menu. 6. Generate a new project with supporting firmware by selecting Generate Project from the File menu (see Figure 13). 7. When prompted for a folder to save the project, browse to an empty directory or create a new directory. Note: Any files in the selected directory will be overwritten. Click the OK button. 8. Click the OK button when the “Project generated successfully” message appears. 9. Close the TCP/IP Configur
ملخص المحتوى في الصفحة رقم 18
Ethernet-DK 6.2.2. Programming the MCU We will now build the project created by the TCP/IP Configuration Wizard and download the firmware to the MCU using the Silicon Laboratories IDE. 1. From the Windows Start menu, start the Silicon Laboratories IDE. The shortcut will be under the Start Silicon Laboratories menu. Alternatively, the Silicon Labs IDE can be started by double-clicking IDE.exe located by default in the “C:\SiLabs\MCU” directory. 2. After the splash screen disappears, open the g
ملخص المحتوى في الصفحة رقم 19
Ethernet-DK 5. Verify the Compiler and Linker tabs are pointing to the C51.exe (compiler) and BL51.exe (linker) files in C:\Keil\C51\BIN in the Executable field. 6. Press the Compiler tab's Customize button. Under the Variable Location drop down box, select Large: XDATA and press OK. Then press OK to close the Tool Chain Integration dialog. 7. Build the project. This can be done by clicking on the Build/Make Project button in the toolbar, selecting Project Build/Make Project from the menu
ملخص المحتوى في الصفحة رقم 20
Ethernet-DK 8. Click the Connect button in the toolbar or select Debug Connect from the menu. Note: If you receive the error message “Communication could not be established with the specified serial adapter”, open the Connection Options Dialog by selecting Options Connection Options from the menu. Verify that the USB Debug Adapter is selected and that the debug interface is set to JTAG. 9. Download the project to the target by clicking the Download Code button in the toolbar. 10. Run the de