EEPROM and Crystal problem
SexieWASD
Posts: 41
I have an odd problem. My prop now identifies properly, and I can load a program into ram fine, but If I try to load a program into the EEPROM it fails with the "EEPROM programming error on COM 3" message, Also If I add:
To the top it doesn't throw an error loading it into ram, but a simple program to change one pin to output low doesn't change the pin.
I've tried a couple different 5MHz crystals from parallax, along with a few different 24LC256-I/SN EEPROM chips.
Any ideas?
Also, I really wish the forum search would allow searching thread titles only, It's hard to find anything, I suspect that there are more threads on eeprom hiding from me.
CON _xinfreq = 5_000_000 _clkmode = xtal1 + pll16x
To the top it doesn't throw an error loading it into ram, but a simple program to change one pin to output low doesn't change the pin.
I've tried a couple different 5MHz crystals from parallax, along with a few different 24LC256-I/SN EEPROM chips.
Any ideas?
Also, I really wish the forum search would allow searching thread titles only, It's hard to find anything, I suspect that there are more threads on eeprom hiding from me.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5
Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.
Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
SDA is on P29 with a 2.2k pullup to 3.3V
WP is tied to ground
VDD is 3.3V
All address pins and VSS are tied to ground.
I thought that maybe I had the EEPROM chip upside down, because the label was opposite from the data sheet, but then the prop wasn't identified at all, so it's back to the other way, using the circle to identify pin #1.
EEPROM pins 1,2,3,4,7 connected to ground. Pin 8 to 3.3V and of course pin 5 to P29 and pin 6 to P28 with at least a pullup on P29.
Make sure you have a decoupling capacitor connected correctly across the Prop and/or the EEPROM supply!
Also, what code are you using to change a pin low?
In all this if you simply provide the code/schematic/layout upfront it would be a lot faster and simpler to answer.
*Peter*
P.S. just caught your post. What do you mean upside-down?
The other chip on the SCL SDA lines is an I/O Expander www.cypress.com/?docID=2696
The squares on the SCL SDA lines are for pull ups, but the resistor for SCL isn't installed.
By upside down I mean that the print/lettering is printed opposite as in the datasheet so I was confused as to which way to solder the chip, but have tried both ways, and am back to using the pin #1 mark (indented circle) on the EEPROM.
Here is the test code I used
The comments aren't accurate, I copy/pasted from the education kit pdf
Post Edited (SexieWASD) : 9/20/2009 2:02:04 AM GMT
Your code will make p0 high, not low.
*Peter*
P.S. There is also a possibility that you have a damaged EEPROM.
That was my first though after checking the pins, but I have tried a few EEPROMs, and it doesn't matter which one is used, the problem remains.
What was the outcome with the Cypress address line? If it's tied high then the Prop should be able to load it's EEPROM.
*Peter*
What you write into the CON section has nothing to do what the Prop does during programming the EEPROM (at least I think so).
I do have the *impression* that the Prop is a bit picky about what EEPROM is connected to the I2C. The timing is hardcoded in the chip.
As long as your code works from RAM the way it should you have won. You could program the EEPROM with my 3PClient (make a search). You then should PM me for the current version (I didn't update the thread).
HTH,
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
I'm using the schmartmodule board. I've desoldered and soldered a new eeprom.
i'm using this eeprom:
http://www.mouser.com/ProductDetail/Atmel/AT24C32C-TH-B/?qs=j6lVIf5KywDdkSEK3cFLcA==
mouser part #: 556-A24C32CTH-B (just in case the link doesn't work)
I looked at the proto prop dev board and they seem to be using:
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=AT24C512B-TH25-B-ND
digikey part #: AT24C512B-TH25-B-ND
Not sure if that should matter however, mine has 32k and the other has 512k
i'll get this part and see if that's the prob.
sound about right?