background image

©

 2009 Microchip Technology Inc.

 

DS51806A-page 7

PIC18F46J50 FULL-SPEED USB

DEMONSTRATION BOARD

USER’S GUIDE

Chapter 1.  Introduction

1.1

INTRODUCTION

The PIC18F46J50 Full-Speed USB Demonstration Board is designed as an 
easy-to-use evaluation platform for Microchip’s full-speed, USB PIC18F46J50 family of 
microcontrollers.

The board can be operated as a stand-alone device. Alternately, for additional 
demonstration functionality, the board can be used in conjunction with the PIC18 
Explorer Board (

www.microchipDIRECT.com

) or PICDEM™ HPC Explorer Board 

(

www.microchipDIRECT.com

).

All members of the PIC18F46J50 family of microcontrollers fully support USB 2.0 
full-speed and low-speed serial communications at signaling speeds of 12 Mbps or 
1.5 Mbps.

The demonstration board package provides all of the hardware and software needed 
to develop USB compliant communication solutions.

This chapter discusses:

• Demonstration Board Package Contents

• PIC18F46J50 Family USB Capabilities

1.2

DEMONSTRATION BOARD PACKAGE CONTENTS

The demonstration board package contains:

• The PIC18F46J50 Full-Speed USB Demonstration Board, preprogrammed with 

composite USB Human Interface Device (HID) and Mass Storage Device (MSD) 
class demonstration firmware

• A standard USB A to mini-B cable for power and communication

• A six-pin, in-line ICSP™ to RJ-11 programming adapter board

• The PICDEM™ Starter Kit CD-ROM, containing USB firmware projects, PC appli-

cation source code, USB drivers and USB specific documentation, such as this 
user’s guide

1.3

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 
28-pin devices.

Summary of Contents for PIC18F46J50

Page 1: ... 2009 Microchip Technology Inc DS51806A PIC18F46J50 Full Speed USB Demonstration Board User s Guide ...

Page 2: ...crochip Technology Incorporated in the U S A All other trademarks mentioned herein are property of their respective companies 2009 Microchip Technology Incorporated Printed in the U S A All Rights Reserved Printed on recycled paper Note the following details of the code protection feature on Microchip devices Microchip products meet the specification contained in their particular Microchip Data Sh...

Page 3: ...lities 7 Chapter 2 Board Hardware 2 1 Power Management 10 2 2 LEDs 11 2 3 Push Buttons 11 2 4 Jumpers 11 2 5 Programming the Microcontroller 12 2 6 Operation with the PIC18 Explorer or PICDEM HPC Explorer Boards 13 Chapter 3 Preprogrammed Firmware 3 1 Overview 15 3 2 Using the Composite HID MSD Class Demo Firmware 17 3 3 Using the HID Bootloader Firmware 18 Appendix A Troubleshooting Tips 21 Appen...

Page 4: ...DS51806A page iv 2009 Microchip Technology Inc PIC18F46J50 Full Speed USB Demonstration Board User s Guide NOTES ...

Page 5: ...ailable by connecting the board to a PIC18 Explorer Board or PICDEM HPC Explorer Board Chapter 3 Preprogrammed Firmware The board s preloaded demonstra tions and other demonstrations and projects available in the MCHPFSUSB Framework Appendix A Troubleshooting Tips Solutions for common issues Appendix B Board Schematics Schematic diagrams NOTICE TO CUSTOMERS All documentation becomes dated and this...

Page 6: ...alog box button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets A key on the keyboard Press Enter F1 Courier New font Plain Courier New Sample source code define START Filenames autoexec bat File paths c mcc18 h Keywords _asm _endasm static Command line options Opa Opa B...

Page 7: ...MCHPFSUSB Framework on the CD ROM disc that comes with the board The latest version of this package and the other resources can be downloaded at the Microchip USB design center http www microchip com usb Schematics and other support materials for the PIC18 Explorer Demonstration Board can be obtained at http www microchip com pic18explorer Schematics and other support materials for the HPC Explore...

Page 8: ...evisions or errata related to a specified product family or development tool 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 The tools include the MPLAB C18 and MPLAB C30...

Page 9: ...Local sales offices Field Application Engineers FAEs Technical support resources Customers should contact their distributor representative or Field Application Engineer FAE for support Local sales offices are also available to help customers A list of sales and service offices is on the back of this document Technical support is available through the web site at http support microchip com DOCUMENT...

Page 10: ...Preface 2009 Microchip Technology Inc DS51806A page 6 NOTES ...

Page 11: ...liant communication solutions This chapter discusses Demonstration Board Package Contents PIC18F46J50 Family USB Capabilities 1 2 DEMONSTRATION BOARD PACKAGE CONTENTS The demonstration board package contains The PIC18F46J50 Full Speed USB Demonstration Board preprogrammed with composite USB Human Interface Device HID and Mass Storage Device MSD class demonstration firmware A standard USB A to mini...

Page 12: ...ed 12 Mbps and low speed 1 5 Mbps operation Support of control interrupt bulk and isochronous transfers Support of up to 32 endpoints 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 ...

Page 13: ...ts include the following with the element s number indicating its location on the board in Figure 2 1 1 Two miniature SMT red LEDs Connected to the RE0 and RE1 I O pins 2 5V to 3 3V LDO low quiescent current regulator TC1108 3 3VDB Enables device to obtain power from USB port 3 12 MHz SMT crystal Can be used with the internal PLL to run the microcontroller and USB module at frequencies of up to 48...

Page 14: ...08 3 3VDB has been included on the board This enables the board to operate fully from USB bus power All USB compliant bus powered devices should implement a low power USB Suspend mode This is because the USB host may at its own discretion halt all USB traffic including Start of Frame packets to a USB peripheral device for more than 3 ms When a peripheral device detects this condition it should dro...

Page 15: ...F46J50 microcontroller which is pulled up to VDD through a 15 kΩ resistor Pressing the button pulls the RB2 line to ground 2 4 JUMPERS 2 4 1 JP2 Jumper JP2 is a three pin header with the labels I R and U I Abbreviation referring to the ICE female header pin for the RC2 signal R Abbreviation referring to microcontroller pin RC2 U Abbreviation for the USB_ATTACH signal see the schematics in Appendix...

Page 16: ...on measured at the JP3 header will include the quiescent cur rent of the linear regulator Q1 temperature sensor U1 and the microcontroller as well as any leakage due to other circuitry on the board 2 5 PROGRAMMING THE MICROCONTROLLER The PIC18F46J50 Full Speed USB Demonstration Board is too small to have the full sized RJ 11 jack normally used to connect to Microchip In Circuit Serial Program ming...

Page 17: ...ging jack A PICtail daughter board connector Enables easy probing of I O pins or connection to other expansion boards such as the SD MMC PICtail daughter board www microchipDIRECT com Before connecting the PIC18F46J50 Full Speed USB Demonstration Board to the 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 b...

Page 18: ...Board Hardware 2009 Microchip Technology Inc DS51806A page 14 NOTES ...

Page 19: ...the Bootloader mode hold down the S2 push button and momentarily press and release the MCLR push button The microcontroller firmware checks the RB2 I O pin state once after coming out of Reset For more information on the USB bootloader see Section 3 3 Using the HID Bootloader Firmware The microcontroller firmware will enter the demo mode if the RB2 push button is not pressed during power up or Res...

Page 20: ...mmed Firmware 2009 Microchip Technology Inc DS51806A page 16 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 ...

Page 21: ... is meant to be used with the PC application project HID PnP Demo Composite HID MSD Demo only PID 0x0054 exe provided in the MCHPFSUSB Framework The MCHPFSUSB Framework can be installed from the CD ROM disc that comes with the board The latest version of the package is also available from the Microchip USB Design Center www microchip com usb If the MCHPFSUSB Framework Version 2 4 is installed in t...

Page 22: ...ween 0V and 3 3V be attached to the RA0 pin to provide a more interesting demo experience If the board is used in conjunction with the PIC18 Explorer Board or the PICDEM HPC Explorer Board the analog potentiometer on those boards tied to RA0 can be adjusted to alter the HID demo s voltage display bar 3 3 USING THE HID BOOTLOADER FIRMWARE The PIC18F46J50 Full Speed USB Demonstration Board is prepro...

Page 23: ...after the device has come out of Reset The bootloader firmware performs a quick check of the RB2 I O pin after coming out of Reset to determine if the device should enter Bootloader or normal Demo mode As a result The device re enumerates as a generic HID class device instead of a composite HID MSD device The USB HID Bootloader PC application automatically detects the PIC18F46J50 Full Speed USB De...

Page 24: ...e created using the appropriately modified linker script so the demos should work directly with the bootloader Programming a new firmware image using the bootloader does not erase or overwrite the bootloader firmware inside the microcontroller To execute newly programmed firm ware with the bootloader application reset the microcontroller by pressing the MCLR push button For more details on using t...

Page 25: ...tp support microsoft com kb 297694 To resolve this issue do one of the following Obtain the hotfix available from Microsoft Manually reassign the conflicting drive volume such as a mapped network drive with a drive letter that is later in the alphabet such as Z Problem 2 The USB device does not enumerate or appear in the Device Manager Resolution Verify the following The microcontroller is powered...

Page 26: ...k 2 0 or higher redistributable package installed If the 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 Microsoft web site Go to the Microsoft Download Center and use the key words NE...

Page 27: ...monstration 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 tions That section includes important information related to power management such as board inrush current specifications necessary to ...

Page 28: ...ed although they may not be necessary in all applications The microcontroller has some built in ESD protection but it may not be sufficient for all applications depending on board layout and other system level considerations Having provisions solder pads on the PCB for these extra components adds flexibility for later in the development process ESD protection components will likely provide the bes...

Page 29: ...onents R10 and D3 are not required in production They are included here in case the user accidentally tries to communicate with the device while a high voltage ICSP entry device is selected in MPLAB IDE The PIC18F46J50 family uses low voltage ICSP entry applying VDD levels to MCLR High voltage ICSP entry devices pulse the MCLR pin at around 12V when entering the ICSP mode 2 Components listed as NL...

Page 30: ...o 3 3V when the PIC18F46J50 Full Speed USB Demonstration Board is plugged into either the PIC18 Explorer Board or the PICDEM HPC Explorer Board 2 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 Exceptions to this are the signals coming from the following microcontrol...

Page 31: ...PIC18F46J50 Full Speed USB Demonstration Board User s Guide DS51806A page 27 2009 Microchip Technology Inc NOTES ...

Page 32: ...ang Tel 86 24 2334 2829 Fax 86 24 2334 2393 China Shenzhen Tel 86 755 8203 2660 Fax 86 755 8203 1760 China Wuhan Tel 86 27 5980 5300 Fax 86 27 5980 5118 China Xiamen Tel 86 592 2388138 Fax 86 592 2388130 China Xian Tel 86 29 8833 7252 Fax 86 29 8833 7256 China Zhuhai Tel 86 756 3210040 Fax 86 756 3210049 ASIA PACIFIC India Bangalore Tel 91 80 3090 4444 Fax 91 80 3090 4080 India New Delhi Tel 91 11...

Page 33: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip MA180024 ...

Reviews: