18F87J50USB

SwordfishUser.18F87J50USB History

Hide minor edits - Show changes to markup

Changed lines 3-4 from:

The example program shown here is a modification of the basic HID example supplied with the Compiler Help File. It will interact with the HID example program available from here & was developed for the Microchip PIC18F87J50 Full Speed USB Plug-In Module (Part Number: MA180021). The use of the new Mircochip USB HID bootloader is a highly recommended (updated 17/11/08 to correct Bootloader issue).

to:

The example program shown here is a modification of the basic HID example supplied with the Compiler Help File. It will interact with the HID example program available from here & was developed for the Microchip PIC18F87J50 Full Speed USB Plug-In Module (Part Number: MA180021). The use of the new Mircochip USB HID bootloader is a highly recommended (updated 17/11/08 to correct Bootloader Descriptor Strings issue).

Changed line 140 from:

USBSFR.bas

to:

ClearRegisters.bas

Changed line 146 from:
  • Notice : *
to:
  • Notice : *
Changed lines 139-140 from:

USBHID.bas

to:

USBSFR.bas

Changed lines 144-146 from:
  • Name : USBHID.bas *
  • Author : David John Barker *
  • Notice : Copyright (c) 2007 Mecanique *
to:
  • Name : ClearRegisters.BAS *
  • Author : Nathan Herbert *
  • Notice : *
Changed lines 148-154 from:
  • Date : 15/09/2008 *
  • Version : 1.1a Branch by Nathan(RangerBob) for 18F87J50 Support *
  • : 1.1 ISR now uses USB interrupts *
  • : Renamed 'Connected' to 'Attached' *
  • : 1.0 Release *
  • Notes : This HID module provides a simple way for you to transfer *
  • : blocks of data to and from your PC using the USB HID class. *
to:
  • Date : 17/11/2008 *
  • Version : 1.0 *
  • Notes : Use with Microchip HID bootloader to ensure correct operation *
  • : of main program *
Added lines 154-209:

Module ClearRegisters

  1. if _device = 18F87J50
    TBLPTR = %00000000 TABLAT = %00000000 INTCON = %00000000 INTCON2 = %11111111 INTCON3 = %11000000 TMR0H = %00000000 T0CON = %11111111 CM1CON = %00011111 CM2CON = %00011111 ODCON1 = %00000000 ODCON2 = %00000000 T1CON = %00000000 ODCON3 = %00000000 TMR2 = %00000000 T2CON = %00000000 IPR3 = %11111111 PIR3 = %00000000 PIE3 = %00000000 IPR2 = %11111111 PIR2 = %00000000 PIE2 = %00000000 IPR1 = %11111111 PIR1 = %00000000 PIE1 = %00000000 UCON = %00000000 UEIR = %00000000 UIR = %00000000 UCFG = %00000000 UEIE = %00000000 UIE = %00000000
  2. endif

=]

USBHID.bas

=code [= {

  • Name : USBHID.bas *
  • Author : David John Barker *
  • Notice : Copyright (c) 2007 Mecanique *
  • : All Rights Reserved *
  • Date : 15/09/2008 *
  • Version : 1.1a Branch by Nathan(RangerBob) for 18F87J50 Support *
  • : 1.1 ISR now uses USB interrupts *
  • : Renamed 'Connected' to 'Attached' *
  • : 1.0 Release *
  • Notes : This HID module provides a simple way for you to transfer *
  • : blocks of data to and from your PC using the USB HID class. *

}

Changed lines 3-4 from:

The example program shown here is a modification of the basic HID example supplied with the Compiler Help File. It will interact with the HID example program available from here & was developed for the Microchip PIC18F87J50 Full Speed USB Plug-In Module (Part Number: MA180021). The use of the new Mircochip USB HID bootloader is a highly recommended.

to:

The example program shown here is a modification of the basic HID example supplied with the Compiler Help File. It will interact with the HID example program available from here & was developed for the Microchip PIC18F87J50 Full Speed USB Plug-In Module (Part Number: MA180021). The use of the new Mircochip USB HID bootloader is a highly recommended (updated 17/11/08 to correct Bootloader issue).

Changed line 29 from:
  • Notice : Copyright (c) 2008 Nathan (Rangerbob) *
to:
  • Notice : Copyright (c) 2008 Nathan (Rangerbob) *
Changed lines 31-32 from:
  • Date : 15/09/2008 *
  • Version : 1.0 *
to:
  • Date : 17/11/2008 *
  • Version : 1.1 *
Changed line 36 from:
  • : *
to:
  • : 1.1 - Fix for bootloader Descriptor strings issue *
Added lines 68-70:

// Fix for Bootloader Descriptor Strings Issue - Ensure this is first include Include "ClearRegisters.bas"