cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing EEPROM with Cortex-M3

julius23
Associate
Posted on July 20, 2010 at 16:42

Interfacing EEPROM with Cortex-M3

3 REPLIES 3
Andrew Neil
Evangelist
Posted on May 17, 2011 at 13:59

Microwire is very much like SPI - have you looked to see if the STM32's SPI peripheral can be used?

''Is there any C code available for that?''

There is lots of 'C' code that uses the STM32's GPIOs, and lots of code that bit-bangs serial interfaces like Microwire - so just put the two together!

julius23
Associate
Posted on May 17, 2011 at 13:59

SPI is a good idea. Unfortunately the pins of the SPI interfaces of my Cortex are already in use. So I have to use GPIO.

I cannot find any C code using Microwire for an EEPROM. Could you please send me any links? Thanks.

Andrew Neil
Evangelist
Posted on May 17, 2011 at 13:59

''Unfortunately the pins of the SPI interfaces of my Cortex are already in use.''

 

Even with re-mapping?

''So I have to use GPIO.''

 

Wouldn't it be more sensible to reallocate pins so that you can use the SPI peripheral?!

''cannot find any C code using Microwire for an EEPROM.''

 

I find that hard to beleive! Did you also check for SPI...?

Don't be too narrow in your search!

Once you have the generic ''driver'' code to do Microwire (or SPI), you can then add the specific code to use that for accessing your EEPROM...

''Could you please send me any links?''

 

http://www.lmgtfy.com/?q=C+code+using+Microwire+for+an+EEPROM