Help with i2c code
info
Posts: 31
I'm unable to read i2c eeprom on propeller proto board using obex i2c driver. Something I'm not doing right, but can't figure it out. Programming is my weak point. I'm little better with soldering iron than keyboard. Can you put me on the right track? I want to use i2c i/o expander and I need to learn make it dance using scl and sda pins.
Attached is the short code.
Attached is the short code.
Comments
"Return" doesn't put the value somewhere, the return IS the value. So in the example I gave, X receives and becomes the returned value of the address location you have just read.
Don't know if this is of interest, but, there is a way to look at this interactively. You load propforth and run stuff from the command line, and it can clear some stuff up. After you see the circuit works and the how th code iworks, its easier to get the code right in another method (spin, PASM, etc)
caskaz did a bunch of work, you might start here:
http://code.google.com/p/propforth/wiki/I2Ccaskaz
The newest entries down to SERIAL on this page are germaine:
http://code.google.com/p/propforth/w/list
Sometimes too much information is worse than simple one-line explanation. Thanks again for the help. Simple, right to the point, and it solved my problem.