AnsweredAssumed Answered

IQuestion about SPIMaster_LDD in KDS

Question asked by Steven Burck on May 17, 2016
Latest reply on Jun 24, 2016 by Marek Neuzil

I'm writing an SPI driver to a device which requires me to either send small commands (1 byte), or to send and receive one byte.  However, the send and receive must be done under a single chip select.  If I use the built in chip select, then switching from SendBlock to ReceiveBlock lowers it, and it fails.  If I remove the chip select and handle it as an IO, I have timing problems, as the event for send comes after the last byte (in my case also the first) has entered the buffer - but before the character has actually been transmitted - so I have to do a forced wait estimating when it will be ready.  Is there a way to send and receive under a single chip select with the component?