We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!
Item Qty
Your cart is empty.

Etherent Hardware FAQs


How does the PIC18F97J60 produce a frequency of 41.667 MHz with an input of 25 MHz from the crystal?


The PIC18F97J60 takes an input of 25 MHz and produces two frequencies

  1. 25 MHz for the Ethernet module, and
  2. 41.667 MHz for the microcontroller block using the internal PLL block

Please refer to the Oscillator Configuration section in the PIC18F97J60 data sheet for further details.

There are two stickers on the bottom side of the board; one of these stickers says "25867". What does this mean?


This number represents the second half of a MAC address in decimal form. Converting “25867” to hex yields 00-65-0B. The first half of the MAC address for the board is 00-04-A3, which is Microchip’s OUI. Both together form a unique MAC address 00-04-A3-00-65-0B which can be used to configure the setting in TCPIPConfig.h file.

What cable should I use?


There are two kinds of Ethernet cable—straight-through (patch) and crossover. When connecting an embedded device directly to another embedded device (or a PC to a PC), a crossover cable must be used, while a straight-through cable must be used when connecting an embedded device or a PC to a hub/switch/router. Some new PCs, switches, and routers may have a feature called auto-medium dependent interface crossover (MDIX), which automatically detects the cable type and corrects the differential pair's connection inside the equipment.

What care should be taken to prevent Link termination on my board?


  1. The internal analog circuitry in the PHY module requires that an external resistor be attached from RBIAS to ground. The value required is dependent on the device, check data sheet and errata documents for the required value. The resistor influences the TPOUT+/- signal amplitude. It should be placed as close as possible to the chip with no adjacent signal traces to prevent noise-capacitive coupling into the pin. It is recommended that the resistor be a surface mount type.
  2. The transformers should have at least the isolation rating as specified in the datasheet to protect against static voltages and meet IEEE® 802.3 isolation requirements.
  3. Verify that the proper external clock frequency and ppm rating is used for the Ethernet PHY. For ENC28J60, ENCx24J600, and PIC18F97J60 family, the crystal should be a 25 MHz, 50 ppm parallel cut crystal.

What is a MAC address and how do I go about getting one?


The MAC address is a 48-bit or 64-bit Identifier (EUI-48™ & EUI-64™ node address) that provides the physical address of network hardware devices. An Ethernet MAC address has 48 bits, and every device must have its own unique MAC address. The first 24 bits of a MAC address are the Organizationally Unique Identifier (OUI). A MAC address is formed by concatenating an OUI with another 24-bit number, the Extension Identifier (EI). A company can purchase an OUI number directly from IEEE. Another option is to request for an Individual Address Block (IAB), but you will only get 4,096 unique addresses to use, versus 224 (over 16 million) different addresses when using an OUI.

OR

You can purchase our EUI-48 enabled MAC address chips. We do all of the above to offer a hassle free, easy access and low-cost solution. These plug-and-play MAC address devices come with 1.5 Kb serial EEPROM space and are available in SPI, I2C and UNI/O® buses. They can be purchased as and when needed, and there are no volume requirements. These devices are also EUI-64 compatible.

OR

Some devices, such as the PIC32, ENC424J600 and ENC624J600 10/100 Ethernet controllers, come with MAC addresses already pre-programmed.

What RJ45 connectors are recommended?


Some of the common RJ45 connectors recommended are:

  • Bel Stewart 08B0-X1T-36-F
  • Pulse JP011821UNL

What testing tools/equipment are necessary?


When troubleshooting an Internet application, it is critical to be able to monitor network transactions to find out what is going on. Wireshark (https://www.wireshark.org) is a network protocol capture/analyzer tool that is powerful and easy to use with filtering capability and it is free. If you need to test your product for IEEE 802.3 compliance, take a look at the Interoperability Laboratory at the University of New Hampshire (IOL-UNH). There's no official IEEE 802.3 test compliance program, but the IOL-UNH testing service has become the industry's de facto test house.

Will plugging in a 10BASE-T Ethernet device into a 100BASE-TX Ethernet network slow the network down?


If the network administrator takes care to configure the 10 BASE-T nodes as a sub-network behind a switch or router, the speeds are auto negotiated and therefore do not degrade the performance of the 100 BASE-TX network.

Software TCP/IP FAQs


How many bytes are occupied by the layers that are implemented in the TCP/IP stack?


The web pages that are stored in the External EEPROM and then retrieved from the EEPROM or the Program memory to display on the PC over Ethernet has a link to “Stack Footprint”. This “Stack Footprint” can be used to understand the footprint occupied by the Layers.

The same web page can be retrieved from the web pages folder in the TCPIP Demo App folder which is in the Microchip Solutions folder in your C drive.

What application layer protocols are supported by TCP/IP stack?


As of April 2012, the TCP/IP Stack has implemented the following Application Layer Protocols:

  • HTTP, SSL, FTP, TFTP, SMTP, Telnet, DHCP, DNS, SNMP (v2c, v3), NetBIOS, Boot loader, Ping, NBNS, SNTP and UART Bridging

Apart from this, the following Transport Layer Protocols are implemented

  • TCP, UDP and ICMP

The following Internet and Network Access layer Protocols are implemented:

  • ARP and IPv4/v6

What are the compilers that I can use to compile the TCP/IP stack?


The TCP/IP Stack can be compiled using the following compilers:

  • C18 Compiler if a 8-bit PIC® MCU device is selected.
  • C30 Compiler if a 16-bit PIC MCU or dsPIC® DSC device is selected.
  •  XC32 Compiler if a 32-bit PIC MCU device is selected

For more information please visit Our Award-Winning MPLAB XC Compilers.

What is a TCP/IP stack?


Communication over the Internet is accomplished by implementing the TCP/IP protocol. We offer a free TCP/IP software stack optimized for all our 8-/16-/32-bit MCU families. The stack is a suite of programs that provide services to all TCP/IP-based applications. Users do not need to know all the intricacies of the TCP/IP specifications in order to use it. Based on the TCP/IP Reference Model, the stack is divided into multiple layers, where each layer accesses services from one or more layers directly below it. Per specifications, many of the TCP/IP layers are “live”, in the sense that they not only act when a service is requested, but also when events like time-out or new packet arrival occurs. The stack is modular in design and is written in the ‘C’ programming language.

For more information, visit TCP/IP Stack Libraries Help 

What is the cost of the TCP/IP stack?


We provide a TCP/IP stack for PIC18, PIC24, PIC32 and dsPIC families that is both royalty-free and in source code format. We offer full source code and royalty free as long as the code runs on a PIC MCU. Visit our TCP/IP Stacks page to download the TCP/IP stack and get more information about the stack layers.

Where can I find the information on the boards supported by the stack and on enabling/disabling the boards?


Which files should be modified in the TCP/IP stack to implement selected protocols for my application?


The stack has define statements with which you can select the appropriate protocol files for your applications. Depending on the selection here, the files related to different protocols are either selected or not.

Ethernet Products


Documentation


Application Notes


Title
An SNMP Agent for the Microchip TCP/IP Stack Download
AN1120- Ethernet Theory of Operation Download

Brochure


Title
Connectivity Solutions for Embedded Design Download

Reference Manual


Title
PIC32 Family Reference Manual, Sect. 35 Ethernet Controller Download

Ethernet Software


Free Licensed Microchip TCP/IP Stack


 

Microchip's TCP/IP stack includes the following key features:

  • Supported Protocols: ARP, IP, ICMP, UDP, TCP, DHCP, SNMP, HTTP, FTP, TFTP
  • Socket support for TCP and UDP
  • Secure Sockets Layer (SSL)
  • NetBIOS Name Service
  • DNS - Domain Name System
  • TCPIP Discoverer
Microchip's TCP/IP stack

The stack is modular in design and is written in the ‘C’ programming language. Effective implementations can be accomplished in roughly 28-34 KB of code, depending on modules used, leaving plenty of code space on Microchip’s cost effective, high-density microcontrollers for the user application.

For more information, Explore fallowing Microchip TCP/IP Stack Resources:

Software  
TCP/IP Stack
Download
To download TCP/IP stack for PIC32, visit MPLAB® Harmony Integrated Software Framework Download

Data Encryption Libraries


Software  
To download data encryption libs for PIC32, visit MPLAB Harmony Integrated Software Framework which includes Microchip’s Cryptographic Libraries & WolfSSL’s CyaSSL Embedded SSL Library.
Download

Video Resources


Ethernet Devices