Couple things on USB that might help.
toggle quoted message
Show quoted text
You can easily buy a TTL to USB converter.? Takes TTL level (as from uart/usart) signals, either 3.3 or 5.0 volts, and translates them to a USB signal.? That USB signal, when plugged into a PC, enumerates as a serial port.? You set the baudrate at the terminal to match the TTL baudrate. In a number of microprocessor boards (my experience is with the ST-MICRO boards), the USB chip on the board used for programming also has a virtual terminal function (at the same time as debugging).? The USB chip is hardwired to a USART output on the processor.? If you don't use those pins for something else, and don't disconnect them, you can initialize that particular USART on the processor and use it to communicate through the debugging cable.? Your debugging system runs an instance of a terminal program. In addition, if you enable the fprint functions in your system and direct them to the USB usart channel, you can get ongoing outputs from the processor to the computer for monitoring a process.? You could also use the console in and out functions, but those may need to be redirected in your program. Really easier than you might think. As to emulating a true HID device, I haven't tried that, haven't needed to, but I suspect with the right drivers, emulating an HID device (mouse, etc) might be easy enough. Harvey On 12/2/2021 12:07 PM, Chris Wilkson via groups.io wrote:
This is fantastic work, Holger! |