* Compiler: PICC-18 Compiler (Microchip PIC18) V8.35Pl3

* Company: Hi-Tech Software (www.htsoft.com)

// Based on code derived from the microchip original,

// modified by and posted to the Hi-Tech Forum by:

// Fordp from Kent, England.

// Shane Tolmie of www.microchipC.com.

// Juergen Eiseman of Germany , post April 3, 2006 (03/04/06).

// William Grimm Cleaned up and updated comments. September 24, 2008.

Hi All,

I have put together what I hope to be the final word on a

Hi-Tech solution to Microchip Full Speed USB.

I certainly did not write it myself, but instead stood on the

shoulders of other top notch micro-controller programmers.

Microchip wrote the first draft of this code in their compiler.

Fordp of Kent England got it to compile on Hi-Tech, but it didn't

work. Shane Tolmie of www.microchipc.com got the CDC to work, which

gave us a Hi-Tech/Microchip RS-232 to USB converter.

Juergen Eiseman in Germany got the HID and the generic applications

working.

I have put them together in a neat package, cleaned up the comments

so the code now says that it compiles under Hi-Tech. I have removed the

trash files that the Microchip compiler needs, but the Hi-Tech does

not. Unzip the attachment to the root directory on your computer.

It may also work in a subdirectory, but have not tried that.

This has the MPLAB projects for use under MPLAB, and Shane's CDC and

Juergen's HID and generic applications.

As I went through the process I was shocked at the quality difference

between the Hi-Tech and the Microchip C18 compiler. The Microchip

compiler needs odd files to orient the interrupts correctly, which do

not look at all like good C. The further the process went from the Microchip

and toward the Hi-Tech the C code improved in readability, not, I believe, because

Ford, Shane and Juergen are better C coders than the Microchip guy, but because

they were using a much better compiler.

I could never get anything to work on the PIC18F2550 using the Microchip

C18. Anything that came from the computer was received on the other end

as the same byte all the time. I strongly suspect the Microchip C18

p18F2550.dll does not work. Its version is 3.21, linker is version 4.21.

I am sure they will fix it.

By the way I have the CDC application working on an 18F2550 using the

Hi-Tech for a client, no problem.

For a version that uses the PIC18F87J50 See John Payson's

post on the Hi-Tech forum; April 2, 2008 (02/04/08),

"Ported Mouse Code to 18F87J50; Flattened Directories."

I haven't tried this out, since I don't have the hardware.

Best Regards,

Bill Grimm

Avorex Design

www.avorex.com