"master and 2 slaves", mmm kinky!
Well, I can answer part of it.
Just change ...
<pre>T1CON = $11 ; Prescaler = 2, TMR1ON</pre> @ 48mhz, that will give an interrupt every 10.9 ms. No need to reload the timers.
According to the PBP manual, USBservice should be called every 10ms, but it doesn't have to be that precise.
However,
I have no idea what will happen when you interrupt another USB routine and try to do a USBservice.
My guess is that it won't be pretty.
More than likely, you will need to INT_DISABLE the TMR1_INT, before doing anything else with the USB, then INT_ENABLE it when it's done.
<br>




Bookmarks