 
 ; USB HID Boot-loader default config settings
 config PLLDIV   = 5         // (20 MHz crystal on PICDEM FS USB board)
 config CPUDIV   = OSC1_PLL2	
 config USBDIV   = 2         // Clock source from 96MHz PLL/2
 config FOSC     = HSPLL_HS
 config FCMEN    = OFF
 config IESO     = OFF
 config PWRT     = OFF
 config BOR      = ON
 config BORV     = 3
 config VREGEN   = ON		//USB Voltage Regulator
 config WDT      = OFF
 config WDTPS    = 32768
 config MCLRE    = ON
 config LPT1OSC  = OFF
 config PBADEN   = OFF		//NOTE: modifying this value here won't have an effect
;config CCP2MX   = ON
 config STVREN   = ON
 config LVP      = OFF
;config ICPRT    = OFF       // Dedicated In-Circuit Debug/Programming
 config XINST    = OFF       // Extended Instruction Set
 config CP0      = OFF
 config CP1      = OFF
;config CP2      = OFF
;config CP3      = OFF
 config CPB      = OFF
;config CPD      = OFF
 config WRT0     = OFF
 config WRT1     = OFF
;config WRT2     = OFF
;config WRT3     = OFF
 config WRTB     = OFF       // Boot Block Write Protection
 config WRTC     = OFF
;config WRTD     = OFF
 config EBTR0    = OFF
 config EBTR1    = OFF
;config EBTR2    = OFF
;config EBTR3    = OFF
 config EBTRB    = OFF

; Notes:
; Set PortB.4 = 1 to run user code.
; Set PortB.4 = 0, to enter boot-load mode
; Reset via /MCLR after switching modes - or Reset Device
; with the loader PC software.

; Include the following in your PBP code for compatability with the USB loader;
  DEFINE OSC 48          
  DEFINE  RESET_ORG 1000h  ' Reset vector when using Microchip USB boot-loader

; Interrupts
  If you use interrupts, include the following;
  DEFINE INTHAND HighPriISR
  DEFINE INTLHAND LowPriISR
 
  PBP will automatically locate your high-pri int handler at 0x1008
  and low-pri int handler at 0x1018, which is where the loader has
  remapped them to.