3 ms·
I found an excuse to learn PIO in sampling linear CCD sensor. The gist of it is: sensor needs accurate (us) shutter signal, then a strobe on another signal to s
by fest 5y ago
I found an excuse to learn PIO in sampling linear CCD sensor. The gist of it is: sensor needs accurate (us) shutter signal, then a strobe on another signal to start clocking the data out. On each clock you'd like to acquire an ADC sample (but ADC sampling should happen some time after clock edge, as that's when the sensor changes it's output multiplexer to select next pixel).
Doable to solve on an STM32 by bitbanging, but PIO makes more elegant solution (start the PIO program, read acquired samples via DMA).