Hi !
I'm trying to acquire data from SPI ( clk=1.5 Mhz) only using two inputs of one of the PRU's BBB.
I've just written a little piece of code to detect when the clock is high , to know when can
i read my data input. Then i wait until the clock goes down etc ...
It works pretty well but i've noticed that sometimes it seems as if some bits are not acquired properly,so..
sometimes my programm gives me exactly what i've sent on the board, sometimes not.. it's really annoying because i don't see where could i've
made something wrong ..
If you have any ideas to solve my problem, or another way to do that, please let me know !
Thanks