Sounds good but I need this to be universal meaning must work with Mac and Linux as well as PC. Standalone app with custom driver would not work in this case.
Sounds good but I need this to be universal meaning must work with Mac and Linux as well as PC. Standalone app with custom driver would not work in this case.
Depends on what you write it in...Standalone app with custom driver would not work in this case.
Dave
Always wear safety glasses while programming.
Would it be difficult to do the USB Service with an interrupt routine instead of in the main loop?
ISR is the way to go. Here is a project using DT's Instants.
http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING
Darrel gave us another USB service routine also, but it seems to work best as a stand alone ISR. That is why I like using the Instant approach.
But you can take a look at the other here.
http://www.picbasic.co.uk/forum/show...8306#post78306
Dave
Always wear safety glasses while programming.
Thanks again for the help.
I put the code you sugested in but I keep getting an error saying Syntax Error for
UIE = $7F 'ENABLE USB INTERRUPTS
I am using Picbasic Pro 2.47
Can you give a little more info.. Are you trying the instant solution or the other?
Go ahead and post your code and config setup.
Dave
Always wear safety glasses while programming.
Ok I updated to PBP 2.60 (just found the CD) and it compiles ok now but if I enable the innterrupt routines it won't detect the device.
Bookmarks