USBLibrary

Download USB Library V1.4.3
SFUSBv143.zip

Updated Code 15-05-2017

Download USB Library V1.4.4
forum post describing changes

Download HIDbootloader V1.3 with support for USB Library V1.4.4
HIDBootloader18F_v13.zip
forum post describing changes

Main Features

  • NEW - support for K50 and J94 families
  • NEW - support for SF protected regions, adding the ability to use all available ram without resorting to special tricks. No more 'absolute' and EXTENDED_RAM work arounds required.
  • Supports all current 45 18F USB devices, including 18F2550, 18F4550, 18F2553, 18F4553, 18F2455, 18F4455, 18F2458, 18F4458, 18F2450, 18F4450,18F14K50, 18F13K50, 18F24K50, 18F25K50, 18F45K50, 18F24J50, 18F25J50, 18F26J50, 18F44J50, 18F45J50, 18F46J50, 18F65J50, 18F66J50, 18F67J50, 18F85J50, 18F86J50, 18F87J50, 18F26J53, 18F27J53, 18F46J53, 18F47J53, 18F66J55, 18F86J55, 18F65J94, 18F66J94, 18F67J94, 18F85J94, 18F86J94, 18F87J94, 18F95J94, 18F96J94, 18F97J94, 18F66J99, 18F86J99, 18F96J99
  • SF protected region support for improved ram memory usage
  • Ability to switch between interrupt and polled mode without source code changes
  • Ability to use custom HID ReadReport() and WriteReport functions. Custom reports now use their own file.
  • Device-specific code isolated to three files: usbmem.bas, usbsfr.bas, and usbclock.bas
  • Supports easier customization without having to edit base files
  • Various bug fixes to USBSystem.bas, and bug fixes to v1.4.2 USB library
  • A Swordfish port of the Microchip HID bootloader with support for all chips (source code provided)
  • An updated version of the Microchip HidBootLoader.exe application program with the ability to allow/prevent changes to the EEPROM and UserID areas, as well as the Config area. App also allows changing VID and PID without recompiling source, and can be set in a custom INI file (source included, VS C++ 2010 Express). A 64-bit version is included.

The code has been tested with 18F2553, 18F14K50, 18F47J53, 18F87J94, and 18F45K50

Download USB Library V1.4.2 (7z format)