News for hackers. Stuff that matters.
Re:Software defined USB port (Raspberry Pi pico RP2040) by Teknoman117 on Wednesday February 16, 2022 @02:05AM (#30357127)
The PRUs in the beaglebone are way more flexible to be honest. Most of my effort with the Pico PIOs is squeezing everything to fit inside the 32 instruction limit.
Re:Software defined USB port (Raspberry Pi pico RP2040) by synack on Wednesday February 16, 2022 @03:14AM (#30357497)
If you're short on PIO memory, the OUT EXEC instruction will execute an instruction directly from the FIFO. Feed the FIFO with a DMA channel and it'll keep up with the system clock. From the RP2040 datasheet section 3.4.5.2:

> OUT EXEC allows instructions to be included inline in the FIFO datastream. The OUT itself executes on one cycle, and the instruction from the OSR is executed on the next cycle. There are no restrictions on the types of instructions which can be executed by this mechanism. Delay cycles on the initial OUT are ignored, but the executee may insert delay cycles as normal.