I2C not working on P8
ShawnMack
Posts: 4
I'm stumped but I'm also fairly new at this so I shouldn't be surprised. I’ve hooked up the external EPROM (24LC32A) that came with my kit. I copied the code with LCD and Eprom interface routines in it and fired it up. The LCD displays the data it’s supposed to but the only data that comes back from the Eprom is 255.
·
Not easily deterred I double checked all my jumpers, heeding the warning about pulling up the SDA and SCL, still nothing.
·
I radically shortened the code to write a single known value (83) to address 0 and then retrieve it, still value 255.
·
Eventually I removed my LCD and rewired the I2C to P0 & P1 instead of P8 and P9 viola it works perfectly. Any idea why this would happen? Is there something I needed to do to force 8&9 to be I2C?
·
I’ve tried writing data with 0&1 and reading it with 8&9 and got 255. Interestingly I wrote data with 8&9 then tried reading it with 0&1 and got my test values!
·
Any help or direction would be greatly appreciated, as I’d really like to get my LCD back.
·
Not easily deterred I double checked all my jumpers, heeding the warning about pulling up the SDA and SCL, still nothing.
·
I radically shortened the code to write a single known value (83) to address 0 and then retrieve it, still value 255.
·
Eventually I removed my LCD and rewired the I2C to P0 & P1 instead of P8 and P9 viola it works perfectly. Any idea why this would happen? Is there something I needed to do to force 8&9 to be I2C?
·
I’ve tried writing data with 0&1 and reading it with 8&9 and got 255. Interestingly I wrote data with 8&9 then tried reading it with 0&1 and got my test values!
·
Any help or direction would be greatly appreciated, as I’d really like to get my LCD back.
Comments
Yes I am very careful to change the I2CPin from 0 to 8 as·it is changed on the board.
The red wires on the attached picture are the wires the project paper describe. These two are not wired att the same time as P0 and P1 but instead of.
Well I hope there is an attachment...
http://www.parallax.com/dl/docs/prod/boards/BS2p2440DBrd.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
"Also note that when using a 24-pin module, pins P8 through P15 are accessed via sockets A8 through A15."
I'll bet most everyone else knows this by second nature. Thanks anyone that took the time to look at this.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Humm, it is on page 2. Now I do feel bad.·And a quick vow to never be snide to someone asking a question answered on page 2 of the Freakin' Manual.