Hi,
My polling interval looks to be 1msec if I understand the polling interval
in my DESCUSBFixture.asm file
from that:
Endpoint1In
retlw (EndPoint1Out-Endpoint1In)/2 ; length of descriptor
retlw DSC_EP
retlw 0x81 ; EP1, In
retlw 0x03 ; Interrupt
retlw 0x40 ; This should be the size of the endpoint buffer
retlw 0x00
retlw 0x01 ; Polling interval
EndPoint1Out
retlw (EndConfig1-EndPoint1Out)/2 ; Length of this Endpoint Descriptor
retlw DSC_EP ; bDescriptorType = 5 for Endpoint Descriptor
retlw 0x01 ; Endpoint number & direction
retlw 0x03 ; Transfer type supported by this Endpoint
retlw 0x40 ; This should be the size of the endpoint buffer
retlw 0x00
retlw 0x01 ; Polling interval
I've turned off my Interrupts for now and use USBService often.
As for Pause, I am using "pauseus 1" for some SPI control of some chips on their Chip Enable lines. If it were much longer, I'd have it broken up with some USBSERVICE in there.
I can send commands that don't expect response from the PIC very rapidly but it's just the Endpoint data that matches the most recent sequence byte that takes long in getting back.
I've also tried the USB demo on: www.PICcoder.co.uk
and using c# stopwatch in System.diagnostics shows about 45 msecs delay.
http://www.piccoder.co.uk/content/view/42/26/
I usually plug the device in near where my mouse is and I don't think I using the bandwidth on that Controller too heavily.
I could try putting USBService into the Timer interrupt I was using for timing LEDs.
Bookmarks