Both sides previous revisionPrevious revisionNext revision | Previous revision |
university:courses:electronics:m2k-i2c-debug [04 May 2019 17:48] – Change "message" to "transaction" globally, note to add pullups to figure, link to actual I2C spec, minor wording Mark Thoren | university:courses:electronics:m2k-i2c-debug [03 Jan 2021 22:12] (current) – fix links Robin Getz |
---|
The objective of this tutorial is to use the Logic Analyzer instrument provided by the [[adi>ADALM2000]] (M2K) board and the [[university:tools:m2k:scopy|Scopy]] software toolset to visualize I2C (Inter-Integrated Circuit) transactions between two devices. | The objective of this tutorial is to use the Logic Analyzer instrument provided by the [[adi>ADALM2000]] (M2K) board and the [[university:tools:m2k:scopy|Scopy]] software toolset to visualize I2C (Inter-Integrated Circuit) transactions between two devices. |
| |
The [[resources:eval:user-guides:eval-adicup360:reference_designs:demo_adt7420|ADT7420 PMOD Temperature Demo]] project will be used as an example. The project uses the [[https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adt7420-pmdz.html|EVAL-ADT7420-PMDZ]] connected to the [[adi>EVAL-ADICUP360]] microcontroller board. The PMOD includes the [[ADI>ADT7420]] high accuracy digital temperature sensor. | The [[resources:eval:user-guides:eval-adicup360:reference_designs:demo_adt7420|ADT7420 PMOD Temperature Demo]] project will be used as an example. The project uses the [[adi>en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adt7420-pmdz.html|EVAL-ADT7420-PMDZ]] connected to the [[adi>EVAL-ADICUP360]] microcontroller board. The PMOD includes the [[ADI>ADT7420]] high accuracy digital temperature sensor. |
| |
The Demo application includes a function that reads and displays the temperature data from the ADT7420 and one that reads and displays the ID register data for ADT7420. | The Demo application includes a function that reads and displays the temperature data from the ADT7420 and one that reads and displays the ID register data for ADT7420. |
<WRAP centeralign>{{:university:courses:electronics:i2c_diagram.png?400|}}</WRAP> | <WRAP centeralign>{{:university:courses:electronics:i2c_diagram.png?400|}}</WRAP> |
<WRAP centeralign>Figure 1. I2C master-slave configuration</WRAP> | <WRAP centeralign>Figure 1. I2C master-slave configuration</WRAP> |
FIXME! - while not super critical to understaning the protocol, add pullup resistors. (You could borrow Figure 1 from Sal's article.) | |
| |
I2C physical layer signals: | I2C physical layer signals: |
| |
* [[https://www.nxp.com/docs/en/user-guide/UM10204.pdf|I2C specification (External link to NXP)]] | * [[https://www.nxp.com/docs/en/user-guide/UM10204.pdf|I2C specification (External link to NXP)]] |
* [[https://www.analog.com/en/technical-articles/i2c-primer-what-is-i2c-part-1.html|I2C Primer: What is I2C? (Part 1)]] | * [[adi>en/technical-articles/i2c-primer-what-is-i2c-part-1.html|I2C Primer: What is I2C? (Part 1)]] |
* [[https://www.analog.com/en/technical-articles/i2c-timing-definition-and-specification-guide-part-2.html|I2C Timing: Definition and Specification Guide (Part 2)]] | * [[adi>en/technical-articles/i2c-timing-definition-and-specification-guide-part-2.html|I2C Timing: Definition and Specification Guide (Part 2)]] |
* [[https://www.analog.com/media/en/technical-documentation/technical-articles/I2C-Cabling.pdf|I2C-Cabling]] | * [[adi>media/en/technical-documentation/technical-articles/I2C-Cabling.pdf|I2C-Cabling]] |
* [[resources:eval:user-guides:eval-adicup360|EVAL-ADICUP360 User Guide]] | * [[resources:eval:user-guides:eval-adicup360|EVAL-ADICUP360 User Guide]] |
* [[university:tools:m2k|ADALM2000 Overview]] | * [[university:tools:m2k|ADALM2000 Overview]] |
* [[university:tools:m2k:scopy|Scopy]] | * [[university:tools:m2k:scopy|Scopy]] |
* [[resources:eval:user-guides:eval-adicup360:reference_designs:demo_adt7420|ADT7420 PMOD Temperature Demo]] | * [[resources:eval:user-guides:eval-adicup360:reference_designs:demo_adt7420|ADT7420 PMOD Temperature Demo]] |
* [[https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adt7420-pmdz.html|EVAL-ADT7420-PMDZ]] | * [[adi>en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adt7420-pmdz.html|EVAL-ADT7420-PMDZ]] |