Microchip Technology PIC18F46J50 User Manual
Microchip Technology PIC18F46J50 User Manual

Microchip Technology PIC18F46J50 User Manual

Full-speed usb demonstration board

Advertisement

Quick Links

PIC18F46J50 Full-Speed USB
Demonstration Board
User's Guide
© 2009 Microchip Technology Inc.
DS51806A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC18F46J50 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology PIC18F46J50

  • Page 1 PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide © 2009 Microchip Technology Inc. DS51806A...
  • Page 2 Mode, Total Endurance, TSHARC, 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.
  • Page 3: Table Of Contents

    Preface ........................... 1 Chapter 1. Introduction 1.1 Introduction ..................... 7 1.2 Demonstration Board Package Contents ............7 1.3 PIC18F46J50 Family USB Capabilities ............7 Chapter 2. Board Hardware 2.1 Power Management ..................10 2.2 LEDs ......................11 2.3 Push Buttons ....................11 2.4 Jumpers ......................
  • Page 4 PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide NOTES: © 2009 Microchip Technology Inc. DS51806A-page iv...
  • Page 5: Preface

    • Customer Support • Document Revision History DOCUMENT LAYOUT This document describes how to use the PIC18F46J50 Full-Speed USB Demonstration Board as a development tool to emulate and debug firmware on a target board. The manual layout is as follows: •...
  • Page 6: Conventions Used In This Guide

    Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... © 2009 Microchip Technology Inc. DS51806A-page 2...
  • Page 7 Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use the PIC18F46J50 Full-Speed USB Demonstra- tion Board. The following Microchip documents are recommended as supplemental references: • “PIC18F46J50 Family Data Sheet” (DS39931) •...
  • Page 8 • Programmers – The latest information on Microchip programmers. The programmers include the MPLAB PM3 and PRO MATE II device ® programmers and the PICSTART Plus and PICkit™ 1 development programmers. © 2009 Microchip Technology Inc. DS51806A-page 4...
  • Page 9 PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide CUSTOMER SUPPORT Assistance for Microchip customers is available through: • Distributors or representatives • Local sales offices • Field Application Engineers (FAEs) • Technical support resources Customers should contact their distributor, representative or Field Application Engineer (FAE) for support.
  • Page 10 Preface NOTES: © 2009 Microchip Technology Inc. DS51806A-page 6...
  • Page 11: Introduction

    PIC18F46J50 FAMILY USB CAPABILITIES The PIC18F46J50 microcontroller is the “superset” device of the PIC18F46J50 family. The PIC18F46J50 has the largest memory and highest pin count in the family, but otherwise shares a nearly identical feature set with the other family devices. The only exclusionary exceptions are features that require pins not present on the family’s...
  • Page 12 • 3.8 Kbytes of dual access RAM for USB or general purpose use • On-chip features for single chip USB implementation, including: - USB Serial Interface Engine (SIE) - USB transceiver - USB pull-up resistors - D+ and D- driver output impedance matching resistors © 2009 Microchip Technology Inc. DS51806A-page 8...
  • Page 13: Chapter 2. Board Hardware

    DEMONSTRATION BOARD USER’S GUIDE Chapter 2. Board Hardware The PIC18F46J50 Full-Speed USB Demonstration Board can be used as a stand-alone device or — for additional functionality — plugged into either the PIC18 Explorer Board (www.microchipDIRECT.com) or PICDEM HPC Explorer Board (www.microchipDIRECT.com).
  • Page 14: Power Management

    Board Hardware FIGURE 2-1: PIC18F46J50 FULL-SPEED USB DEMONSTRATION BOARD Full schematics of the PIC18F46J50 Full-Speed USB Demonstration Board are in Appendix B. “Board Schematics”. POWER MANAGEMENT The USB interface provides +5V (nominal) power at up to 500 mA for use by USB peripheral devices.
  • Page 15: Leds

    MCHPFSUSB Framework. (See Section 3.1 “Overview”.) The push button is connected to pin RB2 on the PIC18F46J50 microcontroller which is pulled up to V through a 15-kΩ resistor. Pressing the button pulls the RB2 line to ground.
  • Page 16: Programming The Microcontroller

    2.4.2 JP3 Jumper If the PIC18F46J50 Full-Speed USB Demonstration Board is used as a stand-alone device, it obtains its power from the USB cable. This requires jumper cap, JP3, to be installed, since the jumper is in series with the power supply from the +5V V from the USB connector.
  • Page 17: Operation With The Pic18 Explorer Or Picdem™ Hpc Explorer Boards

    PICDEM HPC Explorer Board or the PIC18 Explorer Board, ensure that the board’s PIC/ICE slider switch is in the “ICE” position. If the explorer board’s switch is in the wrong position, pin P5 on the PIC18F46J50 Full-Speed USB Demonstration Board is designed to physically interfere with the switch.
  • Page 18 Board Hardware NOTES: © 2009 Microchip Technology Inc. DS51806A-page 14...
  • Page 19: Chapter 3. Preprogrammed Firmware

    , Mac OS Linux) ship with built-in HID and MSD class USB drivers. Additional drivers should not be needed to use the default demo firmware programmed on the PIC18F46J50 microcontroller. With successful enumeration in Demo mode, under the Windows operating system, additional entries should appear in the Windows Device Manager dialog box.
  • Page 20 Preprogrammed Firmware ® FIGURE 3-1: WINDOWS XP DEVICE MANAGER ENTRIES (DEMO MODE) Note: Lines indicate the new entries that appear because the device has been attached to the PC. © 2009 Microchip Technology Inc. DS51806A-page 16...
  • Page 21: Using The Composite Hid+Msd Class Demo Firmware

    3.2.1 MSD Interface The MSD (Mass Storage Device) interface displays the PIC18F46J50 Full-Speed USB Demonstration Board in My Computer as a new drive volume, similar to a USB “thumb drive” Flash memory device. Upon successful enumeration in Demo mode, the new...
  • Page 22: Using The Hid Bootloader Firmware

    “ANx/POT Voltage” bar, as shown in Figure 3-2. If the PIC18F46J50 Full-Speed USB Demonstration Board is used as a stand-alone device, it is recommended that an adjustable external power supply (between 0V and 3.3V) be attached to the RA0 pin to provide a more interesting demo experience. If the...
  • Page 23 FIGURE 3-3: USB HID BOOTLOADER APPLICATION – NO DEVICE 2. Plug the PIC18F46J50 Full-Speed USB Demonstration Board into a free USB port. 3. Place the board in the Bootloader mode by pressing and holding down the S2 push button (RB2 I/O pin). While still holding down the S2 push button, momen- tarily press and release the MCLR push button (S4) to reset the device, keeping the S2 button depressed until after the device has come out of Reset.
  • Page 24 For more details on using the HID USB bootloader, see the getting started guide for the bootloader in the MCHPFSUSB Framework documentation directory. If the default installation was used, that document is in the following directory: C:\Microchip Solutions\Microchip\Usb\Documentation\Getting Started © 2009 Microchip Technology Inc. DS51806A-page 20...
  • Page 25: Appendix A. Troubleshooting Tips

    The factory default firmware can be restored onto the microcontroller any time by using the ICSP programming header and programming the microcontroller with the file, PIC18F46J50 FS USB Demo Board Factory Hex 23 Jan 2009.hex. To do this: 1. Launch the MPLAB IDE application and select the ICSP programmer and the correct device (PIC18F46J50).
  • Page 26 .NET package has not been installed, do so. The .NET Framework redistributable package is available in the MCHPFSUSB Framework on the CD-ROM disc that comes with the PIC18F46J50 Full-Speed USB Demonstration Board. Alternately, the .NET package can be downloaded from the...
  • Page 27: Appendix B. Board Schematics

    DEMONSTRATION BOARD USER’S GUIDE Appendix B. Board Schematics Figure B-1 through Figure B-3 show the schematics for the PIC18F46J50 Full-Speed USB Demonstration Board. When designing the PIC18F46J50 Full-Speed USB Demonstration Board, special care was taken to make the board USB 2.0, full-speed compliant. It is suggested that those designing new USB applications review section 7.2 of the official USB 2.0 specifica-...
  • Page 28 Certain pins (RA1, RA5, RB1, RD7 and RB5) perform “double duty”, being connected to more than one pin on the female headers (ICE module). This is done so that the PIC18F46J50 family device can interface with more of the pre-existing PICtail™ Daughter Boards and other hardware features on the PIC18 Explorer Board and the PICDEM™...
  • Page 29 PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide FIGURE B-2: PIC18F46J50 FULL-SPEED USB DEMONSTRATION BOARD – (1,2) MICROPROCESSOR 0.1 F 12 MHz 22 pF 22 pF PIC18F46J50 0.1 F 0.1 F 0.1 F 10 F Note 1: Components R10 and D3 are not required in production. They are included here in case the user accidentally tries to ®...
  • Page 30 Note 1: Components, R3 and J1, are used to “program” the adjustable linear regulator output voltage to 3.3V when the PIC18F46J50 Full-Speed USB Demonstration Board is plugged into either the PIC18 Explorer Board or the PICDEM™ HPC Explorer Board. The ICE module consists of the female header pins on the bottom of the board. Most pins on the microcontroller are directly routed to their respective signal names on the ICE module.
  • Page 31 PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide NOTES: © 2009 Microchip Technology Inc. DS51806A-page 27...
  • Page 32: Worldwide Sales And Service

    Thailand - Bangkok Santa Clara, CA Tel: 86-29-8833-7252 Tel: 66-2-694-1351 Tel: 408-961-6444 Fax: 86-29-8833-7256 Fax: 66-2-694-1350 Fax: 408-961-6445 China - Zhuhai Toronto Tel: 86-756-3210040 Mississauga, Ontario, Fax: 86-756-3210049 Canada Tel: 905-673-0699 Fax: 905-673-6509 02/04/09 © 2009 Microchip Technology Inc. DS51806A-page 28...
  • Page 33 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip MA180024...

Table of Contents