useing Eeprom M24C02-WMN6TP
Hydromag
Posts: 3
in Propeller 1
Hi guys,
This is the first form I have ever used. So if I'm jumping line or something, sorry.
I'm pretty new to programing and circuits as well. Know just enough to get me into trouble Haha.
I've poked around with the prop on and off for a while now and am making my first PCB project. So far most of the circuits are working as intended. But I'm really out of my depth on the Eeprom problem I'm having, and as PCB's are hard to work with and expensive to throw away I was hoping some of you fine people could help me out.
I'm using M24C02-WMN6TP as my eeprom. I looked at the data sheet and it seemed to me would be a plug and play switch save for the size. But when I try to load my program into ROM it tells me it can't. The program loads into RAM and runs (thankfully, I was defiantly holding my breath when I pushed that button lol)
I have it hook up as follows
P1) E0 to GND
P2) E1 to GND
P3) E2 to GND
P4) VSS to GND
P5) SDA to PropPin 29 with a pull up of 10k to 4.4v
P6) SCL to PropPin 28
P7) WC to GND
P8) VCC to same source as PropChip power 4.4v (I need to drop this voltage I know but for testing so far it seems to be working)
As a side thought, I am going to flip the chip around. It doesn't have any marking on it indicating pin one so maybe its backwards??
Thanks for any thoughts.
This is the first form I have ever used. So if I'm jumping line or something, sorry.
I'm pretty new to programing and circuits as well. Know just enough to get me into trouble Haha.
I've poked around with the prop on and off for a while now and am making my first PCB project. So far most of the circuits are working as intended. But I'm really out of my depth on the Eeprom problem I'm having, and as PCB's are hard to work with and expensive to throw away I was hoping some of you fine people could help me out.
I'm using M24C02-WMN6TP as my eeprom. I looked at the data sheet and it seemed to me would be a plug and play switch save for the size. But when I try to load my program into ROM it tells me it can't. The program loads into RAM and runs (thankfully, I was defiantly holding my breath when I pushed that button lol)
I have it hook up as follows
P1) E0 to GND
P2) E1 to GND
P3) E2 to GND
P4) VSS to GND
P5) SDA to PropPin 29 with a pull up of 10k to 4.4v
P6) SCL to PropPin 28
P7) WC to GND
P8) VCC to same source as PropChip power 4.4v (I need to drop this voltage I know but for testing so far it seems to be working)
As a side thought, I am going to flip the chip around. It doesn't have any marking on it indicating pin one so maybe its backwards??
Thanks for any thoughts.
Comments
The propeller tool needs a minimum EEPROM of 32K such as a https://www.mouser.com/ProductDetail/Microchip-Technology/24LC256-E-ST?qs=Lo1urCY4z7uKStXSeNCR2Q==&gclid=CjwKCAiA0O7fBRASEiwAYI9QAgM6I5Ls_sGIWBDh32wdaKfP3erKRyFREz5BZujXYFCxMP5vswGFexoCTVkQAvD_BwE
But a 64K chip is not that much more, and you can use the 32K above what the Propeller uses for personal storage. https://www.mouser.com/ProductDetail/Microchip-Technology/24LC512-I-SM?qs=XsNSACV0tdVOVohSJQWv0A==&gclid=CjwKCAiA0O7fBRASEiwAYI9QAik5OjXptoLaeXawtg6gw65zq2ivOZrw3mWVKSXMexd3r2L_0EXIkhoCuIIQAvD_BwE
A couple years ago I coded a commercial laser-tag controller that used this strategy. The "weapon" data is stored in the upper 32K so that the apps (Editor, Player, or Referee) can be switched and have access to the same data. For those wondering, the apps are pre-compiled and the binary images stored on the SD card used for audio. There is code in each app that can copy a binary file to the EEPROM and the force a reboot.
Thanks Guys.
I'll get the new eeprom and give it a go, it will take week or so to get the part.
Besides that, the way I had the connections should work?
I'm assuming Yes since no one said anything about them.
The help is very much appreciated!
Switched it out and it works great!!!
Thanks so much Guys. Your amazing!
As for my 4V, I'm still trying to figure it out.
My regulator is putting out the correct voltage.
I must be getting some kind of back feed from something I have hooked up.
I'm going to keep hunting.
What a great way to start December