Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21927

MSP430F249-EP: Reading/Writing w/ MSP430 & EEPROM over SPI

$
0
0
Part Number: MSP430F249-EP

Tool/software:

Hi! I'm trying to read and write to a 25LC512 EEPROM using an MSP430, but I just get 0 when reading back the value I've allegedly written. I'm confident that my initialization, as well as the read/write logic I've written in accordance with the EEPROM datasheet, which leaves me with two points I suspect are causing my issue. Also for context, I'm working with the connections on PCB, so I'm unable to probe any pins with an oscilloscope to debug.

I was under the impression that by choosing to go with a polling architecture, I wouldn't need to create ISRs, and the hardware would simply handle toggling the flags when the buffers receive data. I doubt this is what's causing my problems but thought it'd be worth mentioning. The datasheet also did not mention that delays between any commands were necessary, so I haven't created a timer or anything like that to have the program wait at certain parts. However, looking online has me thinking otherwise. The 25LC512 does offer users the ability to see if a write/WREN latch is in progress/is being set, but this requires additional commands to be set in the intermediary, disrupting the write process.

Feel free to roast me; at this point I've been looking at this code for so long I'm starting to go crazy. Thanks for any tips!


Viewing all articles
Browse latest Browse all 21927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>