3 ms·
Unfortunately the FTDI stuff (really any USB<->UART converter) has latency issues in the embedded space. : \
by monocasa 11y ago
Unfortunately the FTDI stuff (really any USB<->UART converter) has latency issues in the embedded space. : \
- seiferteric 11y agoI was wondering, would it be possible to create a better converter that did usb -> rs232/parallel port that had a special driver to put timing info? At least for driving CNC motors with a parallel port, timing is critical, you could send the pulse signal along with a timing, like 1 @ t0, 0 @ t0+1us etc.. Reading would be similar. The chip on the converter would have an accurate clock and faithfully reproduce the desired signal.
- pjc50 11y agoIt could probably be done with isochronous mode (http://www.beyondlogic.org/usbnutshell/usb4.shtml#Isochronous http://www.beyondlogic.org/usbnutshell/usb4.shtml#Isochronou...), but realistically it's easiest to just delegate all the real-time stuff to a $1 microcontroller on the other end of the USB link.
- oxplot 11y agoAfter having a quick look at all the external interfaces of my laptop, the only one that has a predictable latency (that I know of) is the microphone/headphone jack. It should be fairly trivial to convert a serial digital data to an audio signal that can be reverted back on the other end. Of course, initially the jack latency needs to be measured (e.g. using a loop connection) and accounted for.