USB-HS-Bridge is a debug tool made by MuseLab based on WCH's CH347 With USB 2.0 High Speed, it support USB-to-I2C/SPI/UART/JTAG/GPIO, can be used to operate various devices include MCU/DSP/FPGA/CPLD/EEPROM/SPI-Flash/LCD...
the work mode of chip is configured by DTR1 and RTS1
mode | DTR1 | RTS1 | detail |
---|---|---|---|
0 | 1 | 1 | UART0 + UART1 |
1 | 1 | 0 | UART1 + I2C + SPI (VCP Mode) |
2 | 0 | 1 | UART1 + I2C + SPI (HID Mode) |
3 | 0 | 0 | UART1 + JTAG |
there are two UART peripherals on board, UART0 and UART1, both are enabled in mode-0, and only UART1 enabled in mode-1/2/3, UART0 support all modem signals and UART1 support some modem signals, both support hardware flow control.
the I2C(note: I2C Master) is enabled in mode-1/2, the difference between mode-1/2 is that mode-1 need to install the driver provided by WCH, and mode 2 does not require driver installation (act as USB HID Device).
the SPI(note: SPI Master with 4-line) is enabled in mode-1/2, there are two CS pins, so you can control two SPI devices at once(time-sharing).
the JTAG is enabled in mode-3, include TCK/TMS/TDI/TDO/TRST, support fast-mode and bit-bang mode, uhe fastest speed up to 18Mbit/s.
there is a test demo under doc/CH347EVT/EVT/TOOLS/CH347Demo/ to test UART/I2C/SPI/JTAG/GPIO. for openocd support, please reference WCH official repo https://github.com/WCHSoftGroup/ch347