Increase Intelligence at the IoT Edge with Self-Calibrating Analog Smart Microcontrollers

By Bill Giovino

Contributed By Digi-Key's North American Editors

As Internet of Things (IoT) applications become more complex, designers of Industrial Internet of Things (IIoT) endpoints are being asked to accommodate more complex computing at the edge. Edge computing on endpoint sensor data is a practical way to reduce network bottlenecks to the IIoT hub. This reduces network traffic while also reducing the computational load at the main hub processor. However, the approach has its drawbacks.

For example, a common IIoT edge application is processing of periodic analog-to-digital converter (ADC) sensor data. For high-precision analog data, the mathematical processing, interpretation, and interpolation of hundreds of ADC data points can significantly load the edge host processor, potentially impacting the performance of the whole network. In addition, high-accuracy ADCs can require self-calibration to be performed in the firmware of the IoT endpoint’s host microcontroller, which can delay all edge processing until the calibration is complete.

This article will show developers how to use precision analog microcontrollers from Analog Devices as smart ADC peripherals. It will explain how the features of these analog microcontrollers make them applicable for use as single-chip data acquisition systems that easily interface to the IIoT endpoint microcontroller and can perform edge processing functions such as ADC data point processing and self-calibration with no performance impact on the main endpoint microcontroller.

Why process analog sensor data at the edge?

As IIoT systems are becoming more complex, so too is the data they need to process. For industrial control applications, valves and some motors are moving from open-loop to closed-loop systems where precision analog sensors must detect minute valve or motor positions. For process control applications, increased processing has led to faster production lines and finer control of temperature, pressure, and actuators in the system.

In process control, the speed of the line (the process) is mostly dependent upon two factors: the mechanical ability of the machines and systems on the floor, and the efficiency of the IIoT networks that control the sensors and actuators in the machines and systems. In some cases, small improvements in process can lead to increased production, but these improvements can be hindered by bottlenecks in the IIoT network. These bottlenecks can be reduced by performing more processing at the edge.

Edge processing at the IIoT endpoint is especially beneficial for processing analog signals. Processing analog data can be simple during the early stages of the IIoT development, but scalability is an issue: later improvements can lead to increased complexity of calculations. Sending all the raw analog data over the network increases network traffic and processing all that data at the network hub processor takes up valuable compute time. For this reason, processing the analog data at the edge is a practical way to make the network more efficient.

Use smart ADCs to process analog data at the edge

Edge processing of hundreds of samples of ADC data can easily overwhelm the main microcontroller in the IIoT endpoint. For complex analog sensors it’s a smart design decision to have an external ADC that also has its own processing capabilities. This not only takes a significant load off the IIoT endpoint microcontroller, but also makes self-calibration of the ADC easier.

For high-performance capture and processing of ADC data, Analog Devices has a line of precision analog microcontrollers. The ADuCM360BCPZ128-R7 precision analog microcontroller uses an Arm® Cortex®-M3 to control two 24-bit sigma-delta ADCs (Figure 1). The ADCs are capable of capturing 4 kilo-samples per second (kSPS) of analog sensor data. The ADuCM360 also has a 12-bit digital-to-analog converter (DAC) for generating accurate voltages for self-calibration. The microcontroller can operate from 1.8 to 3.6 volts and contains an internal 32 kilohertz (kHz) oscillator and an internal 16 megahertz (MHz) oscillator, reducing component count in space-constrained systems.

Diagram of Analog Devices ADuCM360 complete low-power data acquisition system on a chipFigure 1: The Analog Devices ADuCM360 is a complete low-power data acquisition system on a chip with an Arm Cortex-M3 core, two 24-bit sigma-delta 4 kSPS ADCs, and a 12-bit DAC. (Image source: Analog Devices)

The ADuCM360 has 128 kilobytes (Kbytes) of flash memory and 8 Kbytes of SRAM. A significant advantage of the ADuCM360 is that the flash memory locations can be written to directly, similar to writing to SRAM. This allows the firmware developer to easily partition blocks of the flash memory as program memory and also as EEPROM. In a data acquisition system, this allows the EEPROM partitioned blocks to be used to store ADC calibration data.

The flash supports direct 32-bit erase and writes (16-bit and 8-bit erases and writes are not supported). The ability to write 32 bits at a time saves significant power in battery-powered applications, as flash write and erase operations draw a lot of current. This is a significant low-power advantage over flash microcontrollers that can only write and erase one block or page at a time.

The flash memory also supports conventional flash erase commands such as page erase, and mass erase of the entire flash memory array. With these capabilities, developers can easily write subroutines that can update the firmware based on commands sent over the serial port from the host microcontroller in the IIoT endpoint. This is important: if the ADuCM360 was unable to easily update its firmware through a serial port, it would severely limit its flexibility in a data acquisition system, as the capability to update the firmware controlling the ADC is just as important as the ADC itself.

An efficient single-chip data acquisition system

Both 24-bit ADCs are connected to an input multiplexer that supports a total of 11 single-channel or six differential inputs. There are four internal channels that can monitor the internal temperature sensor as well as monitor the output of the 12-bit DAC, and an internal low-drift bandgap reference. These can be used to perform a self-calibration of the ADCs. The DAC can be programmed to output a series of voltages which can be read by each of the ADCs. The ADCs can also sample the internal bandgap reference voltage. Firmware can process these readings so the ADCs can be calibrated over temperature, and the calibration constants stored in the EEPROM.

When used as a single-chip data acquisition system, the ADCs can be programmed to take continuous samples of analog data as fast as 4 kSPS. An 11-channel direct memory access (DMA) controller can transfer that data to SRAM. Firmware can then apply the calibration constants stored in EEPROM to modify the data and correct for temperature if necessary. Firmware can then process the data as required by the application while the DMA transfers additional ADC data to SRAM.

Once data processing on the stored ADC data is complete, the result can either be sent to the serial interface to be transferred to the IIoT endpoint microcontroller, or if multiple data samples need to be transferred, the DMA can bulk transfer the data to the serial interface. In this manner, an efficient data acquisition system can sample and DMA transfer one set of ADC data to SRAM, process a second set of ADC data, and DMA transfer a third set of ADC data to the serial interface, all at the same time.

The analog input signals can be amplified with a programmable gain amplifier (PGA) that can be set to powers of 2, supporting gain values of 2, 4, 8, 16, 32, 64, and 128. This allows the amplification of very small voltages for more accurate ADC sampling.

While additional features include a 16-bit six-channel pulse width modulation (PWM), 19 general purpose I/Os (GPIOs), two 16-bit general-purpose timers, a 32-bit wakeup/watchdog timer, and an external interrupt system, it’s important to keep the application firmware focused on supporting its main purpose of ADC capture and data processing. Tasking the ADuCM360 to perform additional functions not related to its main purpose of analog data capture can easily lead to feature creep that interferes with that purpose, while also complicating firmware updates.

Ultra-low-power features and characteristics

Despite the high-end analog features of the ADuCM360, it is still capable of low power consumption under high performance conditions. In normal operating mode, the Cortex-M3 core draws just 290 microamperes (µA)/MHz. With a system clock of 0.5 MHz, both ADCs taking samples, all timers running, and a PGA gain of 4, when accessed from the SPI interface the microcontroller draws only 1 milliamp (mA). This is with the input buffers off, as the buffer voltage storage adds to the power drain. When in hibernate mode with only the wake-up timer running, the microcontroller draws a mere 4 µA. This makes the ADuCM361 appropriate for battery-powered IIoT endpoints.

For less complex applications that do not require the speed of two ADCs, Analog Devices offers the ADUCM361BCPZ128-R7, which is the same as the ADuCM360 except it has only one sigma-delta 24-bit ADC (Figure 2).

Diagram of Analog Devices ADuCM361 is a complete data acquisition system on a chipFigure 2: The ADuCM361 is a complete data acquisition system on a chip, similar to the ADuCM360 except it has one 24-bit sigma delta ADC. This saves cost and power in applications that do not require the performance of two ADCs running simultaneously. (Image source: Analog Devices)

In applications that do not require the high performance of having two 24-bit ADCs running at the same time, the ADuCM361 lowers system cost and board power consumption. The single ADC is also connected to an input multiplexer that supports a total of 11 single-channel or six differential inputs. It can also self-calibrate using the 12-bit DAC, internal bandgap reference, and temperature sensor.

The ADuCM361 is pin compatible with the ADuCM360. This allows a single pc board layout to be used for both products. This simplifies product development and bill of materials (BOM) as an IIoT endpoint manufacturer can use one pc board for two or more products.

Data acquisition system development

For product development, Analog Devices provides the EVAL-ADuCM360QSPZ evaluation kit (Figure 3). The evaluation board can interface to analog sensors or external voltage sources for firmware development of the ADuCM360 and ADuCM361 analog microcontrollers.

Image of Analog Devices EVAL-ADuCM360QSPZ evaluation kitFigure 3: The Analog Devices EVAL-ADuCM360QSPZ evaluation kit allows evaluation of the ADuCM360 and ADuCM361 analog microcontrollers. It can directly interface to external analog sensors and can be managed by a USB connection. (Image source: Analog Devices)

The evaluation kit is accessed by a host computer running Windows via a USB port. This allows the on-board ADuCM360 to be programmed with target firmware for testing and debugging. The EVAL-ADuCM360QSPZ has all pins of the ADuCM360 available on the pc board, including the serial I/O, so the eval board can be interfaced via I2C, SPI, or UART to a host microcontroller for real-time debugging. The host Windows computer can log the ADC data and can also debug the accuracy of the self-calibration routines.


Many IIoT endpoints used for high-end analog applications such as process control need to do more edge processing on analog sensor data captured using ADCs. The amount of ADC data and the complexity of the edge processing can overwhelm the IIoT endpoint main microcontroller. The main endpoint microcontroller can instead interface via a serial port to an analog microcontroller that is a self-contained data acquisition system. This increases the performance of the endpoint and reduces network traffic, resulting in a more efficient IIoT network.

Disclaimer: The opinions, beliefs, and viewpoints expressed by the various authors and/or forum participants on this website do not necessarily reflect the opinions, beliefs, and viewpoints of Digi-Key Electronics or official policies of Digi-Key Electronics.

About this author

Bill Giovino

Bill Giovino is an Electronics Engineer with a BSEE from Syracuse University, and is one of the few people to successfully jump from design engineer, to field applications engineer, to technology marketing.

For over 25 years Bill has enjoyed promoting new technologies in front of technical and non-technical audiences alike for many companies including STMicroelectronics, Intel, and Maxim Integrated. While at STMicroelectronics, Bill helped spearhead the company’s early successes in the microcontroller industry. At Infineon Bill orchestrated the company’s first microcontroller design wins in U.S. automotive. As a marketing consultant for his company CPU Technologies, Bill has helped many companies turn underperforming products into success stories.

Bill was an early adopter of the Internet of Things, including putting the first full TCP/IP stack on a microcontroller. Bill is devoted to the message of “Sales Through Education” and the increasing importance of clear, well written communications in promoting products online. He is moderator of the popular LinkedIn Semiconductor Sales & Marketing Group and speaks B2E fluently.

About this publisher

Digi-Key's North American Editors