Dear All,
I've done some experimenting and found that USBSERVICE must be called at least every 2msec or lower. (10msec is way too long!)
The best way to do this is as Rob suggested, using DT's (Timer0 or1) interrupts.
The above example Rob posted is fine (every 100usecs) but may cause additional overhead for your program. Note, he's using an OSC speed of 48Mhz (PLL) to calculate TMR0H:TMR0L values.
Cheers
Squib
Bookmarks