Quote Originally Posted by kiwipiper View Post
When I compile it gives the following errors.

Error[118] c:\progr~1\mecani~1\mcs\usbdemo.asm 87 : Overwriting previous address contents (0000)
...
What to do if i get "overwriting previous address content" error message?
http://www.picbasic.co.uk/forum/showthread.php?p=6775

Also out of interest, I am using a 4Mhz Resonator but in the code it is: DEFINE OSC 48

What is that about?
The 18F/USB PIC's have an amazing oscillator/PLL structure.

With the proper CONFIG settings, You can use any crystal that's a multiple of 4mhz (4,8,12,16,20) and still have a system clock of 48mhz.

If the timing doesn't work well with your program, you can also have 48mhz going to the USB module, and 4/8/12/16/20/24/32 mhz going to the system clock.

It all depends on the CONFIG's.
<br>