I've been playing with several versions of the Pico as a controller.
The two uarts are interesting.
Reading the hardware specs, the USB controller in the 2040 can support 32 end points.
Being able to multiplex those uart streams over some of those channels, even at reduced baud rate would be elegant.
Obviously whatever the USB cable is connected to would need a dedicated driver.
Possibly another Picoas a demux.
Or a very very tiny RP2040 clone that would fit into a USB connector, and a driver that would connect pty's to the demuxed channels
Harry
No need for mux/demux or a dedicated driver. Just have the Pico present to the USB host as a USB device with multiple UARTs.
There are projects/firmwares in the wild that do just that and that use PIO to provide four more UARTs for a total of six. I'm using this one.
I don't know of anyone who has tried it* but in theory with the extra PIO block the Pico2/RP2050 should be able to support eight.
*: But I've not looked very hard.
Statistics: Posted by thagrol — Wed Sep 10, 2025 6:41 pm