Skip to main content
dave4
Associate II
January 15, 2010
Question

Communicating with an EEPROM over SPI

  • January 15, 2010
  • 12 replies
  • 3277 views
Posted on January 15, 2010 at 09:02

Communicating with an EEPROM over SPI

    This topic has been closed for replies.

    12 replies

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

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

    Dave

    dave4
    dave4Author
    Associate II
    May 17, 2011
    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