This page provides a step by step guide to launching and using ADI's new Active Function Model Tool. The AFM simulates crucial part performance characteristics within seconds. Configure operating conditions such as operation modes and sensor biasing/excitation, as well as device features like gain or FIFO. Performance characteristics include noise, histogram, resolution, power consumption, timing diagrams, response plots, and more.
There are a number of software tools and analysis windows available as part of the AD4130-8 ACE software window.
These tools can be access via the System Explorer window:
How to access different software tools and timing diagrams:
The AD4130-8 Sequencer Timer is accessed via the ACE software package:
a. Access the Ace AD4130 Software Plugin as detailed in the AD4130-8 User Guide
a. Click on the “Tools” on the left hand side. An accordion menu will appear.
b. Select “System Explorer” within this “Tools” menu. A System Explorer window will appear on the right hand side.
c. Click on “AD4130-8 Board” and a number of Models will appear.
d. Select “AD4130-8 Sequencer Timing Diagram” for example.
The memory map window allows the user to program and view the parts at a register level or at a bit level.
For more details on the register, select the register(1). A pop up will show up in the bottom of the screen (2). For more detail on the bitfield select the info bottom to the left of the bitfield (3).
The AD4130 ACE Program includes a number of integrated software tools to assist in understanding device functionality.
1. What is the Sequencer Timing Diagram?
The Sequencer timing diagram is one of a number of software tools integrated into our ACE software. The Sequencer Timing Diagram and the FIFO Timing Diagram have been developed to assist users of the AD4130 in understanding the timing around sigma delta ADCs of this type. The Sequencer Timing Diagram updates based on the timing settings selected by the user.
2. How does the user access the Sequencer Timing Diagram?
The AD4130 Sequencer Timer is accessed via the ACE software package:
a. Access the Ace AD4130 Software Plugin as detailed in the AD4130-8 User Guide
a. Click on the “Tools” on the left hand side. An accordion menu will appear.
b. Select “System Explorer” within this “Tools” menu. A System Explorer window will appear on the right hand side.
c. Click on “AD4130 Board” and a number of Models will appear.
d. Select “AD4130 Sequencer Timing Diagram”
3. Why is a Sequencer Timing Diagram necessary?
There a number of configurable timing parameters on the AD4130 that dictate timing around the AD4130. The diagrams generate with this tool allow us to see when the part is converting, on which particular channel and when the user needs to read back the data.
4. Where are the configurable settings located and how does the user update the diagram?
The ADC settings are located in the accordion menu on the left hand side within the “Sequencer Timing Diagram Tab” The user can modify the the settings on the AD4130 and update the diagram by clicking on the Run button.
5. What are the main settings that will impact the timing?
5a. Enabling ADC Channels The AD4130 has an on-chip multiplexer allowing a number of channels to be converted upon in a single sequence of conversions. There are 16 channels that can be configured by the user. The analog input signals that are applied to the AIN+ and AIN- for the channel can be selected as well as the setup. The settings that are applied to these channels are refer to as setups.
5b. Configuring ADC Setups The AD4130 allows for up to 8 different setup configurations that can be applied to the channels. The reference, reference buffer and PGA Gain setting will not impact the timing diagram. Within the Setups register contain the settings that have the biggest impact on timing. These are:
5c. ADC Modes
The AD4130 has a number of modes of operation that can be accessed via the Model:
6. How does the user calculate the data throughput rate ?
Digital Filter Latency
When more than one channel is enabled the link between the datasheet ODR and the data throughput rate is complex. This is due to latency of the digital filter when switching channels. The time needed for the digital filters to settle depends on the sync filter type.
In general the higher the filter order the lower the noise but the downside is the number of conversion cycles needed for the filter to settle.
The first conversion of Sync3 filter will take 3 conversion cycles until the digital equivalent to the analog input is reached.
The first conversion of a Sync 4 filter will take 4 conversion cycles until the digital equivalent of the analog input voltage is reached.
There is also the user programable t_settle time that takes into account the mux switching.
How to Calculate our Throughput Rate
Taking an example where all the channels in our system are configured with the same settling value, filter settings and configured to complete only 1 conversion ( no repeat conversion) we can use the information available in our model or in the datasheet to calculate our effective output data rate:
We calculate our output data rate based on the datasheet tables to be 2400/FS for a Sync 3 filter this makes our single channel output data rate to be.
Single channel settled ODR (Hz) = 2400
When we enable more than one channel the initial settling needs to be taken into account and based on our SETTLE_n in this example SETTLE_n = 1 making number of MCLK cycles before the conversion begins after switching channels equal to:
tSETTLE (MCLKs) = 32
There is always a fixed digital post processing time of 28 MCLK cycles that impacts when the data can be read back on the first conversion which can be discounted when calculating our throughput rate due to the time overlap with the settling time as seen in the figure below:
DPP time (MCLKs) = 28
The first conversion on each channel needs to take into account the filter latency. The number of MCLK cycles this takes depends on the filter type. For a Sync3 filter it is 3 times the settled channel conversion time. For a Sync 4 filter it is 4 times the settled conversion time. The latency is due to the settling of the digital filter.
t1ST_CNV_IDEAL + tSETTLE (MCLKS) = ((3 x 32 x 1) + 32) = 128
where MCLK(sec) = 1/76.8kHz
1/76800 x (128) = 600 SPS
If we were converting on only one channel our 1st conversion ODR would be:
f1CNV_ODR(SPS) = 600 SPS
In order to calculate our effective output data rate we divide our f1CNV_ODR1conv_odr by the number of channels we are converting on to get our effective output data rate.
with 3 channels enabled:
Throughput rate = 600/3 = 200 SPS
with 5 channels enabled:
Throughput rate = 600/5 = 120 SPS
How to Calculate the Throughput Rate using the Timing Tool
The sequencer timing diagram in continuous conversion mode or duty cycling mode allows us to calculate our throughput rate.
If we use the timing tool (two sequences shown each with 3 conversions per sequence shown) we see exactly what is happening. We can tell the rate of the conversion on a per channel basis or the throughput rate.
Using the information displayed:
t1ST_CNV_IDEAL + tSETTLE = 1.67ms
1/1.67ms = 600ms
We divide this by the number of channels we have: 600SPS/3 = 200SPS
Throughput rate (SPS) = 200SPS
How to Calculate the Throughput Rate using the Timing Tool through multiple channels with different configurations
We can calculate the throughput rate using the timing tool using. We take the sum of the /RDY falling edge to /RDY falling edge times between subsequent conversions. (t1ST_CNV_ODR in the AD4696-8 datasheet) telling us how often the channel is being sampled. The length of time the conversion is taking place will vary depending on the filter selection as well as oversampling and decimation (FS value) settings but the overall throughput rate is dictated by the total time it takes for all conversions enabled in the sequence.
In all of the examples we are excluding Repeat conversions but when we enable repeat conversions, the timing tool allow us to see exactly what happens visually.
1/ (60.859ms + 80.417ms + 1.244ms) = 7 SPS
Throughput Rate = 7SPS
7. How does the user calculate the amount of time I have to readback FIFO while converting?
The AD4130 includes an on-board FIFO allowing users to minimize the time when their microcontroller is actively reading from the part. The ‘Watermark’ mode is first in mode where data is gathered until a number of samples (a watermark) is reached. The user can continually convert or use in the FIFO in conjunction with /SYNC to kick off conversions. The FIFO when continuously converting needs to be emptied when the interrupt signal goes high. The user has a pre-defined period of time to read back data from the FIFO. The FIFO readback window is a function of the users SCLK frequency. The tool allows the user to vary the SCLK frequency or use a gated clock to inform the user when designing their system that, they need to reduce their watermark level.
The maximum clock frequency when reading the AD4130 is 5MHz but if the user is using a gated clock with delays in between writes, watermark level may need to be reduced to avoid missed conversions. While continuously converting the user does not read the data completely from the FIFO. There maybe be the case where the user is not reading the FIFO quickly enough. If the user attempts to convert while the FIFO is being read, conversions may be ignored if the DOUT is being read. If you continues to read back after this time is exceeded while attempting conversions, the conversions will be discarded. This is because the FIFO is still being read when a new conversion is attempting to take place. The conversion will be lost.
The events window can be opened to display errors. It is accessed under 'Tools'.
The user can select their SCLK Frequency as well as any gating that might delay the clock.
The user can also select their watermark value.
The AD4130 FIFO Timing Diagram Tool will display an error if the clock speed is too slow to read back the data in the calculated readback time.
8. When in duty cycle mode, how can the user calculate the throughput rate?
We can calculate the throughput rate using the timing tool using. We take the sum of the /RDY falling edge to /RDY falling edge times between subsequent conversions. Another option would be to take the sum of the active and standby time. This info tells us how often the channel is being sampled. The length of time the conversion is taking place will vary depending on the duty cycle ration (1:4 or 1:16), the filter selection as well as oversampling and decimation (FS value) settings.
The power calculator allows the user calculate the average power based on the user settings chosen.
It allows the user to choose a supply voltage (1) as well as a battery type (2) where the tool calculated the time it would take to drain the batter when operating the AD4130-8 using the register settings and configuration chosen by the user.
The average power is based on the user settings chosen. The breakdown of this power is also displayed in the Timing Diagram. This allows the user to enable duty cycling and observe the changes in Idd with respect to time.
The Analysis Window is used for making measurements using a physical hardware. An AD4130-8 Evaluation board is needed to capture data. Data is captured by clicking on 'Run Once' or 'Run Continuously'.
The Histogram or Waveform sections (3) display the results of the noise analysis or the waveform for the selected analysis channel, including both noise and resolution measurements.
Labeled “AD4130 Noise” in the system explorer, this window behaves similar to the Analysis window but the results are simulated and not measured. This allows the user to compare simulated to measured results. The buttons used to control are detailed in: Analysis Window
This window allows the user to observe the response of the internal filter based on their filter register settings (including FS value).
This window simulates the step response associated with the analog input ideal step. This shows the input voltage step and settling time associated with the digital filter chosen. Click 'Run' to simulate the step response based on the register settings selected.