Back to Blog

CPLD+MCU-Based 3U Chassis Analog Acquisition Board (AIO-I), Featuring Analog Input, Analog Output, PWM Input, and PWM Output

#单片机#嵌入式硬件

The AIO-I is a 3U chassis analog acquisition board built around a CPLD+MCU architecture, designed for industrial control systems that need simultaneous analog I/O, current-loop signalling, and PWM measurement in a compact, ruggedized form factor. This post walks through the board's architecture, key components, and the design rationale behind its signal chain.

Overview and Target Application

Industrial control racks—particularly those built to 3U CompactPCI or proprietary backplane standards—frequently require a single board that can handle mixed-signal tasks: reading process variables from 4–20 mA current-loop sensors, driving actuators with analog current outputs, capturing PWM-encoded feedback signals, and generating PWM drive signals for motor controllers or valve actuators. The AIO-I consolidates all four functions onto a 220 mm × 100 mm PCB, keeping the assembly weight at 160 g and staying within a standard single-slot 3U profile.

Core Silicon: MC9S08DZ60 MCU and EPM570T-144I3 CPLD

The processor heart of the board is Freescale's (now NXP) MC9S08DZ60, an HCS08-family 8-bit MCU. The DZ60 integrates a 12-bit ADC, multiple serial interfaces including CAN and I²C, and on-chip flash—making it well-suited for embedded data acquisition tasks where low power and deterministic real-time response matter more than raw compute throughput. Its built-in CAN controller directly drives the two CAN channels exposed on the backplane connector, avoiding the need for an external CAN controller IC.

Alongside the MCU sits an Altera EPM570T-144I3 CPLD (Intel MAX II family, 570 logic elements, 144-pin TQFP, industrial temperature grade). In a mixed-signal board like this, the CPLD serves several roles simultaneously:

  • Glue logic and address decoding between the MCU bus and the various analog front-end circuits.
  • PWM capture and generation — the CPLD's logic fabric implements high-resolution timers that are more deterministic than software-managed timers on the MCU, enabling the ±1% accuracy specification across the full 0–20 kHz input range.
  • Backplane interface management — handling handshake and bus arbitration signals that would otherwise consume MCU I/O pins.

The combination of a low-power 8-bit MCU for housekeeping and a CPLD for time-critical digital functions is a classic embedded industrial design pattern: it keeps firmware simple while offloading latency-sensitive logic into dedicated hardware.

Power Architecture

The board accepts four supply rails from the chassis backplane: DC 5 V (digital logic), DC 3.3 V (CPLD core and low-voltage interfaces), and DC ±15 V / DC ±24 V (analog signal conditioning). The dual bipolar rails are essential for the analog front end—precision op-amps handling ±10 V voltage signals or ±25 mA current signals need headroom above the signal range, which the ±15 V and ±24 V rails provide.

The board also re-distributes power outward to field devices: four channels of ±24 V and two channels of ±15 V external outputs. This allows the chassis to power field-side sensors and transmitters directly from the board rather than requiring separate field power supplies, simplifying system wiring.

Analog Input Channels

Four differential analog input channels accept either current signals (−25 mA to +25 mA) or voltage signals (−10 V to +10 V), selectable per channel. The specified accuracy of ±5‰ (0.5%) over the full range is consistent with 12-bit ADC resolution after calibration and offset correction.

In industrial practice, the −25 mA to +25 mA range is a superset of the standard 4–20 mA current-loop convention, allowing both standard two-wire transmitters and bipolar current sources (common in valve position feedback) to connect directly. The ±10 V voltage range covers most process-variable transmitters that use voltage outputs.

The self-test function listed in the specifications typically implies an internal loopback path or a known reference injection that lets the MCU verify ADC integrity and wiring continuity at startup—a requirement in safety-relevant industrial deployments.

Analog Output Channels

Two current output channels provide −25 mA to +25 mA with ±5‰ accuracy. Bipolar current outputs are commonly used to drive proportional solenoid valves, electro-hydraulic servo valves, or process controllers that accept 4–20 mA set-point signals. The ability to source negative current (down to −25 mA) supports symmetric actuator control (e.g., bidirectional valve trim) without needing a separate polarity-reversal circuit.

PWM Input Capture

Three PWM input channels cover 0 to 20 kHz at ±1% accuracy. This frequency range spans the typical output of rotary encoders, tachometers, and duty-cycle-modulated sensor outputs found on brushless motor controllers and HVAC systems. At 20 kHz the CPLD-based capture logic must resolve pulse widths to better than 500 ns to meet the 1% spec—well within the timing resolution achievable in an EPM570 clocked from a standard 25–50 MHz oscillator.

PWM Output Generation

Three PWM output channels operate at a fixed frequency of 1 kHz with adjustable duty cycle and ±5‰ accuracy. The fixed 1 kHz carrier is a common choice for industrial actuator drive: it is low enough for RC-filter smoothing to produce a clean analog-equivalent voltage while remaining high enough to avoid audible noise in electromechanical loads. The MCU writes duty-cycle values to the CPLD over the internal bus, and the CPLD generates the precise gate signals.

Logic I/O and Backplane Communication

Two logic input channels and one logic output channel provide simple on/off signalling—typical uses include fault relay contacts, interlock signals, or panel indicator drives.

On the backplane side, the board presents two CAN interfaces (handled directly by the MC9S08DZ60's on-chip CAN modules) and one I²C interface. CAN is the dominant field bus for industrial chassis communication, providing noise immunity and multi-master capability across the backplane. I²C is typically used for lower-speed housekeeping tasks such as reading on-board temperature sensors, EEPROMs storing calibration coefficients, or communicating with a chassis management controller.

Environmental and Mechanical Specifications

The board is rated for an operating temperature range of −25 °C to +70 °C, consistent with industrial-grade component selection (the EPM570T-144I3 suffix explicitly denotes the industrial temperature grade). The compact 220 mm × 100 mm × 1.6 mm footprint and 160 g weight are typical for a single-wide 3U board in a 19-inch rack chassis.

Summary

The AIO-I board demonstrates a well-balanced architecture for industrial mixed-signal acquisition: a proven 8-bit MCU handles CAN/I²C communication and analog data processing, while a CPLD manages the timing-critical PWM capture and generation tasks. The wide bipolar signal ranges, multi-rail power architecture, and on-board field power outputs make it well-suited for deployment in 3U industrial chassis where sensor conditioning, actuator drive, and backplane communication must coexist on a single compact card.