USB "Frames" occur at 1ms intervals.
When you send 50, it will have to wait until the next Frame to send 60.
During that time any USBOUT statements will fail, and jump to the specified Label.
Since you only have 1 Label, it always goes back to sending 50. 60 never gets sent.
Using a label for each transmission will help.
Code:
' Main Program Loop
Loop1:
USBService ' Must service USB regularly
Buffer(0)=50
USBOut 3, Buffer, Cnt, loop1
Loop2:
USBService
Buffer(0)=60
USBOut 3, Buffer, Cnt, loop2
goto loop1
Bookmarks