Re: [Fx2lib-devel] Issues with I2C
Status: Beta
Brought to you by:
mulicheng
From: Kevin J. <kjp...@ya...> - 2011-01-05 20:18:07
|
Thanks. I was looking for a confirmation there were alot of improvements to the I2C before going through the process of figuring out how to access git. I am sure it isn't hard I just had never done it before and was trying to avoid getting side tracked if it didn't make sense. Kevin --- On Wed, 1/5/11, Dennis Muhlestein <djm...@gm...> wrote: From: Dennis Muhlestein <djm...@gm...> Subject: Re: [Fx2lib-devel] Issues with I2C To: fx2...@li... Date: Wednesday, January 5, 2011, 5:51 PM Try the latest sources from git. Github has an 0.2 build if I recall. Or at least an 0.2 download. I think there were a lot of i2c fixes between 0.1 and 0.2. -Dennis On 01/05/2011 10:10 AM, Kevin Johnson wrote: > I am using a Cypress 68013 and a 16 kB 3.3 V EEPROM. The fx2lib I2C > functions to read the EEPROM isn't working, but if I manually send the > I2C read and write functions as shown in the read and write EEPROM code, > but with a delay in between it works fine. > > Has anyone else seen this? I am only running at 100kHz. > > I am using fx2lib-src-0.1.tgz which looks like the only released > version. I am using the newest version of SDCC so I had to go through > and update everything. Didn't know about the github until already had > done it. > > I am just interested if there were any other fixes to I2C that I might > not have roled in or if I should just add a SYNCDELAY in my fx2lib and > rebuild it. > > When I check with a scope, what I notice is that without the delay the > first 1 to 3 reads are NACKed. It retries and eventually gets a ACK when > the part is ready but the randomness of when it gets acked means that > the data is random. If I add the delay the first read is ALWAYS acked > and the data is always good. > > Thanks > > Kevin > > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > Fx2lib-devel mailing list > Fx2...@pu... > https://lists.sourceforge.net/lists/listinfo/fx2lib-devel ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Fx2lib-devel mailing list Fx2...@li... https://lists.sourceforge.net/lists/listinfo/fx2lib-devel |