I have a sensor which is usually ran/read via the command line terminal, but interestingly enough the sensor has multiple microUSB jacks for different communication protocols. I am making a PCB design, and I am wondering how to handle the connections for the D- and D+ ports.
I am using an ATMEGA 2560 on arduino IDE v1.8.7 (OS issues dictate that I can't upgrade it), the sensor I am using has a USB port for UART and another for SPI. I am familiar with programming both of those protocols, but I am unsure how to relate those to the microUSB jack on the board (i.e. the wiring from the USB connection to the MEGA). My understanding is that per the Arduino page here, the ADC conversion can only be run around 10,000 times/second. If the technique involved will be bit-banging, receiving 10,000 bits/s will not be nearly fast enough for SPI, but may be fast enough for UART at 9600 baud rate. I read on this wikibooks page that USB communicates on the scale of 1.5MB/s minimum, and I wasn't sure if that would create issues with my design.
This is the first time that I have messed with a USB jack on a PCB, so any tips, tricks, or common pitfalls to avoid would be most appreciated.