Electronics > Microcontrollers

8 UARTs using asm_pio / PIO / DMA / Micropython on the rPI Pico

(1/2) > >>

spostma:
just a link to another interesting rPi Pico project to bit-bang 8 UARTs
using the PIO state machine coprocessor (German site):

https://www.mikrocontroller.net/topic/540256

I think that one could extend this to 32 UARTS using 4 PIOs if needed to make massive serial port server!  :)

voltsandjolts:
Google translation of that page:

https://www-mikrocontroller-net.translate.goog/topic/540256?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp

pcprogrammer:
Might be good for a MIDI switch for the musical instrument enthusiasts. You need to throw in a bunch of opto couplers and ttl inverters but for other serial application you would most likely also need extra hardware.

westfw:

--- Quote ---I think that one could extend this to 32 UARTS using 4 PIOs
--- End quote ---

* There are only 2 PIOs in a rp2040.
* Each PIO has 4 state machines, and it looks like their code is using one state-machine for each direction of each UART.  So it's eight half-uarts, rather than 8 full uarts,  (I'm not SURE, since the combination of python, PIO, and German is difficult for me to wade through...)

mino-fm:

--- Quote from: westfw on August 13, 2022, 08:37:38 pm ---So it's eight half-uarts, rather than 8 full uarts,

--- End quote ---

That's right.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version