EasyManua.ls Logo

Analog Devices EVAL-ADuCM355QSPZ User Manual

Analog Devices EVAL-ADuCM355QSPZ
24 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #13 background imageLoading...
Page #13 background image
EVAL-ADuCM355QSPZ Evaluation Board UG-1308
Rev. A | Page 13 of 24
APPLICATION EXAMPLES
This section describes how to use the ADuCM355 application
examples that are part of the ADuCM355 software development
kit (SDK). The ADuCM355 is a dual-die device that has a
Cortex-M3 digital die and an analog front-end (AFE) die. The
AFE die and the AD5940 are the same except for some differences
in which pins are bonded out, and both devices share a
common library interface to simplify firmware development.
The main library files in the SDK are AD5940.c and AD5940.h.
All functions in this library are compatible with the
ADuCM355, AD5940, and AD5941. All AFE related function
names begin with AD5940_. Some projects in the SDK have files
labeled AD5940Main.c, which contain the upper controllers that
control the AFE die and are mostly common between the
ADuCM355, AD5940, and AD5941.
The Cyclic Voltammetry Example section outlines how to use
the following example projects:
M355_ECSns_
CycloVoltammetry
M355_ECSns_EIS
M355_ECSns_
CappaTest
M355_ECSns_SingleWE
M355_ECSns_DualWE
M355_AfeWdt
CYCLIC VOLTAMMETRY EXAMPLE
Cyclic voltammetry is a common electrochemical measurement
in which the current on the sense electrode is measured in
response to a ramp like voltage applied on the reference electrode.
Figure 20 shows a typical, stepped differential voltage between
the reference and working electrodes of the sensor where V1 is
the initial voltage on the reference electrode and V2 is the peak
voltage on the reference electrode.
VOL
T
AGE
V
2
V
1
TIME
16887-015
Fig
ure 20. Typical Cyclic Voltammetry Waveform
In the ADuCM355 firmware package, the M355_ECSns_
CycloVoltammetry project demonstrates how to implement a
cyclic voltammetry measurement on the ADuCM355. There are
two main files within the project, AD5940Main.c and Ramp.c.
The AD5940Main.c file contains the upper controllers that
control the high level application parameters. The Ramp.c file
contains the low level device configuration for the cyclic
voltammetry measurement.
Figure 21 shows the AD5940RampStructInit (void) function
defined in the AD5940Main.c file. Modify the main parameters
for the signal such as ramp start voltage, ramp peak voltage,
and ramp duration for this function within this file.
16887-221
Fi
gure 21. Cyclic Voltammetry Parameters
To test the firmware, construct a dummy electrochemical cell
using 1 kΩ resistors in a star network (see Figure 22). Connect
each resistor network pin to the CE0, RE0, SE0, and DE0 pins
on the P5 header. Ensure that the configurations are constructed
as shown in Figure 22.
16887-016
Fig
ure 22. Resistor Star Network Connected to P5 Header
To begin measuring and gathering data, open a terminal program
such as RealTerm. Configure the baud rate for 230,400 bps.
Compile and build the project in the preferred IDE and load
the code onto the ADuCM355. Run the measurement, and save
the data to a .csv file for processing. If the definition of
OPT_RAMP_MEAS (parameter defined in the Ramp.h file) is
set to 1,the following four measurements are performed:

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Analog Devices EVAL-ADuCM355QSPZ and is the answer not in the manual?

Analog Devices EVAL-ADuCM355QSPZ Specifications

General IconGeneral
CategoryEvaluation Board
Part NumberEVAL-ADuCM355QSPZ
MicrocontrollerADuCM355
EmbeddedYes
Operating Temperature Range-40°C to +85°C
Compatible DevicesADuCM355
ManufacturerAnalog Devices Inc.
FunctionEvaluation Board
PurposeEvaluation of the ADuCM355
InterfaceUSB, UART

Summary

EVALUATION BOARD FEATURES

ADuCM355 Debug and Programming

Debug and programming capabilities of the ADuCM355 microcontroller.

Electrochemical Sensor Evaluation

Evaluate performance with electrochemical gas sensors.

Temperature Sensor (ADT7420)

±0.25°C accurate temperature sensor via I²C.

MicroUSB Power and PC Connection

MicroUSB power option and PC connection for the evaluation board.

EQUIPMENT NEEDED

PC Requirements

PC running Windows® 7 or later.

Sensor Connection

Connect an electrochemical gas sensor or resistor star network.

DOCUMENTS NEEDED

ADuCM355 Hardware Reference Manual

Official hardware reference manual for the ADuCM355.

ADuCM355 Data Sheet

Comprehensive data sheet for the ADuCM355 microcontroller.

SOFTWARE NEEDED

Development IDEs

IAR Embedded Workbench or Keil µVision IDEs.

ADuCM355 GitHub Repository

Access firmware examples and code from GitHub.

Terminal Program

Terminal program such as RealTerm for viewing output.

GENERAL DESCRIPTION

ADuCM355 System Overview

ADuCM355 system for biasing and measuring electrochemical sensors.

Evaluation Board Purpose

EVAL-ADuCM355QSPZ allows evaluation of ADuCM355 performance.

Consult ADuCM355 Data Sheet

Consult ADuCM355 data sheet in conjunction with user guide.

POWER CONFIGURATIONS

MicroUSB Direct Power

Powering the board via the microUSB connector and on-board LDO.

3.3V Power via AVDD/DVDD

Connecting 3.3 V to AVDD and DVDD connectors for current measurement.

POWER VIA USB FROM 8-PIN DEBUG CONNECTOR (P27)

Jumper Setup for Debug Header USB Power

Jumper settings for powering via the 8-pin debug connector USB.

POWER VIA EXTERNAL 5V SUPPLY TO 2-PIN CONNECTOR (P37)

External 5V Power Setup

Connecting an external 5 V supply to the P37 connector.

CONNECTING AN ELECTROCHEMICAL SENSOR

Sensor Channels (CHO and CH1)

ADuCM355 has two measurement channels for electrochemical sensors.

Sensor Connection Types

2-lead, 3-lead, or 4-lead sensors can be connected to CH0 or CH1.

GETTING STARTED WITH THE TOOL CHAIN

Downloading Development Environment (IDE)

Download and install IAR Embedded Workbench or Keil µVision.

Installing ADuCM355 Support Package

Clone the ADuCM355 examples repository from GitHub.

RUNNING A GPIO EXAMPLE IN IAR EMBEDDED WORKBENCH

Project Folder Structure (IAR)

Structure of the IAR Embedded Workbench project folder.

COMPILING AND RUNNING FIRMWARE

Rebuild All Project

Compile the firmware by rebuilding all project files in the IDE.

Launching the Debugger

Load the compiled firmware onto the ADuCM355 and launch the debugger.

Viewing UART Data

Open a terminal program to view UART data from the ADuCM355.

RUNNING A GPIO EXAMPLE IN KEIL µVISION

Installing ADuCM355 Keil Pack

Download and install the ADuCM355 device family pack for Keil µVision.

Opening Pack Installer

Open the Keil pack installer to access device and example projects.

RUNNING A GPIO EXAMPLE IN KEIL µVISION (continued)

Copying and Building GPIO Project

Copy the M355_GPIO example project and build it in Keil µVision.

Loading GPIO Project onto ADuCM355

Load the GPIO example project onto the ADuCM355 using the mIDAS-Link debugger.

APPLICATION EXAMPLES

ADuCM355 SDK Overview

Overview of ADuCM355 SDK, including Cortex-M3 and AFE die.

Main Library Files (AD5940.c/h)

Main library files AD5940.c and AD5940.h for firmware development.

Example Projects List

List of example projects including Cyclic Voltammetry, EIS, etc.

CYCLIC VOLTAMMETRY EXAMPLE

Cyclic Voltammetry Measurement

Measure current response to ramp voltage on reference electrode.

AD5940RampStructInit Function

Modifying parameters for ramp voltage, peak voltage, and duration.

Test Cell Setup

Construct a dummy electrochemical cell using 1 kΩ resistors.

EIS EXAMPLE

EIS Measurement Process

Three-step process to measure response current to AC excitation.

Impedance Calculation Equation

Equation to calculate actual impedance using measured values.

EIS Parameters Configuration

Configuring parameters like LpTiaRf, LpTiaRl, and SensorBias in AD5940Main.c.

Running the EIS Measurement

Steps to launch debugger, open terminal, and start impedance test.

CHRONOAMPEROMETRY EXAMPLE

Chronoamperometry Measurement

Measure response current when voltage is stepped on electrochemical cell.

CHRONOAMPEROMETRY EXAMPLE (continued)

M355_ECSns_CapaTest Project

Project implementing chronoamperometric measurement.

AD5940AMPStructInit Function

Modifying measurement parameters for chronoamperometry.

Data Output Format

Results sent to UART including current, voltage measurements.

DC CURRENT EXAMPLE

DC Current Measurement

Measuring current output on the sense electrode with applied bias voltage.

M355_ECSns_SingleWE Project

Project implementing DC current measurement on a single electrode.

Test Setup and Configuration

Connecting 1 kΩ resistor, setting Vzero and SensorBias parameters.

4-LEAD ELECTROCHEMICAL SENSOR EXAMPLE

ADuCM355 Support for 4-Lead Sensors

ADuCM355 supports biasing and measuring 4-lead sensors.

M355_ECSns_DualWE Project

Project configures CH0 for bias and measures current via TIA0/TIA1.

Dual Working Electrode Configuration

Configuring parameters for dual working electrode measurement.

CONNECTING AN EXTERNAL GAIN RESISTOR ACROSS THE HIGH SPEED TIA

High Speed TIA Gain Resistor Options

Programmable gain resistor for high speed current measurement.

External Gain Resistor Connection

Connecting external RTIA resistor across AINO and DE0 pins.

M355_ExternalRTIA Example Project

Example project for setting up high speed TIA with external gain resistor.

AFE DIE WATCHDOG TIMER EXAMPLE

ADuCM355 AFE Watchdog Timer

Watchdog timer on AFE die, independent of Cortex-M3 core.

Windowed Watchdog Mode

Configuring the windowed watchdog mode using M355_AfeWdt project.

Watchdog Refresh Trigger

Watchdog refresh triggered by ASCII Character 1 from PC.

ADuCM355 SYSTEM CALIBRATION

Calibration Routines Importance

Calibration routines ensure high level of measurement accuracy.

HIGH SPEED TIA GAIN RESISTOR CALIBRATION

Gain Resistor Options

Three programmable gain resistor options for the high speed TIA.

Calibration Process Overview

Using high speed DAC and RCAL resistor for calibration.

Determining RTIA Resistor Value

Determining exact RTIA resistor value using known calibration current.

LOW POWER TIA0/TIA1 GAIN RESISTOR CALIBRATION

Low Power TIA Gain Resistors

Independent programmable gain resistor for low power TIA channels.

Calibration Current Generation

Using low power DAC to create calibration current across RCAL resistor.

LPTIA Gain Calibration Example

Project implementing function to calibrate gain resistor for LPTIA.

MASS ERASING A DEVICE NOT RESPONDING TO SWD COMMANDS

Recovering Locked Devices

Recovering devices locked during debug sessions or resets.

Mass Erase Procedure

Steps to mass erase user flash using S3 button and IAR IDE.

ORDERING INFORMATION

BILL OF MATERIALS

Related product manuals