I2C EEPROM Help
Bean
I am relatively new to SX.· I have a SX48 protoboard that I have sucessfully programmed some functions that work.· The problem I'm having is I can't get I2C EEprom working. All I get back is garbage. I've attached file of how I2C is connected and the program file.· Hope its something simple.
I am running at 75MHz because this will eventually be a data acquisition program.
Ben
Post Edited By Moderator (Bean (Hitt Consulting)) : 7/2/2009 11:15:31 AM GMT
I am relatively new to SX.· I have a SX48 protoboard that I have sucessfully programmed some functions that work.· The problem I'm having is I can't get I2C EEprom working. All I get back is garbage. I've attached file of how I2C is connected and the program file.· Hope its something simple.
I am running at 75MHz because this will eventually be a data acquisition program.
Ben
Post Edited By Moderator (Bean (Hitt Consulting)) : 7/2/2009 11:15:31 AM GMT
Comments
Add a subject to this thread to get more people to read it. In general, never post without a subject as those threads often get ignored.
Thanks,
PeterM
That might cause a problem at high clock speeds.
Try removing that line.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Money is not that important....In the grand scheme of things.
·
... and if you make "flags" the first byte in your variable list it will be global, even in the SX48.
And I agree with Bean; based on the spec sheet lowest I2CSPEED setting you can legally use is 0.125 (~400kHz) -- I think you missed a decimal point.
Post Edited (JonnyMac) : 7/2/2009 4:52:43 PM GMT
I was using locals to keep from using all my variable space but will try taking local out of I2CRead.
Sorry about no subject as this is my first post.
·Thanks for the help so far.
Ben