Ethernet-DK
E
MBEDDED
E
THERN ET
D
EVELOPMENT
K
I T
U
SER
’
S
G
UIDE
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 is provided
to generate a highly customized library optimized for user selected protocols. It also generates the framework code
required to use the library and a project file that can be managed in the Silicon Laboratories Integrated
Development Environment (IDE). Additional information about the TCP/IP library and Configuration Wizard,
including a detailed API description, can be found in application note “AN237: TCP/IP Library Programmer’s
Guide”.
The Embedded Ethernet Development Kit hardware includes a C8051F120 Target Board, AB4 Ethernet
Development Board, USB Debug Adapter, and all necessary cables to debug the MCU and connect it to an
Ethernet network. The C8051F120 Target Board features the 100 MIPS, 128 kB Flash, 8 kB RAM, 8051-based
C8051F120 MCU. The MCU network interface provided by the AB4 board consists of the CP2200 Ethernet
controller and an RJ-45 connector with integrated magnetics and LEDs. The TCP/IP Library includes a built-in
driver for the CP2200 and has a custom driver interface with auto-generated templates to allow drivers for any
Ethernet controller to be written.
The Silicon Labs IDE supports full-speed, non-intrusive MCU debugging and is bundled with an evaluation version
of the Keil C51 Toolchain allowing immediate application code evaluation in C. Projects with up to 4 kB of object
code and unlimited library code can be developed using the included toolset. Numerous application code examples
are included in the development kit and a walkthrough of an embedded web server demo is included in Section 6
on page 9.
Figure 1. C8051F120TB Target Board and AB4 Ethernet Development Board
Rev. 0.6 1/11
Copyright © 2011 by Silicon Laboratories
Ethernet-DK
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:
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 examples and register definition files
Documentation
TCP/IP Configuration Wizard
Embedded Ethernet Development Kit User’s Guide (this document)
Silicon
Universal (100–240 V, 50–60 Hz) AC to DC Power Adapter
USB Debug Adapter (USB to JTAG/C2 Debug Interface)
USB Cable
Serial Cable
2
Rev. 0.6
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 the
PC
(Figure 3).
4. Connect the other end of the USB cable into the USB connector on the
USB Debug Adapter
(Figure 3).
5. Connect the
ac/dc Power Adapter
to the
C8051F120 Target Board
at P1 (Figure 3). This connection should
power both boards. Power is indicated by the "PWR" LED on the C8051F120 TB.
Note:
The 'F120TB places a 2
resistor in series with the power supply net powering the AB4 Board. We recom-
mend replacing this resistor with a 0
resistor to prevent large voltage drops, possibly triggering a V
DD
Monitor reset, when current demand increases.
AB4 Ethernet
Development
Board
RJ45
CP2200
J24
Port 5
Port 6
Port 3
J5
Port 4
Pin 2
Pin 1
Port 7
Port 1
P3.7 RESET
J10 J8 J6 J9
J3
P1.6
J1
Pin 2
Pin 1
R1
JTAG
J4
P1
Port 0
Port 2
J23
C8051F12x
Prototyping
Area
MONEN
J4
J3
J5
C8051F120
Target Board
Pin 2
Pin 1
J20
J11
J21
J22
LED1
LED2
SW2 SW1
J6
PWR
Figure 2. Embedded Ethernet Development Board Attachment
AB4 Ethernet
Development
Board
JTAG
C8051F120
Target Board
Ribbon
Cable
PC
USB
Debug
Adapter
USB
Cable
USB Port
AC / DC
Adapter
Figure 3. Embedded Ethernet Development Kit Debug Connections
Rev. 0.6
3
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 order to communicate with the development kit.
Table 1. Ethernet Cable Comparison
Standard Cable
Remote access to embedded system.
Multiple embedded systems may be networked and
accessed from the same (or multiple) PC(s).
Crossover Cable
Distance from PC to embedded system is limited by
the length of the cable.
Only a single embedded system may be accessed
from a single PC.
Shared communication medium. System may experience Dedicated channel bandwidth. Good for achieving
packet delays under heavy network traffic. This effect is
consistent data throughput measurements.
greatly reduced if using a switched network.
An existing network with wall outlet or a router/switch is
required.
No additional hardware required.
PC does not require any additional IP address configura- PC must be configured with a static IP address in
tion.
order to recognize embedded system.
Standard cable is included in development kit.
Crossover cable must be purchased separately.
PC
Ethernet
Cable
Ethernet
Connector
Ethernet
Router/
Switch
Or
Wall Outlet
Embedded Ethernet
Development Kit
‘F120TB + AB4
Ethernet
Cable
Ethernet
Connector
Figure 4. Embedded Ethernet Network Connection (Standard Cable)
PC
Embedded Ethernet
Development Kit
‘F120TB + AB4
Ethernet
Connector
Ethernet Crossover Cable
Ethernet
Connector
Figure 5. Embedded Ethernet Network Connection (Crossover Cable)
4
Rev. 0.6
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 PC to use
a static IP address.
a. Open the
Network Connections
Folder. This is accessible from the control panel or from the start menu by right-
clicking on
My Network Places
or
Network
and selecting
Properties.
b. Right-click on the
Local Area Connection
and select
Properties.
c. Select
Internet Protocol (TCP/IP)
and click
Properties.
Optionally, if the
Show icon in notification area when connected
is checked, right-clicking the system tray icon will provide a quick shortcut to the
LAN properties
dialog and can be
used as an indicator that the network is functioning properly.
d. Select
Use the following IP address
and specify an IP address and subnet mask for the PC. For a subnet mask of
255.255.255.0, the embedded system’s IP address must match the first three octets of the PC’s IP address for the PC
to recognize the embedded system. See Section 4.2 for additional information about choosing the embedded
system’s IP address.
Note:
When entering an IP or subnet address into the dialog box, the cursor will automatically advance to the next
field for a three digit octet. If entering a one or two digit octet, the spacebar, right arrow key, or ‘.’ can be pressed to
advance to the next field.
e. Click
OK
after the static IP address and subnet mask have been configured. The PC will now be able to access the
embedded system using a crossover cable.
Rev. 0.6
5