I am using NETDUINO.
I'd like to communicate with a device using SPI.
in order to transfer data to the device, I need the following steps.
- make some clock pulses
- send the data at SPI Standards
- some more clock pulses
- trigger a LATCH to process the received data
writing to SPI is no problem, I generate the clock and the Latch trigger outside the SPI method.
my problem is reading from the device:
I need to send the address to the SPI then it returns the relevant data.
SPI.WriteRead is writing the data, then read it. but since theres no LATCH trigger, the device is not processing the received data.
I need that LATCH trigger after writing, and before reading. How can I generate Latch trigger while using SPI.WriteRead method ?