cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating with an EEPROM over SPI

dave4
Associate II
Posted on January 15, 2010 at 09:02

Communicating with an EEPROM over SPI

12 REPLIES 12
dave4
Associate II
Posted on May 17, 2011 at 13:37

Thanks, the best news was that was the last module of the application :)

Dave

johnfitzgerald9
Associate II
Posted on May 17, 2011 at 13:37

Hi Dave6,

To help the next person who reads this thread, please could you publish what you ''Fixed'' and how?

thanks.

dave4
Associate II
Posted on May 17, 2011 at 13:38

Certainly,

The critical point here was to realise that this EEPROM requires an edge detection on the chip select pin to deliniate the start and end of command, so for write enable, requires a high-low transition before command and low-high transition after.

This also applied to the READ command and waiting for the data to arrive using a while loop on RXNE and supplying dummy data to activate the clock so that the data can be read into the STM32.

Regards

Dave