EDTP Electronics Packet Whacker

an article added by: Daniel R. at 12062007


In: Categories » » Ethernet » EDTP Electronics Packet Whacker

At a glance: An Ethernet interface on a circuit board with headers for connecting to a CPU. Typical use: adding Ethernet to any microcontroller circuit. Ethernet support: 10BASE-T Source: EDTP Electronics (www.edtp.com) Hardware. The Packet Whacker (Network article 3-11) from EDTP Electronics is an Ethernet interface only. The circuit board contains a Realtek RTL8019AS Ethernet controller, an RJ-45 connector, two headers that bring out the signals required to communicate with the Ethernet controller, and related components. You can use the Packet Whacker to add Ethernet to just about any microcontroller. EDTP Electronics has similar boards with other Ethernet controllers: the NICki has a Cirrus 8900A and the NICkita has an ASIX 88796L. The Whacked 8051 Development Board includes Packet Whacker circuits and adds a Philips P89C668 8051-compatible microcontroller and 64 kilobytes of Flash memory. Software. EDTP provides example Packet Whacker firmware for UDP and TCP communications using a Microchip PIC16F877.

The Whacked 8051 Development Board includes C and Basic (BASCOM-51) code for UDP, TCP, and other Internet protocols. The NICkita includes an e-book with information about using the ASIX 88796L controller. Serial-to-Ethernet Bridge At a glance: enables RS-232 and RS-485 devices to communicate over networks Ethernet support: 10BASE-T Typical use: remote communications with devices with serial interfaces. Sources: Z-World (www.zworld.com), Netburner (www.netburner.com), R.E. Smith (www.rs485.com). Hardware. Thousands of existing devices that don’t support Ethernet have an RS-232 or RS-485 serial interface. With a serial-to-Ethernet bridge, you can communicate with these devices in an Ethernet network. The bridge connects to the device’s serial interface and to an Ethernet network.

Computers anywhere in the network can then exchange data with the device. After being configured, the bridge transparently sends received serial data on the network in TCP segments and sends data received in TCP segments to the device’s serial interface. Two devices that connect to a network via bridges can communicate the same as if they were connected directly by a serial interface. The bridge converts between interfaces as needed. Serial-to-Ethernet bridges are available from a variety of sources. Z-World’s EM1500 Multipoint Serial-to-Ethernet Bridge supports four RS-232 ports and one RS-485 port. The board’s CPU is a Rabbit 3000. R.E. Smith’s ESPSX3 Serial Port Server has two RS-232 ports and one port that is configurable as an RS-232 port or an isolated RS-485 port. The board contains a Rabbit Semiconductor RCM2200 module. Netburner’s SB72 Serial-to-Ethernet Device and Processor Board supports one RS-232 or RS-485 interface. The board’s CPU is a Motorola ColdFire 5272. Software. A Serial-to-Ethernet Server typically comes with an application that enables you to enter settings for your network and devices. Most also include a Web page that you can use for configuring when the device is on the network. After configuring, computers on the network can use TCP/IP applications to communicate with the device.

In Depth: Ethernet Controllers

An embedded system that supports Ethernet requires Ethernet controller hardware to provide the Ethernet interface. Many Ethernet controller chips are designed for use in desktop computers and include support for standard PC buses and Plug-and-Play functions. Small embedded systems typically don’t need all of the capabilities of a PC’s Ethernet controller. But because they’re available and familiar, a few of the older, simpler PC controllers have found new life in embedded systems. More recently, controllers designed specifically for use in embedded systems have become available. This section introduces some of the more popular controllers for embedded systems. If you buy a module with a controller on it, it’s likely that it will use one of the chips described below. A module containing an Ethernet controller will probably include firmware support for communicating with the controller. In many cases you can use the firmware without having to know much about the controller’s inner workings. Some vendors provide source code so you can customize if needed, while others release only the executable code. Even if you don’t need to program a controller directly, a basic understanding of how the controller works is helpful in selecting hardware and troubleshooting.

What the Hardware Does

Ethernet communications are typically handled by a combination of an Ethernet controller chip and device-driver code that communicates with the controller. Network article 3-12 shows the location of the Ethernet hardware and driver in a network stack. Many embedded systems use IP with TCP or UDP, but for some applications, the Ethernet driver can communicate directly with the application layer. The controller chip handles many of the details of sending and receiving Ethernet frames. In sending a frame, a controller typically does all of the following:

• Receives the message to send and the destination address from higher-level software.

• Calculates the Ethernet frame check sequence.

• Places data, addresses, and other information in the frame’s fields.

• Attempts to transmit the frame when the network is idle.

• Detects collisions, cancels any transmitted frame with a collision, and retries according to the protocol specified in the IEEE 802.3 standard (half-duplex interfaces only).

• Provides an indication of success or failure of a transmission. In receiving a frame, a controller typically does all of the following:

• Detects and synchronizes to new received frames.

• Ignores any frames that are less than the minimum size.

• Ignores any frames that don’t contain the interface’s address or a valid multicast or broadcast address in the Destination Address field.

• Calculates the frame-check-sequence value, compares the result with the received value, and indicates an error if they don’t match.

• Makes the received frame’s data and other information available to the receiving computer. Higher-level software reads the message and does whatever needs to be done with it.

Ethernet Controller Basics

In an Ethernet-capable embedded system, a CPU manages communications with the Ethernet controller. The minimum requirement for the CPU is a microcontroller with an external 8-bit data bus. Some of the controllers that have been popular in embedded systems were designed for use on expansion cards for the ISA bus of early PCs. An embedded system that uses an ISA-compatible controller can ignore any unneeded interrupt, address, and status and control pins. A shorthand term for a network interface controller is NIC. The same term can also refer to an expansion card that contains a network interface controller. Related Components A typical controller requires few additional components. For 10BASE-T and 100BASE-TX systems, the IEEE 802.3 standard requires an isolation transformer that also functions as a low-pass filter between the controller and the network’s RJ-45 connector. Filters that comply with the standard are readily available. Examples include the FA163079 from YCL Electronics and the PM-1006 from Premier Magnetics. The appropriate filters vary with the controller chip or the MAU or PHY that connects to the filter. The vendors of these components typically provide recommendations and advice in selecting filters. As explained in Chapter 2, many controller chips require few additional components to interface to twisted-pair cable, but fiber-optic or coaxial cable is likely to require additional MAU or PHY circuits. Other typical required components include a timing crystal to clock the controller chip and decoupling capacitors for the power pins. Some controllers also support an interface to a serial EEPROM, which can provide nonvolatile, read/write storage of configuration data such as the Ethernet hardware address. Most controllers also have status outputs for interfacing to LEDs.

legal notice

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

Useful tools and features

Link to this article from your page    Send this article to you or to a friend
If you like this article (tutorial), please link to it from your web page using the information above.

related articles

1. Rabbit Semiconductor RCM3200
Design Choices Rabbit Semiconductor RCM3200. When you’re ready to begin designing an embedded system for networking, you’ll need to make some decisions about the device hardware and the programming code that will control the hardware. At one extreme, you can do it all yourself, interfacing an Ethernet controller chip to a CPU and writing code to support Ethernet communications and the Internet protocols the device uses. Or you can save a lot of time by starting with a module that contains a CPU, Ethern...

2. Dallas Semiconductor DSTINIm400
Dallas Semiconductor DSTINIm400 (TINI) At a Glance: A fast microcontroller with an enhanced 8051 architecture, plenty of I/O, an operating system, and a Java virtual machine (JVM). Ethernet support: 10BASE-T, 100BASE-TX Typical Uses: applications that need speed, lots of I/O, or a CAN interface. Source: Dallas Semiconductor (www.dalsemi.com). Dallas Semiconductor is a wholly owned subsidiary of Maxim Integrated Products. Hardware. TINI stands for Tiny InterNet Interface. Technically, the TINI isn’t a ...

3. The MCF5282 supports a subset of the Motorola 68000
Ethernet support: 10BASE-T The MCF5282 supports a subset of the Motorola 68000. Typical use: Applications that use Java and require speed. Source: Systronix (www.systronix.com). Hardware. The TINI isn’t the only option for Java programmers. Systronix’s JStik board (Network article 3-8) contains aJ-100 microcontroller from aJile Systems Inc. The aJ-100’s native execution of Java bytecodes results in very fast performance. The chip is base...

4. Ubicom IP2022 Wireless Network Processor
Special-Purpose Modules Ubicom IP2022 Wireless Network Processor. In addition to products that provide a complete generic system for networking, a variety of modules and chips are available to handle specific tasks. Some products can interface to just about any CPU. If you have an existing product or a CPU that you want to use, one of these modules may provide a way to add networking capability. This section describes a selection of products. Lantronix Device Server At a glance: enables any device with an ...

5. NE2000 Compatibility
NE2000 Compatibility A term you’re likely to hear in reference to program code for network controllers is NE2000-compatible. The NE2000 was an early and popular PC network interface card from Novell. The card contained National Semiconductor’s DP8390 controller. Software for systems that use the ’8390 or a compatible chip has come to be known as NE2000-compatible code. A major feature of the ’8390 is its set of internal registers. By reading and writing to the registers, a CPU can c...

6. Using the Internet Protocol in Local and Internet Communications
The protocols in the IEEE 802.3 Ethernet standard enable the computers in a local network to exchange messages with each other. In practice, most Ethernet networks also use Internet protocols such as TCP or UDP and IP. These provide defined and well-supported methods for accomplishing common tasks such as flow control and flexible addressing and routing of messages. Messages that travel on the Internet must use IP. And because TCP and UDP are designed to work along with IP, local communications that use TCP or UDP also use...

7. There are several options for obtaining an Internet connection
Technologies for Connecting There are several options for obtaining an Internet connection. A long-popular way for home users to connect to the Internet is via dial-up connections on phone lines. For higher speeds, alternatives are a Digital Subscriber Line (DSL), an Integrated Services Digital Network (ISDN) line, or a cable modem. Satellite connections are also possible. Table 4-1 compares the capabilities of the different methods. Not every connection type is available in all locations. Depending on ...

8. Every computer that communicates over the Internet must have an IP address
Static and Dynamic IP Addresses Every computer that communicates over the Internet must have an IP address, which the computer typically receives from its ISP. The IP address may be static or dynamic. A static IP address stays the same until someone explicitly changes it, while a dynamic IP address can change on every boot up or network connect (though the address typically changes only occasionally). An embedded system may store a static IP address in non-volatile memory, either within an application...

9. Obtaining and Using a Domain Name
Obtaining and Using a Domain Name After you obtain Internet access, connect your embedded system to the Internet, and configure your firewall to enable the embedded system to communicate, the system is ready to send and receive messages on the Internet. Applications running on other computers on the Internet can access the embedded system by specifying its public IP address. For example, to view a server’s home page, in the Address text box of a Web browser, you enter http:// followed by the server&rsquo...

10. Inside the Internet Protocol
The Internet Protocol (IP) helps data find its way to its destination even if the data must travel through other networks, including the many and varied networks that make up the Internet. Although it’s called the Internet Protocol, local networks can use IP as well. Many communications in local networks use IP because they use its companion protocols, TCP and UDP. This section introduces IP, including how computers obtain IP addresses, the format of IP datagrams, how IP and the domain name system help in getti...