cancel
Showing results for 
Search instead for 
Did you mean: 

Full Duplex SPI Communication with Higher Bit Rates

DTarter
Visitor

Hello, I am using the STM32F429I-Disc1 development board and am trying to communicate with the external adc "ADS131M06". In order to do so, it requires full duplex  spi communication with 24 bit words. Our board does not have 24 bit words so instead I am using 8 bit words with DMA communication for minimal if not 0 delay between words. To test that I can properly communicate with the chip, I have set it up with CPOL=LOW, and CPHA=2 edge. I then send 0x00, 0x11, 0x00, (repeat 0x00 21 times). This is because a full communication frame includes an instruction, followed by data, followed by 6 received frames. 

DIN.png

DOUT.png

When I send the reset command the response from the device is correct but in my memory I receive 0xFE27. Does anyone know what could cause the last bit of each word to be off? I noticed it is also random so sometimes it is correct. The device says it reads on a rising edge and writes on a falling edge, and here DIN transitions at the same edge as DOUT so maybe its that, but no other spi configs worked.

1 REPLY 1
Saket_Om
ST Employee

Hello @DTarter 

Please share your schematic.

did you try to decrease the bitrate ?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om