Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«159 »
  • Post
  • Reply
No Gravitas
Jun 12, 2013

We thought he was just here to sell us crap, but then he blushed, and we knew everything would work out.

JawnV6 posted:

Yeah, true. Still, you're essentially counting off 100ms chunks, so even with a poll interval of 16ms you're not too far off? 100ms seems like eons, how much jitter can you tolerate there?

C# has spoiled me, I have nice DataReceived events that act enough like interrupts that I wasn't thinking about the USB device not having that capability.

100ms is eons.

USB does have an interrupt mode for quick responses, seems pretty speedy. Again, a microcontroller can do this for you, although not as neatly as going via USB-UART. You can measure the latencies you get and do a poll after 100ms - latency. This should get you there, repeat the poll if you are too early. Maybe poll such that you should be 2ms late.

Could also plug your SYNC into the microphone jack and try to do stuff with that, I guess. Then there is PS2, if you have the luxury...

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply
«159 »