2010-07-20 07:42 AM
Interfacing EEPROM with Cortex-M3
2011-05-17 04:59 AM
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!2011-05-17 04:59 AM
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.2011-05-17 04:59 AM
''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