I believe that the USBSERVICE should be done every 10 milli seconds or less, is this correct? Is there a better way to do what I'm trying to accomplish?
its not so much as to service it every 10ms or less but to respond to polls before the host times you out. i use the isr option for usb service
Code:
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler USB_INT, _DoUSBSERVICE, ASM, yes
endm
INT_CREATE
INT_ENABLE USB_INT
ENDASM
Code:
DoUSBSERVICE:
USBSERVICE ; Run the SERVICE routines
@ INT_RETURN
main issue with that is that bitbanged comms like serin/out can't tolorate the interrupts
serial comms needs to be via the eusart
Bookmarks