
Originally Posted by
davids
is theare any other way to make it working because i cannot to it working with this way....!!!!
There are lots of ways to make it work, but they all involve servicing the usb at a regular interval. Using Darrel's interrupts would do this in the background, and still allow you to use your Pause 1000. http://www.picbasic.co.uk/forum/show...0682#post30682 What keeps you from being able to use this method?
A not so good way to do it would be to create a loop.
Code:
For i = 1 to 250 'Loop 250 times X 4ms = 1000ms
Pause 4 'Pause 4 ms
USBService 'Service that USB connection
Next i
A better way to do it (if you still could not use usb service interrupt) would be to use a timer and control a "pause" with that.
Disclaimer: I have only once played with USB demo, so if anything I say is bogus, I am sure the experienced will correct this.
http://www.scalerobotics.com
Bookmarks