Silicon Laboratories Network Card manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Silicon Laboratories Network Card, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Silicon Laboratories Network Card one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Silicon Laboratories Network Card. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Silicon Laboratories Network Card should contain:
- informations concerning technical data of Silicon Laboratories Network Card
- name of the manufacturer and a year of construction of the Silicon Laboratories Network Card item
- rules of operation, control and maintenance of the Silicon Laboratories Network Card item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Silicon Laboratories Network Card alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Silicon Laboratories Network Card, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Silicon Laboratories service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Silicon Laboratories Network Card.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Silicon Laboratories Network Card item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    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-DK) provides all the hardwa re and soft ware required to develop real-world embedded Ethernet applications usin g the industry proven CMX Micronet™[...]

  • Page 2

    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. CD content include s the following:  Silicon Laboratories Integrated D[...]

  • Page 3

    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. 2. Using the ribbon cable , connect [...]

  • Page 4

    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. A stand ard Ethernet ca ble is included i n[...]

  • Page 5

    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. If using a crossover cable: 1. Connect the AB4 Ethernet Devel[...]

  • Page 6

    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. Figure 6 shows a n example of a compatib le PC a nd embedded system I[...]

  • Page 7

    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. Refer to the readm[...]

  • Page 8

    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. The following applications will be installed:  The Silicon Laboratorie s IDE will be[...]

  • Page 9

    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 . The Embedded Ether net Tutorial consists of fo ur stages of inc[...]

  • Page 10

    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 ). 8. If using the CP[...]

  • Page 11

    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 . Note: Any files in th[...]

  • Page 12

    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 . The shortcut will be under the Start  Silicon Laboratories menu. Alternative[...]

  • Page 13

    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 . Then press OK to close the T ool Chain [...]

  • Page 14

    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. V erify that the [...]

  • Page 15

    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. Once the network router detect s the presence of the embedded system, it will be accessible from any PC connected t[...]

  • Page 16

    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 . In this stage, we will learn how to generate a web ser ver that use[...]

  • Page 17

    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 . Note: Any files in the select[...]

  • Page 18

    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 . The shortcut will be under the Start  Silicon Laboratories menu. Alternative[...]

  • Page 19

    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 . Then press OK to close the T ool Chain [...]

  • Page 20

    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. V erify that the [...]

  • Page 21

    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 . 2. Press the Search button as shown in Figure 14 to begin searching for[...]

  • Page 22

    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 . Figure 16 shows a screenshot of the home page. Now go directly to Section "6 .3. S t age[...]

  • Page 23

    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. A wi ndows command line window should ap pear , ping th[...]

  • Page 24

    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 . Figure 20 shows a screenshot of the uW eb-v2.0 home p ag e. Figure 20. Hello World Web P[...]

  • Page 25

    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 . In this stage, we will learn how to dyna mically config ure the[...]

  • Page 26

    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. Figu re 21 sh ows th[...]

  • Page 27

    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. In this stage, we will learn how to cha nge the HTML content on the server and see an example of an embedded te m[...]

  • Page 28

    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. 1. Open and re-build the proj ect. This can be done by selecting Project  Open Pr oject and selecting the correct proje ct, then clicki ng on the Build/Make Project button in t[...]

  • Page 29

    Ethernet-DK Rev. 0.6 29 Figure 26. µWeb Embedded Web Server[...]

  • Page 30

    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. Inside th is directory , an “Etherne t” folder i[...]

  • Page 31

    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. Refer to Fi gure 27 for the locations of the vari[...]

  • Page 32

    Ethernet-DK 32 Rev. 0.6 8.1. C8051F120 T arg et Board Schematic Figure 28. C8051F120 T arget Board Schematic[...]

  • Page 33

    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. The ethernet controller us ed is the CP2200. Refer to Figure 29 for the locations[...]

  • Page 34

    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. J1 provides access to man y C8051F12 0 sign al pins. Pins for +3 V , digita l ground, analo g ground an d the unregulated power supp ly (VUNREG) are also availa ble[...]

  • Page 35

    Ethernet-DK Rev. 0.6 35 9.2. AB4 Board Schematic[...]

  • Page 36

    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. This development kit includes the Keil Sof tware A51 macro assembler[...]

  • Page 37

    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. IP is included in all builds of the TCP/IP stack. [...]

  • Page 38

    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.  Updated screenshot s for V ersion 3.1 of the TCP/IP Configuration Wizard. Re[...]

  • Page 39

    Ethernet-DK Rev. 0.6 39 N OTES :[...]

  • Page 40

    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. . Silicon Laboratories and Silicon Labs are trademarks of Sili[...]