PIC18F87J50 FS USB Plug-In Module User’s Guide © 2007 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.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Table of Contents Preface ........................................................................................................................... 1 Chapter 1. Introduction and Overview ......................................................................... 5 1.1 Introduction ..................................................................................................... 5 1.2 Highlights ...............................................................
PIC18F87J50 FS USB Plug-In Module User’s Guide NOTES: DS51678A-page iv © 2007 Microchip Technology Inc.
PIC18F87J50 FS USB PLUG-IN MODULE 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.
PIC18F87J50 FS USB Plug-In Module User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guid
Preface RECOMMENDED READING This user's guide describes how to use PIC18F87J50 FS USB Plug-In Module. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
PIC18F87J50 FS USB Plug-In Module User’s Guide 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.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Chapter 1. Introduction and Overview 1.1 INTRODUCTION The PIC18F87J50 FS USB Plug-In Module (PIM) Demonstration Board and Kit is designed as an easy-to-use evaluation platform for Microchip's Full-Speed USB PIC18F87J50 family of microcontrollers. The PIM may be operated either stand-alone, or in conjunction with the HPC Explorer board (microchipDIRECT part number DM183022). These devices fully support USB 2.
PIC18F87J50 FS USB Plug-In Module User’s Guide 1.4 OVERVIEW OF THE PIC18F87J50 FAMILY USB CAPABILITIES The PIC18F87J50 microcontroller is the “superset” device in the PIC18F87J50 microcontroller family. The PIC18F87J50 has the highest memory and pin count in the family, but otherwise shares an identical feature set (except features which require pins not present on 64-pin devices) compared to the other devices.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Chapter 2. Important Notes and Migration Tips 2.1 HIGHLIGHTS This chapter discusses: • Using the PIM with the HPC Explorer Board • Programming the Microcontroller • Migrating to the PIC18F87J50 Family 2.2 USING THE PIM WITH THE HPC EXPLORER BOARD If the PIM will be used with the HPC Explorer board, be sure to set switch, S3, on the HPC Explorer to the “ICE” position PRIOR TO INSTALLING THE PIM.
PIC18F87J50 FS USB Plug-In Module User’s Guide 2.3 PROGRAMMING THE MICROCONTROLLER The PIC18F87J50 microcontroller located on the PIM may be reprogrammed in excess of 10,000 cycles. The PIM is too small to feature a full size RJ11 jack used on most Microchip demonstration boards. Instead, the PIM uses a 6-pin right angle male header (J5) which is electrically compatible with common Microchip programmers, such as the MPLAB® ICD 2 and the MPLAB REAL ICE™ in-circuit emulator.
Important Notes and Migration Tips 2.4.2 Oscillator Configuration The PIC18F87J50 family devices use the same 96 MHz PLL found in prior full-speed USB microcontrollers, such as the PIC18F4550, but the implementation of the surrounding clock structure is slightly different. When migrating up to the PIC18F87J50 family of devices, the most important change is the PLL does not automatically start when the microcontroller is powered on, even if it is programmed to use one of the PLL-enabled modes (e.g.
PIC18F87J50 FS USB Plug-In Module User’s Guide NOTES: DS51678A-page 10 © 2007 Microchip Technology Inc.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Chapter 3. Hardware Configuration/Jumper Settings 3.1 HIGHLIGHTS This chapter discusses: • • • • • • • 3.2 Hardware Features Crystal Linear Regulator/Power Management LEDs Push Buttons Jumpers Hardware Considerations for Compliance Testing HARDWARE FEATURES The PIC18F87J50 FS USB PIM has a number of hardware features intended to make it useful as an initial development platform and demonstration board. Refer to Appendix A.
PIC18F87J50 FS USB Plug-In Module User’s Guide FIGURE 3-1: KEY COMPONENT LOCATIONS 3 8 9 5 JP JP1 4 JP 1 2 5 4 7 3.3 6 CRYSTAL In order to use the USB module on the PIC18F87J50 family of microcontrollers, the module requires a fixed 48 MHz or 6 MHz clock for use in Full-Speed or Low-Speed modes, respectively. These clock frequencies can be derived from the internal 96 MHz PLL, and the microcontroller core need not run at the same frequency as the USB module.
Hardware Configuration/Jumper Settings 3.4 LINEAR REGULATOR/POWER MANAGEMENT The USB interface provides +5V (nominal) at up to 500 mA (only 100 mA can be ensured) for use by USB peripheral devices. In order to take advantage of this bus provided power, a 3.3V low drop out, low quiescent current linear regulator (TC1108-3.3VDB) has been included on the PIM. This enables the PIM to be purely bus powered, providing power to both the PIM and the HPC Explorer board if connected.
PIC18F87J50 FS USB Plug-In Module User’s Guide In addition to providing a convenient location for installing a digital current meter, JP4 also serves another purpose. In some cases, it may be undesirable to consume power from the USB port, for example, when developing end applications that are always self-powered or consume more than 300 mA (the maximum rating for the regulator).
Hardware Configuration/Jumper Settings Self-powered peripherals should periodically monitor the +5V VBUS line and detect when it is driven high. Only when it is powered should user firmware enable the USB module and turn on the D+ (for full speed) or D- (for low speed) pull-up resistor, signaling device attach to the host. The recommended method of monitoring the +5V VBUS line is to connect it to one of the microcontroller’s 5.5V tolerant I/O pins through a large value resistor (such as 100 kOhms).
PIC18F87J50 FS USB Plug-In Module User’s Guide NOTES: DS51678A-page 16 © 2007 Microchip Technology Inc.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Chapter 4. Demo Code/Reference Firmware To assist in the development of USB applications, Microchip provides a number of demonstration firmware projects (such as HID, CDC, etc.), and other support materials, such as application notes. The USB demonstration projects use the same basic USB framework, which is referred to as the “MCHPFSUSB Firmware”. Documentation for this firmware can be found in the “MCHPFSUSB Firmware User’s Guide” (DS51679).
PIC18F87J50 FS USB Plug-In Module User’s Guide NOTES: DS51678A-page 18 © 2007 Microchip Technology Inc.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Appendix A. PIC18F87J50 FS USB Plug-In Module Schematics A.1 SCHEMATICS The PIC18F87J50 FS USB Plug-In Module schematics are shown in Figure A-1 and Figure A-2. By default, the PIM ships from the factory with the PIC18F87J50 pre-installed in location U1. The PIC18F87J50 is the superset part in the device family, and is therefore, a good starting point for developing USB applications that will eventually use one of the other devices in the device family.
PIC18F87J50 FS USB Plug-In Module User’s Guide PIC18F87J50 FS USB PIM REV. 1 SCHEMATICS (SHEET 1 OF 2) VBUS VBUS .1 MF 1 MF 1 MF TM 2.2 MF VDD Test Point FIGURE A-1: DS51678A-page 20 © 2007 Microchip Technology Inc.
18 pF 36 35 43 44 45 46 37 38 58 57 56 55 54 53 52 47 OSC1/CLKI/RA7 49 OSC2/CLKO/RA6 50 RC0/T1OSO/T13CKI RC1/T1OSI/CCP2 RC2/CCP1 RC3/SCK1/SCL1 RC4/SDI1/SDA1 RC5/SDO1 RC6/TX1/CK1 RC7/RX1/DT1 RB0/INT0 RB1/INT1 RB2/INT2 RB3/INT3/CCP2 RB4/KBI0/PMA1 RB5/KBI1/PMA0 RB6/KBI2PGC RB7/KBI3/PGD RA0/AN0 RA1/AN1 RA2/AN2/VREFRA3/AN3/VREF+ RA4/T0CKI RA5/AN4 MCLR 9 PIC18F87J50 RG4/CCP5 RG3/CCP4 RG2/RX2/DT2 RG1/TX2/CK2 RG0/ECCP3 RH7/AN15 RH6/AN14 RH5/AN13 RH4/AN12 RH3/A19 RH2/A18 RH1/A17 RH0/A16 RJ7/UB RJ6/LB RJ5/C
PIC18F87J50 FS USB Plug-In Module User’s Guide NOTES: DS51678A-page 22 © 2007 Microchip Technology Inc.
PIC18F87J50 FS USB PLUG-IN MODULE USER’S GUIDE Index C L Crystal ...................................................................... 12 Customer Notification Service.................................... 4 Customer Support ...................................................... 4 LEDs ........................................................................ 14 Linear Regulator....................................................... 13 D Microchip Internet Web Site .......................................
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://support.microchip.com Web Address: www.microchip.