Hello,
I have a problem. I want to use CS as a SPI functional pin. I know i can use it as GIO pin but i dont wont to.
I have some special things in communication between master and slave. I using 5-pin choice.
Protocol goes something like so:
I select slave 0, than i send 8 bytes of data and than again send 8 bytes data. After this i want to CS goes up. CARLENG is 1 byte.
When i send 8 + 7 bytes i use CS_HOLD = 1, and at the last byte i set CS_HOLD = 0.
But if something goes wrong, flag goes up (like timeout), function exits, CS stay down.
How can i modified CS signal without sending a fake command to Slave?
I always addressing the same Slave.
Thx.