2 ms·
Since the start of chip shortage I have been defaulting to RP2040 for my hobby/learning projects. The PIO has been useful for some applications: * 13 bit 8M ba
by fest 4y ago
Since the start of chip shortage I have been defaulting to RP2040 for my hobby/learning projects. The PIO has been useful for some applications:
* 13 bit 8M baud UART receiver for Digipan x-ray sensor. Alternative would have been a small FPGA, but then I would have to deal with several systems. Still had to reduce bit depth of output data, as I couldn't reliably stream data out over USB1.1.
* Sequence and read out the data from EPC901 line sensor for a crude spectrometer- while it might have been done with SPI, bitbanging the control lines and bit-twiddling the read data, I felt that the PIO solution was much more elegant- just launch the statemachine and wait for DMA transfer to finish.
On the other hand, I tried but couldn't really figure out a way to implement stepper motor control with speed ramping in PIO and resorted to porting AccelStepper to RP2040 (which worked out great in the end).