AD74413R no-OS Example Project

See projects/ad74413r (doxygen) for the Doxygen documentation.

Supported Evaluation Boards

Overview

The AD74413R is a quad-channel, software configurable input/output solution for building and process control applications. It contains functionality for analog output, analog input, digital input, resistance temperature detector (RTD), and thermocouple measurements integrated into a single chip with a serial peripheral interface (SPI).

The device features a 16-bit, sigma-delta ADC and four configurable, 13-bit DACs to provide four configurable input/output channels and a suite of diagnostic functions. Supported modes include voltage output, current output, voltage input, externally powered current input, loop powered current input, external RTD measurement, digital input logic, and loop powered digital input.

The EVAL-AD74413R evaluation board integrates the AD74413R alongside an on-board 2.5 V ADR525 reference. It interfaces with a host processor via SPI and supports an AVDD operating supply of 14 V to 28.8 V.

Applications

  • Process control

  • Factory automation

  • Motor drives

  • Building control systems

Hardware Specifications

Power Supply Requirements

The EVAL-AD74413R requires an AVDD operating supply of 14 V to 28.8 V. AVDD powers the ADP2360 switching regulator when JP1 is inserted, providing a regulated 5 V supply via JP3. The DVCC supply is derived from the ADP1720 when JP6 is in place. The SDP-S board, connected through JP10, supplies 3.3 V for communication.

No-OS Build Setup

Please see: No-OS Build Guide

No-OS Supported Examples

The initialization data used in the examples is taken out from the Project Common Data Path.

The macros used in Common Data are defined in platform specific files found in the Project Platform Configuration Path.

Dummy example

This is the default example which initializes the AD74413R device, configures ADC channels for digital input, voltage input/output, and current input, and continuously reads channel statuses for functionality validation.

In order to build the dummy example, make sure you have the following configuration in the Makefile:

EXAMPLE = dummy

IIO example

This project is an IIOD demo for the EVAL-AD74413R evaluation board. The project launches the IIOD server on the board so that the user may connect to it via an IIO client application. Using IIO-Oscilloscope, the user can configure device channels and read samples from the device.

If you are not familiar with ADI IIO Application, please take a look at: IIO No-OS

If you are not familiar with ADI IIO-Oscilloscope Client, please take a look at: IIO Oscilloscope

In order to build the IIO project make sure you have the following configuration in the Makefile:

EXAMPLE = iio_example

IIO trigger example

This example initializes the AD74413R with configured channels, sets up hardware triggers using GPIO interrupts, and integrates them into the IIO subsystem for synchronized data capture.

In order to build the IIO trigger example make sure you have the following configuration in the Makefile:

EXAMPLE = iio_trigger_example

No-OS Supported Platforms

Maxim

Used Hardware

Connections

Connect the EVAL-AD74413R to the Maxim platform via SPI (SCLK, MISO, MOSI, CS). The ALERT pin should be connected to an interrupt-capable GPIO for trigger-based examples.

Build Command

# to delete current build
make reset
# to build the project, uncomment to select target
make PLATFORM=maxim # TARGET=max32655 # TARGET=max78000
# to flash the code
make run

STM32

Used Hardware

Connections

Connect the EVAL-AD74413R to the STM32 platform via SPI (SCLK, MISO, MOSI, CS). The ALERT pin should be connected to an interrupt-capable GPIO for trigger-based examples.

Build Command

# to delete current build
make reset
# to build the project
make PLATFORM=stm32
# to flash the code
make run