18F87J50USB
SwordfishUser.18F87J50USB History
Hide minor edits - Show changes to markup
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).
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).
USBSFR.bas
ClearRegisters.bas
- Notice : *
- Notice : *
USBHID.bas
USBSFR.bas
- Name : USBHID.bas *
- Author : David John Barker *
- Notice : Copyright (c) 2007 Mecanique *
- Name : ClearRegisters.BAS *
- Author : Nathan Herbert *
- Notice : *
- 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. *
- Date : 17/11/2008 *
- Version : 1.0 *
- Notes : Use with Microchip HID bootloader to ensure correct operation *
- : of main program *
Module ClearRegisters
- 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
- 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. *
}
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.
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).
- Notice : Copyright (c) 2008 Nathan (Rangerbob) *
- Notice : Copyright (c) 2008 Nathan (Rangerbob) *
- Date : 15/09/2008 *
- Version : 1.0 *
- Date : 17/11/2008 *
- Version : 1.1 *
- : *
- : 1.1 - Fix for bootloader Descriptor strings issue *
// Fix for Bootloader Descriptor Strings Issue - Ensure this is first include Include "ClearRegisters.bas"