Quote Originally Posted by Rob View Post
Hi,
this can vary. I will reply tomorrow with a good example of how to do this unless somebody else replies first but for now look up posts from Darrell Taylor regarding the USB stuff as a hint.

Try:

Code:
    UCON.3 = 0                  ' UCON register bit 3 (USBEN) enables/disables
                                ' the USB - see page 164 18F4550 datasheeet
Thank you Rob !!!

UCON.3 ' USB Control Register, USB Module Enable Bit,0=Detached, datasheet 17.2.1
That did do the trick, nice and smooth, without any problems, without any other lines of code... very nice indeed

Quote Originally Posted by mister_e
Totally untested thought...
what happen if you stop calling USBSERVICE?
Nothing, no dong-ding, nothing you could measure. Or maybe you can, bat because I did not hear the dong-ding I skipped rest of the "testing"...

Quote Originally Posted by mister_e
thereafter, what may happen if you use the method shown in the famous known "POST 148"
I will take a closer look at it in the future. At the moment I'm quite happy with that one line solution...

Thank you again Rob and Mister_e thank you indeed