PICDEM.net™ 2 Internet/Ethernet Development Board User’s Guide 2011 Microchip Technology Inc.
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.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Chapter 1. Introduction to the PICDEM.net 2 Development Board 1.1 Introduction ................................................................................................... 11 1.2 Highlights ...................................................................................................... 11 1.
PICDEM.net™ 2 Development Board User’s Guide NOTES: DS51623D-page 4 2011 Microchip Technology Inc.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Preface NOTICE TO CUSTOMERS 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.
PICDEM.net™ 2 Development Board User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: “MPLAB® IDE User’s Guide” Italic characters Referenced books Emphasized text ...is the only compiler...
Preface WARRANTY REGISTRATION 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.
PICDEM.net™ 2 Development Board User’s Guide THE MICROCHIP WEB SITE 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.
Preface DOCUMENT REVISION HISTORY Revision A (September 2006) • Initial Release of this Document. Revision B (June 2007) • Edits to Section 1.3 “The Development Kit: What’s In The Box”. Revision C (April 2008) • Revised to refer to the Microchip TCP/IP Stack Help for software-specific documentation. Revision D (April 2011) • Revised schematic and text references for the latest hardware version (v6), which adds auto-polarity detection circuitry and an EMI filter.
PICDEM.net™ 2 Development Board User’s Guide NOTES: DS51623D-page 10 2011 Microchip Technology Inc.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Chapter 1. Introduction to the PICDEM.net 2 Development Board 1.1 INTRODUCTION 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.
PICDEM.net™ 2 Development Board User’s Guide 1.4 THE PICDEM.net 2 DEVELOPMENT BOARD 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.
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.
PICDEM.net™ 2 Development Board User’s Guide 18. ETHERNET ID STICKERS (BACK 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. The board’s full address is formed by appending the number on the sticker to the hex prefix “00:04:A3” (Microchip’s MAC address prefix).
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Chapter 2. Getting Started with the PICDEM.net 2 Development Board 2.1 HIGHLIGHTS This chapter will cover the following topics: • • • • 2.2 Network Precautions: Before You Start Using PICDEM.net 2 Development Board with a Test Network Connecting the PICDEM.net 2 Development Board Establishing Communications NETWORK PRECAUTIONS: BEFORE YOU START The PICDEM.
PICDEM.net™ 2 Development Board User’s Guide 2.3 USING PICDEM.net 2 DEVELOPMENT BOARD WITH A TEST NETWORK Although the PICDEM.net 2 Development Board is ready to communicate on a DHCP-enabled Ethernet network out of the box, you may have reasons not to do this.
Getting Started with the PICDEM.net 2 Development Board 2.4.1 Connecting to a Network This configuration is the basic method of networking the PICDEM.net 2 Development Board. This assumes there is a stable Ethernet network using TCP/IP for communications and that at least one DHCP server is present on the network. To set up the board for direct networking (see Figure 2-1): 1. Unbox and unwrap the board, and set it on a non-conductive surface near the host computer. 2.
PICDEM.net™ 2 Development Board User’s Guide 2.4.2 Connecting Directly to a Host System This option is used under the following situation: • Evaluation of the Development Board as part of a test system; • Operation on an isolated network is desired or; • Connection to a deployed network is not possible. To set up the board for connection to a local host (see Figure 2-2): 1. Unbox and unwrap the board, and set it on a non-conductive surface near the host computer. 2.
Getting Started with the PICDEM.net 2 Development Board 2.4.3 Confirming Operation Once the PICDEM.net 2 Development Board is properly connected and powered up, you should see all of the following: • • • • User LED D8 (tied to RJ0) is blinking User LEDs D1 through D7 are dark The green LINK LED on J1 is lit The LCD display shows the message: TCPStack vx.xx ?.?.?.? where “?.?.?.?” is the IP address currently in use by the board.
PICDEM.net™ 2 Development Board User’s Guide FIGURE 2-3: MICROCHIP TCP/IP STACK PAGE You are now ready to experiment with the PICDEM.net 2 Development Board. For more information about the TCP/IP Stack or the Demo Application, please refer to the Microchip TCP/IP Stack Help included with the Microchip Applications Library (see Section 1.5 “Development Kit Firmware” for more information). DS51623D-page 20 2011 Microchip Technology Inc.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Chapter 3. Reconfiguring and Restoring the PICDEM.net 2 Development Board 3.1 HIGHLIGHTS This chapter covers the following: • Reconfiguring the PICDEM.net 2 Development Board Hardware • Reprogramming and Restoring the Application Firmware 3.2 RECONFIGURING THE PICDEM.net 2 DEVELOPMENT BOARD HARDWARE The PICDEM.net 2 Development Board is provided with a range of hardware features for manual interaction, as well as a choice of two Ethernet interfaces.
PICDEM.
Reconfiguring and Restoring the PICDEM.net 2 Development Board 3.2.1.1 USER-DEFINED CONTROLS AND THE LED BANK The potentiometer and the user-defined push buttons are each connected to the PIC18F97J60 through their own individual jumpers. They may be selectively disabled to allow individual ports to become available for general I/O purposes. The LED bank (D1 through D8) is enabled as a group with one jumper (JP4). 3.2.1.
PICDEM.net™ 2 Development Board User’s Guide 3.3 REPROGRAMMING AND RESTORING THE APPLICATION FIRMWARE After investigating the PICDEM.net 2 Development Board and the Demo Application, you may be ready to modify the application, or perhaps design your own. To do this, it will be necessary to clear the existing firmware in the Flash program memory of the PIC18F97J60 microcontroller. The Development Board is preprogrammed with an Ethernet bootloader.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Chapter 4. Troubleshooting 4.1 HIGHLIGHTS This chapter will cover the following operational issues and how to resolve them: • Common Issues 4.2 COMMON ISSUES 1. User LED D8 does not light or flash when power is applied to the board. Check the PICDEM.net 2 Development Board for power: • Verify that the power supply is plugged in and the wall outlet has power. • Check that voltage is available (9 VDC) at the barrel plug. • Check that the regulated voltages (3.
PICDEM.net™ 2 Development Board User’s Guide 4. The PICDEM.net 2 Development Board will not communicate with the host system. Verify that the correct Ethernet cable is being used (see Item 2, above). Verify that the Ethernet cable is connected and undamaged. Verify that the IP address as displayed on the LCD is used to communicate. If the board fails when connected through a network device, verify that the device is working properly.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Appendix A. PICDEM.net 2 Development Board Schematics, Rev. 6 FIGURE A-1: PICDEM.net 2 DEVELOPMENT BOARD SCHEMATIC, SHEET 1 OF 5 (PIC18F97J60 MICROCONTROLLER) .1 F .1 F 2.26K .1 F .1 F U3 PIC18F97J60 .1 F .1 F .1 F .1 F 1 F .1 F .1 F kHz 22 pF 2011 Microchip Technology Inc.
PICDEM.net™ 2 Development Board User’s Guide FIGURE A-2: PICDEM.net 2 DEVELOPMENT BOARD SCHEMATIC, SHEET 2 OF 5 (PIC18F97J60 MICROCONTROLLER, ASSOCIATED COMPONENTS) .1 F 25 MHz 27 pF DS51623D-page 28 27 pF 2011 Microchip Technology Inc.
PICDEM.net 2 Development Board Schematics, Rev. 6 FIGURE A-3: PICDEM.net 2 DEVELOPMENT BOARD SCHEMATIC, SHEET 3 OF 5 (ENC28J60 INTERFACE AND ETHERNET MAGNETICS) 10 F .1 F .1 F U2 ENC28J60 25 MHz 27 pF .1 F 27 pF .1 F .1 F Polarity Switch (See Inset) J1 08B0-1X1T-36-F Polarity Switch J2 .1 F 08B0-1X1T-36-F .1 F R50 10K R51 10K 1000 pF 2 kV 2011 Microchip Technology Inc.
PICDEM.net™ 2 Development Board User’s Guide FIGURE A-4: PICDEM.net 2 DEVELOPMENT BOARD SCHEMATIC, SHEET 4 OF 5 (RS-232, EEPROM, TEMPERATURE SENSOR, LCD OPTIONS AND POWER SUPPLY) U5 MAX3232 U1 TC1047 .1 F .1 F .1 F .1 F .1 F .1 F Temperature Sensor U4 25LC256 Q2 TC1262-3.3VEB .1 F .1 F 47 F Q1 LM2940S-5.0 TP4 J7 TP3 .1 F 220 F .1 F 47 F TP5 Alternate LCD Configurations LCD1 .1 F LCD2 DS51623D-page 30 2011 Microchip Technology Inc.
PICDEM.net 2 Development Board Schematics, Rev. 6 FIGURE A-5: PICDEM.net 2 DEVELOPMENT BOARD SCHEMATIC, SHEET 5 OF 5 (ICD, ICSP™, LCD DISPLAY, MICROCONTROLLER HEADER AND PICtail™ DAUGHTER BOARD CONNECTORS) J3 J5 PICtail™ Daughter Board LCD Character Display Port 4.7 F 4.7 F 4.7 F 4.7 F 1 F 1 F 1 F 1 F 1 F J4 J6 .1 F ICD Connector 2011 Microchip Technology Inc.
PICDEM.net™ 2 Development Board User’s Guide NOTES: DS51623D-page 32 2011 Microchip Technology Inc.
PICDEM.net™ 2 DEVELOPMENT BOARD USER’S GUIDE Index C Microchip TCP/IP Stack ........................................... 19 Microcontroller PIC18F97J60 .................................................... 12 Modular Connector................................................... 13 Configuring the PICDEM.net 2 Development Board.............................................. 19 Connecting the PICDEM.net 2 Development Board.............................................. 16 Confirming Operation....................
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.