On 15/03/2011, at 7:09, Derek Bouius wrote:
>>> It appears to ignore the address which is odd..
>>> I can't see an obvious bug in the code yet, still looking..
>>> 
> Not sure what address you are referring to, the I2C 'prom_addr' or the
> offset into the eeprom 'addr'.

I am referring to addr.

I ended up basically cut & pasting the eeprom example code to start off with. 
My I2C EEPROM is 128kbit and is strapped to 001.

> Keep in mind that the 'prom_addr' gets shifted left by one in the I2C
> read and write routines. Some device datasheets report their 7 bit I2C
> address as an 8 bit value, already shifted.

OK.

I need to look at it more, but I accidentally hung the micro so I can't re-test 
it until I get back to work to power cycle it :)

> Derek
> 
>>> Thanks.
>>> 
>>> --
>>> Daniel O'Connor software and network engineer
>>> for Genesis Software - http://www.gsoft.com.au
>>> "The nice thing about standards is that there
>>> are so many of them to choose from."
>>>    -- Andrew Tanenbaum
>>> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Colocation vs. Managed Hosting
>>> A question and answer guide to determining the best fit
>>> for your organization - today and in the future.
>>> http://p.sf.net/sfu/internap-sfd2d
>> 
>> 
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> Fx2lib-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fx2lib-devel
>> 
> 
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Fx2lib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fx2lib-devel
> 

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C







------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Fx2lib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fx2lib-devel

Reply via email to