i2c object
mynet43
Posts: 644
I'm looking for help with i2c to drive a TI Audio Codec on the same bus used for the EEPROM.
Mike Green's Basic I2C Driver in the Object Exchange refers to: "I2C Object Library by James Burrows".
I haven't been able to locate this in the Object Exchange.
Please point me to this if possible.
Thanks for your help.
Jim
Mike Green's Basic I2C Driver in the Object Exchange refers to: "I2C Object Library by James Burrows".
I haven't been able to locate this in the Object Exchange.
Please point me to this if possible.
Thanks for your help.
Jim
Comments
The driver you have (Basic I2C Driver) should be usable for interfacing to other I2C devices as well as the PCM3060.
In your case, you'd use the Start / Write / Stop routines with the Write routine used for the device select code, the
register number, and the data bytes to load into the registers. Have a look at the WritePage routine for an example
of the use of these routines to write to an EEPROM ... which is similar except that an EEPROM has two address bytes
instead of a register number and the device select code is different.
Post Edited (Mike Green) : 10/20/2007 5:19:42 PM GMT
If anyone comes across the I2C Object Library, I'd like to take a look at it too.
Jim
Do you know the difference between the versions?
Thanks
I'll take a look at them to see if I can spot the differences.
I sent Paul a PM about it missing from the Object Exchange, so maybe he can get it back in there and clear up the version differences.
Thanks again,
Jim
I took a quick look at the code for i2cObject.spin.
The code is significantly different between V1.3 and V1.4, although the revision history is identical in both modules.
I would recommend sticking with the V1.4 version, as it probably contains important bug fixes.
Jim
Sorry about that - it was deleted while being updated.
I'll try to get 1.3 back on the object exchange (its not letting me at present)
Version 2 will be based on Mike Green's basic_i2c_driver.spin at the core.
1.4 was "beta" as i wasn't 100% about the page read/write routines.
J
Paul sent me an email this morning saying he was looking for the code.
So you might want to send it to him directly, then he can post it.
Both versions are available a couple of posts up in this thread.
By the way, thanks for clearing up the confusion regarding 1.3 vs 1.4.
Jim
Sorry about the delay.
Version 1.3 is back on the OBEX.
James