thought i'd post my setup:
MPASM 5.20
PBP 2.50b
MCS 3.0.0.5
What!
You're trying to use a HID program with CDC?
Well, you can start by using endpoint 3.
Wouldn't be surprised if there are more problems though.
<br>
DT
I wasnt aware that the interrupt system was specifically for HID devices... anyways i'm back to trying to make my code work... it's really annoying.. the device works as expected, until i try and aquire a/d and send a serout2 in my main loop.. then it's device not recognized.. i think my brain might explode soon.
ahh i see what ur saying darrel.. i' used your code which points to endpoint 1.. i'm going to try it changing it to 3
k i think your hint has moved the situation forward.. i'm now getting some output...thanks ... I know I know im a big noob
Are the A/D values all over the place? Or is it the received data at the VB program?
The way it was shown, you'll be sending and receiving a bunch of extra data by transferring the entire buffer, instead of just the data that needs to be used.
HID is packet based, CDC is more like standard serial.
You'll need to consider how many bytes were received, and look for "header" bytes or some other mechanism to sync up the data.
Everything won't just be at byte[x] in the buffer anymore.
<br>
DT
Bookmarks