Wiki

The most recent version of this page is a draft.DiffThis version is outdated by a newer approved version.DiffThis version (02 Apr 2019 11:56) is a draft.
Approvals: 0/1

This is an old revision of the document!


Debugging I2C with the ADALM2000

Objective

The objective of this tutorial is to use the Logic Analyzer instrument provided by the ADALM2000 (M2K) board and the Scopy software toolset to visualize I2C (Inter-Integrated Circuit) transactions between two devices.

The ADT7420 PMOD Temperature Demo project will be used as an example. The project uses the EVAL-ADT7420-PMDZ connected to the EVAL-ADICUP360 microcontroller board. The PMOD includes the 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.

Background

I2C is a serial protocol for two-wire interface to connect low-speed peripheral integrated circuits like EEPROMs, A/D and D/A converters and other similar peripherals in embedded systems to processors and microcontrollers in short-distance (intra-board communication).

With I2C, you can connect multiple slaves to a single master and you can have multiple masters controlling single, or multiple slaves. This is really useful, for example, when you want to have more than one microcontroller writing data to a single memory card.

Figure 1. I2C master-slave configuration

university/courses/electronics/m2k-i2c-debug.1554198984.txt.gz · Last modified: 02 Apr 2019 11:56 by Antoniu Miclaus