cancel
Showing results for 
Search instead for 
Did you mean: 

SPI Read Problem (16 bits read out instead of 8 bits)

bhpclan
Associate II
Posted on May 25, 2009 at 16:36

SPI Read Problem (16 bits read out instead of 8 bits)

1 REPLY 1
bhpclan
Associate II
Posted on May 17, 2011 at 13:12

Hi,

I've got a problem with the SPI functions included in the ST library.

When I'm using the SPI_I2S_ReceiveData(...), the µC generates 16 clock pulses instead of only eight.

The SPI is initialized with 8 bits.

Before doing ReceiveData() I wait for Rx not empty.

When sending something, only 8 bits are sent rightly.

Anybody an idea what could be the reason?