Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, KEELOQ logo, microID, MPLAB, PIC,
PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Linear Active Thermistor, Migratable
Memory, MXDEV, MXLAB, SEEVAL, SmartSensor and The
Embedded Control Solutions Company are registered
trademarks of Microchip Technology Incorporated in the
U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi,
MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select
Mode, Smart Serial, SmartTel, Total Endurance, UNI/O,
WiperLock and ZENA are trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each page,
in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where
“XXXXX” is the document number and “A” is the revision level of the document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
Development Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
®
IDE on-line help.
DOCUMENT LAYOUT
This document describes how to use the PICDEM.net 2 Development Board as a
development tool to emulate and debug firmware on a target board. The manual layout
is as follows:
• Chapter 1. “Introduction to the PICDEM.net 2 Development Board” – Describes
what the PICDEM.net 2 Development Board is and what features are available on
the board.
• Chapter 2. “Getting Started with the PICDEM.net 2 Development Board” –
Describes how to connect and begin to use the PICDEM.net 2 Development Board.
a brief overview of the TCP/IP Stack Demo Application firmware and source code,
and how to modify the application and the demo web site.
• Chapter 4. “Reconfiguring and Restoring the PICDEM.net 2 Development Board” – Provides instructions on changing hardware configuration, loading a web
page into the on-board EEPROM and reconfiguring the network settings.
• Chapter 5. “Troubleshooting” – Provides information on solving common problems.
• Appendix A. “PICDEM.net 2 Development Board Schematics, Rev. 4” –
Provides schematic diagrams of the Development Board.
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available on the Microchip web site.
RECOMMENDED READING
This user’s guide describes how to use the PICDEM.net 2 Development Board. Other
useful documents are listed below. The following Microchip documents are
available and recommended as supplemental reference resources.
Readme for Development Kit
For the latest information on using the PICDEM.net 2 Development Board, read the
Readme for PICDEMnet 2.txt file (an ASCII text file) on the “PICDEM.net™ 2
Development Kit” CD-ROM included with the Development Board kit. The Readme file
contains updated information and known issues that may not be included in this user’s
guide.
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in
the Readmes subdirectory of the MPLAB
contain updated information and known issues that may not be included in this user’s
guide.
“PIC18F97J60 Family Data Sheet” (DS39762)
Consult this document for detailed information on Microchip’s first family of 8-bit
microcontrollers with on-chip Ethernet capability. Reference information found in this
data sheet includes:
• Device pinout and packaging details
• Device electrical specifications
• Device memory map
• List of peripherals included on the device
• Practical information on using the Ethernet interface module in connectivity
solutions
“ENC28J60 Data Sheet” (DS39662)
Consult this document for detailed information on the non-microcontroller Ethernet
interface. Reference information found in this data sheet includes:
• Device pinout and packaging details
• Device electrical specifications
• Device memory map
• Practical information on using the Ethernet interface module in connectivity
solutions
AN833, “The Microchip TCP/IP Stack” (DS00833)
This particular application note gives a detailed explanation of the free Microchip
TCP/IP Stack on which the kit’s firmware is based. It is referred to throughout this
manual as a primary reference.
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listing of Microchip sales offices,
distributors and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB
and MPLAB ASM30 assemblers; MPLINK™ and MPLAB LINK30 object linkers;
and MPLIB™ and MPLAB LIB30 object librarians.
• Emulators – The latest information on Microchip in-circuit emulators. This
includes the MPLAB ICE 2000 and MPLAB ICE 4000.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 2.
• MPLAB
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
operating system Integrated Development Environment for development systems
tools. This list is focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE
project manager and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 and PRO MATE
development programmer and the PICkit
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or Field Application Engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com.
DOCUMENT REVISION HISTORY
Revision A (September 2006)
• Initial Release of this Document.
Revision B (June 2007)
Preface
• Edits to Section 1.3 “The Development Kit: What’s In The Box”.
The PICDEM.net 2 Development Board was created to allow developers to examine
Microchip’s latest available technology in embedded Ethernet and Internet solutions.
Using the free Microchip TCP/IP Stack source code, developers can experiment with
the preprogrammed Microchip TCP/IP Demo Application and learn how to integrate
connectivity into their applications.
1.2HIGHLIGHTS
This chapter covers the following:
• The Development Kit: What’s In The Box
• The PICDEM.net 2 Development Board
• The Development Kit CD
PICDEM.net™ 2 DEVELOPMENT
BOARD USER’S GUIDE
Development Board
1.3THE DEVELOPMENT KIT: WHAT’S IN THE BOX
Your Development Kit contains the following items:
1. The PICDEM.net 2 Development Board
2. A standard CAT5 “straight-through” network cable for networking the board
3. A CAT5 “crossover” network cable for networking the board directly to a
The PICDEM.net 2 Development Board has all the features to begin developing
Internet connectivity applications over an Ethernet connection. The preprogrammed
firmware allows users to begin evaluating the board right out of the box with no
additional programming or configuration. All that is required to begin exploring the
board is a network-enabled computer with an Ethernet adapter and Internet browser
software. (See Chapter 2. “Getting Started with the PICDEM.net 2 Development
Board” for more specific information.)
FIGURE 1-1:PICDEM.net™ 2 DEVELOPMENT BOARD LAYOUT
18
6
4
5
7
12
3
10
1
11
2
PICtail™
Daughter
Board
13
PICDEM.ne t™ 2
Development Board
9
8
17
14
16
15
Features on the PICDEM.net 2 Development Board include:
1. MICROCONTROLLER: A Microchip PIC18F97J60 microcontroller with built-in
Ethernet controller and transceiver is directly installed on the board (U3). The
device is clocked at 25 MHz and has been preprogrammed with the Demo Application firmware using the Microchip TCP/IP Stack. Jumpers, JP15 and JP3, can
be used to measure the current consumption of the microcontroller.
2. ETHERNET CONTROLLER: In addition to the PIC18F97J60, the PICDEM.net 2
Development Board also features a Microchip ENC28J60 stand-alone Ethernet
controller. This device provides Ethernet connectivity for microcontroller-based
applications using a standard SPI interface.
3. MEMORY: A Microchip 25LC256 serial EEPROM (U4) provides 256 Kbits
(32 Kbytes) of storage for both web pages and nonvolatile configuration options.
The 25LC256 is programmable via an SPI interface.
4. LCD DISPLAY: A two-line by 16-character dot matrix display shows diagnostic
and error messages with the factory programmed firmware. It may be used for
other applications with appropriate reprogramming.
Introduction to the PICDEM.net 2 Development Board
5. OPTIONAL EXTERNAL LCD CONNECTOR: Space is provided on the board for
the installation of a 30-pin, bottom contact FFC edge connector (Hirose
FH12-30S-0.5SH or equivalent). This will allow the use of an external LCD
character display module (such as one of the Optrex™ F-51320 series) to the
board via a ribbon cable. Note that using an external LCD module will require
appropriate changes to the application code, as well as the use of a ribbon cable
compatible with the connector.
6. TEMPERATURE SENSOR: This analog temperature sensor, a Microchip
TC1047 (U1), is connected to an analog I/O pin of the microcontroller. It can be
disconnected by jumper.
7. USER-DEFINED LEDs: Eight LEDs are driven by digital I/O pins of the controller
(PORTJ) and may be used to simulate a digital output to an embedded device.
They may also be enabled or disabled by jumper selection on the board.
8. USER-DEFINED PUSH BUTTONS: These switches are connected to digital I/O
pins on the microcontroller (PORTB<3:0>) and may be used to simulate a digital
input in an embedded application.
9. USER-DEFINED POTENTIOMETER: One 10 kOhm potentiometer is connected
to an analog I/O pin of the microcontroller. It can be used to simulate an analog
input in an embedded application.
10. RESET PUSH BUTTON: This switch is tied to the MCLR
and is used to reset the board.
11. RJ-45 (10Base-T) MODULAR CONNECTORS: The PICDEM.net 2
Development Board is outfitted with two Integrated Connector Modules (ICMs),
one each for the PIC18F97J60 and ENC28J60. These ICMs provide the modular jack, as well as the necessary transformers, EMI suppression and status
LEDs, for Ethernet connectivity.
Each ICM has its own ACTIVITY and LINK LEDs on the left and right sides of the
ICM, respectively (as viewed from the top). These show if an Ethernet application
is transmitting or receiving a packet, and if the Ethernet connection is active. The
LEDs for the PIC18F97J60 (on J1) can be disconnected by jumpers if the I/O
ports, RA0 and RA1, are to be used for another purpose.
12. RJ-11 (Six-Wire) MODULAR CONNECTOR: This allows the Development
Board to be connected to Microchip MPLAB ICD 2 systems for in-system
programming, as well as advanced application debugging.
13. SERIAL PORT: The PICDEM.net 2 Development Board includes an RS-232 port
with a DB9 connector (P1) and appropriate level-shifting hardware (U5). This
allows for the configuration of the board’s IP and Ethernet address through a
standard serial connection. This interface also allows users to download new
web pages to the EEPROM.
14. I/O AND PICtail™ DAUGHTER BOARD ACCESS: A pair of female risers (J5
and J6) allow direct access to five of the microcontroller’s I/O ports (PORTA
through PORTE). The even pins of J5 also serve as a standard interface between
the PICDEM.net 2 Development Board and any of Microchip’s PICtail daughter
board series.
15. PROTOTYPE AREA: A 9x20 grid with through-holes is provided for users to
breadboard additional circuitry for development. Three SOT-23 pads and a
SOIC-28 footprint are also provided for surface mounting common components.
Connections are provided for +3.3 V
DC, +5 VDC, +9 VDC and ground.
16. ON-BOARD POWER: Two on-board regulators provide separate 5 V
3.3 V
DC at 500 mA common current, from the 9 VDC supplied at J7.
17. POWER-ON LED: This LED (D9) shows the board is powered up.
18. ETHERNET ID STICKERS (TRACE SIDE): The numbers on the two stickers
are used to form the unique Media Access Control (MAC) addresses used by
the Ethernet transceivers to identify and filter packets. The number is the base
10 version of the last 6 hexadecimal digits of the 12-digit MAC address. For
example, the sticker number, “12345”, represents 003039h in the MAC address.
One of these is assigned to the PIC18F97J60 and the other to the ENC28J60.
These MAC addresses are provided for evaluation purposes; both addresses
can be changed in software.
1.5THE DEVELOPMENT KIT CD
The “PICDEM.net 2 Development Kit” CD contains:
• The complete source code for the free Microchip TCP/IP Stack Demo Application.
To install the source code and necessary support files on your computer, run the
installer file, MCHPTCPStack 3.75.exe (available when this manual was
written; your kit may have a newer version). If you are restoring the Demo Application firmware and/or the demo web site as originally shipped from the factory, use
the appropriate files as described in Section 3.3 “The Source Code”.
• Other example applications for use with PIC18F97J60 and ENC28J60 devices.
• The complete selection of technical documentation for Microchip’s connectivity
solution, located in the Doc folder. Included are the complete data sheets for the
PIC18F97J60 microcontroller and ENC28J60 Ethernet controller. Also of note, in
this folder is the Microchip Application Note AN833, “The Microchip TCP/IP Stack”
(DS00833) which is referred to throughout this manual.
• This manual, in Adobe
The most up-to-date information on demo solutions, as well as the latest version of the
free Microchip TCP/IP Stack, are available on the Internet Solutions page of the Design
Center at the Microchip web site:
• Using PICDEM.net 2 Development Board with a Local Host System
• Connecting the PICDEM.net 2 Development Board
• Configuring the PICDEM.net 2 Development Board
• Establishing Communications
2.2NETWORK PRECAUTIONS: BEFORE YOU START
The PICDEM.net 2 Development Board provided in your kit is designed to demonstrate
the possibilities of networking with embedded Microchip controllers over Ethernet and
the Internet. As with any experimental system, however, some precautions are in order
before you start.
Whenever new hardware or software is added to a network, it is always advisable to
create a separate test network that is isolated from your LAN. This allows testing the
new system in a controlled environment and minimizes the possibilities of network
interference from the new equipment. The major sources of potential interference
include:
• Addressing – Each device on the network must have a unique address. If
Dynamic Host Configuration Protocol (DHCP) is in use, the PICDEM.net 2
Development Board will automatically acquire a valid IP address. If DHCP is not
used, or a fixed address is required, adding the board to the network without
assigning an address may create network conflicts.
• Traffic Levels – While the on-board Ethernet controller will filter out unwanted
messages, a highly loaded network with many broadcast messages may place a
sizable burden on the Development Board.
• Data Security – Although it is unlikely that the addition of a single device will
compromise the integrity or privacy of sensitive information, it is always a good
idea to perform extensive testing with new equipment before adding it to a
secure network.
• Experimentation – Even as a simple microcontroller-based device, the
Development Board is capable of generating a high volume of network traffic
which may severely disrupt normal network operations.