View Single Post
  #2   Spotlight this post!  
Unread 02-05-2010, 01:20 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: I2C - Current Address Read

Quote:
Originally Posted by oddjob View Post
I'm not sure, but that appears to be a I2C Random Address Read protocol.

Does anyone have I2C code for Current Address Read?

Start -> Address|1 -> Ack -> Data -> No Ack -> Stop
The current implementation will read "count" bytes without reinitializing.

So you want to read without sending the register address? If that is what you mean, you should be able to simply use the new "Transaction" entry-point in the I2C class and pass 0 for the sendSize. This was added in the update that came out today.

-Joe
Reply With Quote