On some 32bit MCUs(PIC32MX, STM32F4), those SPI pins can read a continuous signal such as I2S/PCM.
So I thought to read a single-wire signal that has MHz fixed frequency as SPI.
First, I made a prototype with D flip flop circuit with a crystal oscillator with the same frequency as single-wire signal.
As shown in this logic analyzer image, a result signal was synchronized. But I can't get an accurate data because a signal deviation affected the interval.
Increasing the oscillator clock reduces the uncertainty but MCUs can't receive so high frequency.
I also tried to divide the clock, but sometimes the edges changed, so I could not get the ideal result.
As this is a hobby at the moment, but I'll use other than if these are cheap as logic ICs. Is that possible?