Interfacing EEPROM with Cortex-M3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-07-20 7:42 AM
Posted on July 20, 2010 at 16:42
Interfacing EEPROM with Cortex-M3
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:59 AM
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!
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:59 AM
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:59 AM
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
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
