Hopefully this Topic is still alive as I am really keen to do some experimenting with USB.

I have looked at all the posts and haven't found any refering to my problem.

I am using the 18F4550 pic, Picbasic Pro 2.50 and MicroCode Studio Plus 3.0.0.5

When I compile it stops on Line 81

Line 81: UCFG var byte EXT ' include UCFG register... Yeah Melabs didn't (
Line 82: ucfg = %00010100 ' enable internal USB pull-up, Full speed USB

With the following Error Message:

ERROR Line 81: Redefinition of VAR. (USBDemo.pbp)

I notice that when I paste the code from mister-e's zip file into MicroCode Studio it changes the case of line 82:

Line 81: UCFG var byte EXT ' include UCFG register... Yeah Melabs didn't (
Line 82: UCFG = %00010100 ' enable internal USB pull-up, Full speed USB

the ucfg is now in Capitals, I don't know if this has anything to do with it?