AnsweredAssumed Answered

SPI Continuous transfer

Question asked by miller.mike.003 on Mar 20, 2014
Latest reply on Mar 21, 2014 by miller.mike.003
All,

I searched the forum but I didn't see any specific answers on this.

I am getting  the SPI peripheral setup and tested on my STM32F05*.

1.) Starting off I have the following configuration:

SPI_InitStruct.SPI_NSS = SPI_NSS_Hard;

SPI_NSSPulseModeCmd(SPI1,ENABLE );   // only way that I could get the cs to work

SSM (software slave management) = 0;
SSI (internal slave select) = 0;
SSOE (SS output enable) = 0;

I see the chip select line cycling from high-low-high for each byte. Looks good.

This is fine but there are times when I want to send more than 1 byte at a time and not
have the chip select line go high until all the bytes have been sent.

2.) I then tried to enable (SPE = 1) /disable (SPE=0) the SPI that was supposed to drive the CS high or low. This didn't work for me.

3.) I then tried to manually toggle the chip select line by using it as a regular gpio line and I am getting a mode fault.  Set low before sending out the data and then setting the pin high after the data has been sent out.

Any ideas on this?

Thanks.

-Mike





Outcomes