PICDEM.netTM USER'S GUIDE 2001 Microchip Technology Inc. DS39563A Iosoft Special Software License Agreement The software supplied as part of the PICDEM.net board is Copyright (c) 2001 by Iosoft, Ltd. All rights are reserved. This software is owned by Iosoft, and is only licensed for distribution with the book 'TCP/IP Lean' and the PICDEM.net board, and may only be used for personal experimentation by the purchaser of that book or the PICDEM.net kit, on condition that this copyright notice is retained. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license. For commercial licensing, contact license@iosoft.co.uk THIS IS EXPERIMENTAL SOFTWARE, PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. IOSOFT SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. "All rights reserved. Copyright (c) 2001, Microchip Technology Incorporated, USA. Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip's products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The Microchip logo and name are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries. All rights reserved. All other trademarks mentioned herein are the property of their respective companies. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights." Trademarks The Microchip name, logo, PIC, PICmicro, PICMASTER, PICSTART, PRO MATE, KEELOQ, SEEVAL, MPLAB and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Total Endurance, ICSP, In-Circuit Serial Programming, FilterLab, MXDEV, microID, FlexROM, fuzzyLAB, MPASM, MPLINK, MPLIB, PICDEM, PICDEM.net, ICEPIC, Migratable Memory, FanSense, ECONOMONITOR, Select Mode and microPort are trademarks of Microchip Technology Incorporated in the U.S.A. Serialized Quick Term Programming (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. (c) 2001, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Microchip received QS-9000 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona in July 1999. The Company's quality system processes and procedures are QS-9000 compliant for its PICmicro(R) 8-bit MCUs, KEELOQ(R) code hopping devices, Serial EEPROMs and microperipheral products. In addition, Microchip's quality system for the design and manufacture of development systems is ISO 9001 certified. DS39563A - page ii 2001 Microchip Technology Inc. PICDEM.netTM USER'S GUIDE Table of Contents Table of Contents General Information Introduction................................................................................................ 1 Highlights................................................................................................... 1 About This Guide....................................................................................... 1 Warranty Registration................................................................................ 3 Recommended Reading............................................................................ 3 Troubleshooting ......................................................................................... 4 The Microchip Internet Web Site ............................................................... 4 Development Systems Customer Notification Service .............................. 5 Customer Support ..................................................................................... 6 Chapter 1. Introduction to the PICDEM.net Board 1.1 Introduction ..................................................................................... 7 1.2 Highlights ........................................................................................ 7 1.3 The Demonstration Kit: What's In The Box..................................... 7 1.4 The PICDEM.net Demonstration Board.......................................... 8 1.5 The Development Manual............................................................. 10 1.6 The Internet Solutions CD ............................................................ 10 Chapter 2. Getting Started with the PICDEM.net Board 2.1 Highlights ...................................................................................... 11 2.2 Limitations on Networking............................................................. 11 2.3 Host Computer Requirements ...................................................... 12 2.4 Setting Up the Test System .......................................................... 12 2.5 Establishing Communications....................................................... 18 Chapter 3. Exploring The ChipWebTM Page 3.1 Highlights ....................................................................................... 21 3.2 Structure of the Page.................................................................... 21 2001 Microchip Technology Inc. DS39563A-page iii PICDEM.netTM User's Guide Chapter 4. Reconfiguring and Restoring the Firmware 4.1 Highlights ...................................................................................... 23 4.2 Reconfiguring the PICDEM.net Hardware .................................... 23 4.3 Reconfiguring the PICDEM.net Firmware ..................................... 23 4.4 Clearing the Controller Firmware .................................................. 26 Chapter 5. ChipWeb, the Miniature Ethernet Server 5.1 Overview ....................................................................................... 27 5.2 Hardware....................................................................................... 27 5.3 Ethernet Driver .............................................................................. 34 5.4 LCD Driver .................................................................................... 41 5.5 Other Drivers................................................................................. 43 5.6 Protocols ....................................................................................... 44 5.7 User Interface................................................................................ 54 5.8 Configuration................................................................................. 58 5.9 Source Code ................................................................................. 63 Chapter 6. Troubleshooting 6.1 Highlights ...................................................................................... 65 6.2 Common Issues ............................................................................ 65 Appendix A. PICDEM.net Board Schematics A.1 PICDEM.net Board Schematics .................................................... 69 Appendix B. PICDEM.net Internet Solutions CD B.1 Highlights ...................................................................................... 71 B.2 What's on the CD .......................................................................... 71 Index ......................................................................................................... 73 Worldwide Sales and Service................................................................. 76 DS39563A-page iv 2001 Microchip Technology Inc. PICDEM.netTM USER'S GUIDE General Information Introduction This chapter contains general information about this manual and contacting customer support. Highlights Topics covered in this chapter: * About this Guide * Recommended Reading * Warranty Registration * Troubleshooting * The Microchip Internet Web Site * Development Systems Customer Notification Service * Customer Support About This Guide Document Layout This document describes how to use PICDEM.net as an evaluation tool for embedded connectivity solutions using PICmicro(R) devices. The manual layout is as follows: * Chapter 1: Introduction to the PICDEM.net Board - What PICDEM.net is, and what features are available on the board. * Chapter 2: Getting Started with the PICDEM.net Board - Describes how to connect and begin to use the PICDEM.net board. * Chapter 3: Exploring The ChipWebTM Page - Describes the demonstration Web page provided with the PICDEM.net firmware. * Chapter 4: Reconfiguring and Restoring the Firmware - Provides instructions on loading a Web page into the on-board EEPROM, and reconfiguring the network settings. * Chapter 5: ChipWeb, the Miniature Ethernet Server - Provides an introduction to EthernetTM communications and TCP/IP, and an overview of how the custom TCP/IP stack firmware is implemented. * Chapter 6: Troubleshooting - Provides information on solving common problems. 2001 Microchip Technology Inc. DS39563A-page 1 PICDEM.netTM User's Guide * Appendix A: PICDEM.net Board Schematics - Provides schematic diagrams of the PICDEM.net board. * Appendix B: PICDEM.net Internet Solutions CD - Provides a summary of the software solutions on the accompanying CD-ROM. * Worldwide Sales and Service - Lists Microchip Sales and Service locations and telephone numbers, worldwide. Conventions Used in this Guide This manual uses the following documentation conventions: Documentation Conventions Description Represents Examples Code (Courier font): Plain characters Sample code Filenames and paths #define START c:\autoexec.bat Angle brackets: < > Variables