Gebruiksaanwijzing /service van het product Network Card van de fabrikant Silicon Laboratories
Ga naar pagina of 40
Rev. 0.6 1/11 Copyright © 2011 by Silicon La bo ratories Ethernet-DK Ethernet-DK E MBEDDED E THERNET D EVELOPMENT K IT U SER ’ S G UIDE 1. Overview The Embedded Ether net Development Kit (Ethe rnet.
Ethernet-DK 2 Rev. 0.6 2. Kit Content s The Embedded Ethernet Develo pment Kit contains the following items: C8051F120 T arget Board AB4 Ethernet Development Board CA T5e Ethernet Cable Silicon Laboratories Evaluation Kit IDE and Product Information CD-ROM.
Ethernet-DK Rev. 0.6 3 3. Hardware Setup The following instructions illu strate how to setup the har dware included with the kit. 1. Connect the AB4 Ethernet Development Board to the C8051F120 T arg et Board at J24 (Fig ure 2). Apply slight pressure to ensure the matin g 96 -pin connectors ar e firmly connected.
Ethernet-DK 4 Rev. 0.6 4. Network Setup The Embedded Ethern et Developmen t Kit can be connecte d to an Ethernet network using a st andard Ethern et cable (see Figure 4) or directly to a PC using a crosso ver cable (see Figu re 5). T able 1 describes the benefit s of using each of the con nection methods.
Ethernet-DK Rev. 0.6 5 4.1. Network Setup Procedure If using a standard ca ble: 1. Connect the AB4 Ethernet Development Board to an Ethernet wall o utlet or to a router/switch using a standar d Ethernet cable. 2. Connect a PC to the same Ethernet network using a st andard Ethernet cable.
Ethernet-DK 6 Rev. 0.6 4.2. Selecting an IP Ad dress for the Embedded System For a PC to recognize an embedde d system on a network, it s IP address and subnet mask need to be configured. Below are a few guid elines to follow wh en choosing an IP a ddress for the embedded system.
Ethernet-DK Rev. 0.6 7 5. Sof tware Setup The included CD-ROM contains the S ilicon Laboratories IDE, Keil C51 toolset, and document ation including datasheet s, application notes, a nd an electronic version of this user’s guide. The instructions below de scribe how to install the Embe dded Ethernet Deve lopment Kit sof twa re.
Ethernet-DK 8 Rev. 0.6 4. Unselect the “Inst a ll Raisonance Evaluation 8051 T o olset” option and se lect “Install Keil Evalua tion 8051 T oolset”. Then press the In st all button. 5. Follow the installati on prompts to install the development tools.
Ethernet-DK Rev. 0.6 9 6. Embedded Ethernet T utorial Now that the E mbedded Ethern et Developm ent Kit hardware has been set u p, the software installed, an d the embedded system connected to a network, it is time to download firmware into the MCU an d test its ne twork connectivity .
Ethernet-DK 10 Rev. 0.6 5. In the System Settings section of the left window , select IP Address es . 6. In the right window , set the Source IP Address to the IP address of the em bedded system. 7. If the Gateway IP Address and Subnet mask of the network are known, th en fill in the addresses on the right window (see Figure 8 ).
Ethernet-DK Rev. 0.6 11 9. Save the selected configuration using the File Save As m enu. 10. Generate a new project with supporting firmware by selecting Generate Project from the File menu (s ee Figure 9). 1 1. Whe n pr om p te d fo r a folder to sav e the project, br owse to an empty directory or create a new directory .
Ethernet-DK 12 Rev. 0.6 6.1.2. Programming the MCU We will now build the project created by the TCP/IP Conf iguration Wizard and downloa d the firmware to the MCU using the Silicon La boratories IDE. 1. From the Windows S tart menu, st art the Silicon Laboratories IDE .
Ethernet-DK Rev. 0.6 13 5. V erify the Compiler and Linker t abs are pointing to the C51.exe (compiler) and BL51.exe (linker) files in C:KeilC51BIN in the Exec ut able fie ld. 6. Press the Compiler tab's Customize button. Under the V ariable Location drop down box, select Large: XDA T A and press OK .
Ethernet-DK 14 Rev. 0.6 8. Click the Connect button in the toolbar or select Debug Connect from the menu . Note: If you receive th e er ro r me ssa g e “Communication could not be established with th e specified serial adapter”, op en the Connection Options Dialog by selecting Options Connection Opt ions from the menu.
Ethernet-DK Rev. 0.6 15 6.1.3. T esting 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 lig ht up if the MCU is conn ected to a ne twork.
Ethernet-DK 16 Rev. 0.6 6.2. St age 2—Basic Web Server wi th DHCP and Net finder Capability In the first st age of the de mo, we learned ho w to generate firmware for an em bedded web server using the TCP/IP Configuration Wizard and access the embedded server from a web browser .
Ethernet-DK Rev. 0.6 17 5. Save the selected configuration using the File Save As m enu. 6. Generate a new project with supporting firmware by se lecting Generate Pr oject from the File menu (see Figure 13). 7. When prompted for a folder to save th e project, browse to an empty directory or create a new directory .
Ethernet-DK 18 Rev. 0.6 6.2.2. Programming the MCU We will now build the project created by the TCP/IP Conf iguration Wizard and downloa d the firmware to the MCU using the Silicon La boratories IDE. 1. From the Windows S tart menu, st art the Silicon Laboratories IDE .
Ethernet-DK Rev. 0.6 19 5. V erify the Compiler and Linker t abs are pointing to the C51.exe (compiler) and BL51.exe (linker) files in C:KeilC51BIN in the Exec ut able fie ld. 6. Press the Compiler tab's Customize button. Under the V ariable Location drop down box, select Large: XDA T A and press OK .
Ethernet-DK 20 Rev. 0.6 8. Click the Connect button in the toolbar or select Debug Connect from the menu . Note: If you receive th e er ro r me ssa g e “Communication could not be established with th e specified serial adapter”, op en the Connection Options Dialog by selecting Options Connection Opt ions from the menu.
Ethernet-DK Rev. 0.6 21 6.2.3. Fin ding the Emb edded Syst em We will now search for embedded systems on the network. Note: The Netfinder utility v1.0 is not compatible with Windows Vista or Windows 7. 1. Open th e Net finder utility found in C:SiLabsMCUUtilitiesNetfinder .
Ethernet-DK 22 Rev. 0.6 5. The default web browser should launch and display th e home page served by the e mbedded web server . The same result can be achieved by typing the IP addre ss of the embedded web ser ver into the addr ess bar of a web browse r .
Ethernet-DK Rev. 0.6 23 7. Enter the IP address, su bn et mask, and default gatewa y (if known) into the ‘Assign IP Address’ dialo g and press OK . See Appendix A for information on how to co nfigu r e the PC with a static IP address and how to select a static IP address for the CP220 1EB.
Ethernet-DK 24 Rev. 0.6 10. The default web browser sho uld launch and display the home p age served by the embedded web server . The same result can be achieved by typing the IP a ddr ess of the emb edd ed we b ser ver into the ad dr ess bar of a web browser .
Ethernet-DK Rev. 0.6 25 6.3. St age 3—Configuring MAC and IP Addresses over the Serial Port In the first two stages of the demo, we learned how to genera te firmware for an embedde d web server using the TCP/IP Configuration Wizard and access the embedded serv er from a web browser .
Ethernet-DK 26 Rev. 0.6 6.3.3. Programming the IP Address Now the MCU will be running the new firmwa re and blinking the gre en LED (P1.6) to indicate that the IP address has not been programmed . In this mode, the MCU is waiting for the user to initiate the update by connecting to the serial port and pressing any key to start.
Ethernet-DK Rev. 0.6 27 6.4. St age 4—Adding Web Server Content In the first three stages of the demo, we learne d how to make an embedded web se rver , find it on the network using Netfinder , and program its IP over the serial port.
Ethernet-DK 28 Rev. 0.6 6.4.3. Re-Building the Project an d Viewing Re sult s Once the file arrays are updated , it is time to re-build the project and view the result s.
Ethernet-DK Rev. 0.6 29 Figure 26. µWeb Embedded Web Server.
Ethernet-DK 30 Rev. 0.6 7. Exampl e Source Code The Embedded Ether net Development Kit includ es example source code, librari es, and register definition files for all MCU devices. These examp les are inst alled by defa ult in the “C: SiLabsMCUExamp les ” directory during IDE installation.
Ethernet-DK Rev. 0.6 31 8. C8051F120 T arget Board The Embedded Etherne t Development Kit includes a t arget board with a C8051F120 device pre-insta lled for evaluation and software development. Numerous input/ou tput (I/O) connections are provided to facilit ate prototyping using the t arget board.
Ethernet-DK 32 Rev. 0.6 8.1. C8051F120 T arg et Board Schematic Figure 28. C8051F120 T arget Board Schematic.
Ethernet-DK Rev. 0.6 33 9. AB4 Ethernet Developm ent Board The Embedded Ethernet De velopment Kit includes the AB4 Ethernet Development Board de signed to connect the C8051F120 (or C8051F340, C8 051F020, C8051F04 0, or C8051F060) t arget board to an ethern et network.
Ethernet-DK 34 Rev. 0.6 9.1. Exp a nsion I/O Connector (J1) The 96-pin exp ansion I/O connector J1 is used to conne ct the AB4 Ethernet Development Board to the C8051F120 T arget Board.
Ethernet-DK Rev. 0.6 35 9.2. AB4 Board Schematic.
Ethernet-DK 36 Rev. 0.6 10. Silicon Laboratories IDE (In tegrated Development Environment) The Silicon Laboratories IDE integrat es a source-code editor , source-l evel debugger and in-system Flash programm er . The use of t hird-party compile rs and ass emblers is also supported.
Ethernet-DK Rev. 0.6 37 A PPENDIX —S UPPORTED P ROTOCOLS Link/Physical Layer: Ethernet (IEEE802.3) —Widely installed local area network link/physical layer . Internet Layer: IP (Internet Protocol) —IP specifies the format of p ackets and manages the addre ssing of all devi ces on the network.
Ethernet-DK 38 Rev. 0.6 D OCUMENT C HANGE L IST Revision 0.3 to Revision 0.4 Added Netf inder Example . Added note that R1 sho uld be shorte d with a zer o ohm resistor on the 'F12x T arget Board. Updated the su pp or te d pr ot oc ols in the Appendix.
Ethernet-DK Rev. 0.6 39 N OTES :.
Ethernet-DK 40 Rev. 0.6 C ONT ACT I NFORMATION Silicon Laborato ries Inc. 400 W Cesar Chavez Austin, TX 78701 Please visit the Silicon Labs T echnical Support web page: https://www .silabs.com/support/pages/contacttechnicalsupport.aspx and register to submit a technical support request.
Een belangrijk punt na aankoop van elk apparaat Silicon Laboratories Network Card (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Silicon Laboratories Network Card heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Silicon Laboratories Network Card vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Silicon Laboratories Network Card leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Silicon Laboratories Network Card krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Silicon Laboratories Network Card bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Silicon Laboratories Network Card kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Silicon Laboratories Network Card . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.