element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Forum Who does I2C address decode better - Agilent or Tektronix?
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 360 subscribers
  • Views 793 views
  • Users 0 members are here
  • address
  • i2c
  • tektronix
  • decode
  • agilent
Related

Who does I2C address decode better - Agilent or Tektronix?

Instructorman
Instructorman over 11 years ago

This question is for anyone who has used I2C decode features on Agilent or Tektronix oscilloscopes, or anyone interested in how I2C address decode should be done.  The two manufacturers handle I2C addresses differently and I wonder how users feel about the two approaches.

 

On Tektronix 'scopes, I2C addresses are entered as full 8-bit hex values, so the R/W' bit is included in the hex value.  On Agilent scopes, I2C addresses are entered as 7-bit hex values, and the R/W' bit is tacked on as the letter R or W.

 

Obviously, both approaches work, but the Agilent approach strikes me as a little odd.  Here is why:  Most data sheets I've seen provide I2C addresses as 8-bit values with the R/W' bit included as the LSB.  For example, Maxim refers to the DS1307 address as 1101000 followed by a R/W' bit of either 0 (for write) or 1 (for read).  Put that all together and you get 11010000b = D0h for write and 11010001b = D1h for read.  These are the values a user would enter into a Tektronix 'scope to detect and decode I2C communication with a DS1307.  On the other hand, on an Agilent 'scope the I2C addresses for the DS1307 are entered as 68W and 68R.  These values correspond to the 7-bit I2C address followed by an R or W to denote an 8th bit.  Now, a hex digit should, to me, represent 4-bits of binary.  Agilent seems to be using an octal digit followed by a hex digit, followed by a letter.  I find that confusing and awkward.  I asked an Agilent rep about why I2C was handled this way, but never got a response.

 

So, which approach do you prefer, and why?

  • Sign in to reply
  • Cancel
Parents
  • jadew
    0 jadew over 11 years ago

    I'll copy my reply to your original question in here:

    Indeed, some manufacturers do that, but it doesn't mean it's correct. The address is still a 7-bit value, with the exception of 10-bit addresses.

     

    Being able to only display an 8-bit address is obviously an error, while having the option to switch between the two is an attempt at making it easier for the engineer to deal with crappy datasheets (really makes you wonder who's in charge of deciding what to put in the datasheet).

     

    Edit: To answer Mark's question, it doesn't matter if you're only left with 3 bits, any value can be represented in any base and the number of bits is absolutely meaningless from that point of view. This means that the address is fully represented in hex, it just happens that it can't go above 127 (dec).

     

    As for which is correct, binary or hex - any base is fine. An address is nothing more than a number and it will be the same number no matter how it's represented.

     

    Razvan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sqkybeaver
    0 sqkybeaver over 11 years ago in reply to jadew

    i double checked the dpo4embd module. it actually is capable of displaying with and without the w/r bit included in the address byte.

     

    does this change the conversation any?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • sqkybeaver
    0 sqkybeaver over 11 years ago in reply to jadew

    i double checked the dpo4embd module. it actually is capable of displaying with and without the w/r bit included in the address byte.

     

    does this change the conversation any?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Instructorman
    0 Instructorman over 11 years ago in reply to sqkybeaver

    Sheldon,

     

    Hmm, I hadn't noticed that the dpo4embd allows the r/w bit to be included or excluded. Thanks for pointing that out.  I wonder if Agilent decoders can do the same?

    I prefer to have the I2C address expressed with the R/W' bit tacked on, thus creating an 8-bit value.  To me this makes code writing more straigtforward, even though, as Michael and Razvan point out, strictly speaking I2C addresses are either 7-bits or 10-bits long.

     

    Has anyone determined if any of the scopes can decode 10-bit I2C addresses?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sqkybeaver
    0 sqkybeaver over 11 years ago in reply to Instructorman

    Mark Archibald wrote:

     

    Has anyone determined if any of the scopes can decode 10-bit I2C addresses?

    the dpo4embd will also decode 10 bit addresses.

     

    I do believe it also displays a W or R regardless of wither you include the r/w bit in the address.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube