SBOA444 November   2020 TMCS1100

 

  1.   Trademarks
  2. 1Introduction
  3. 2Implementation Block Diagram
  4. 3Hardware Implemenation
    1. 3.1 Analog Inputs
      1. 3.1.1 Voltage Measurement Analog Front End
      2. 3.1.2 Current Measurement Analog Front End
    2. 3.2 MSP432 LaunchPad Connections
    3. 3.3 PCB Layout Recommendations
  5. 4How to Implement Software for Metrology Testing
    1. 4.1 Setup
      1. 4.1.1 Clock
      2. 4.1.2 UART Setup for GUI Communication
      3. 4.1.3 Real-Time Clock (RTC)
      4. 4.1.4 Direct Memory Access (DMA)
      5. 4.1.5 ADC Setup
    2. 4.2 Foreground Process
      1. 4.2.1 Formulas
        1. 4.2.1.1 Standard Metrology Parameters
        2. 4.2.1.2 Power Quality Formulas
    3. 4.3 Background Process
      1. 4.3.1 per_sample_dsp( )
        1. 4.3.1.1 Voltage and Current ADC Samples
        2. 4.3.1.2 Pure Waveform Samples
        3. 4.3.1.3 Frequency Measurement and Cycle Tracking
      2. 4.3.2 LED Pulse Generation
      3. 4.3.3 Phase Compensation
  6. 5Metrology Accuracy Testing
    1. 5.1 Test Setup
    2. 5.2 Results
  7. 6Schematics
  8. 7References

Introduction

As the number of servers and other computer equipment in data centers drastically increases over time, being able to efficiently power multiple equipment becomes critical. To provide power to the large number of equipment in data centers, power distribution units (PDUs) are often used. Similar to a power strip, PDUs distribute the power at its input to its multiple outlets. Each outlet can be used to power a different server or other type of computer equipment. The current drawn from each outlet is measured and, along with the measured voltage, is used to calculate the power drawn from each outlet.

To maximize the number of outlets that can be implemented in a given form factor, it is imperative for the current sensing circuits of the outlet to be compact. Rogowski coils and current transformer current sensors are often relatively large, which in turn, leads to more area being occupied per outlet. An alternative option is to use shunt current sensors, which are relatively smaller than current transformers and Rogowski coils; however, shunts inherently do not have isolation, so they would require extra circuitry that increases the solution size if isolation is required. In addition, the shunt temperature would increase at higher currents. Due to the increase in temperature from operating at high currents and the heat generated by the servers themselves, the accuracy of the shunts could also drift as well since the shunt resistance drifts across temperature.

To address the limitations of the other potential PDU current sensors, a Hall-effect current sensor, such as the TMCS1100, can be used. The TMCS1100 is a galvanically isolated Hall-effect current sensor capable of DC or AC current measurement with temperature stability. The TMCS1100 Hall-effect sensor enables isolated, compact current sensing for PDU applications as well as other end equipment that may require compact current sensing, such as power quality meters.

For maximizing the accuracy of the power measurements, a high-precision ADC, such as the ADS131M08, should be used to measure the output of the TMCS1100 current sensor. The ADS131M08 device is an eight-channel, simultaneously-sampling, 24-bit, 2nd order delta-sigma (ΔΣ), analog-to-digital converter (ADC) that offers wide dynamic range. Using an ADC for the sensing and a separate microcontroller for the calculations provides flexibility when mapping channels. As an example, if it is desired to sense seven outlet currents and one input voltage, the ADS131M08 can support this by connecting one voltage sensing circuit to one ADC channel and seven current sensing circuits to the other seven channels. With a fixed function device that calculates the metrology parameters, typically only a maximum of four currents can be supported. As a result, at least two fixed function devices would be needed to sense one voltage and seven currents. In comparison, only one ADS131M08 device would be needed for this same scenario. Reducing the number of devices needed for PDUs that have a large number of sockets further reduces solution size and cost.

The processing in this design is done by the MSP432P4111, which acts as the metrology calculation microcontroller. This device has an Arm® 32-bit Cortex®-M4F CPU with Floating-Point Unit and Memory Protection Unit, a real-time clock, port mappable GPIOs, an AES encryption and decryption accelerator, and a CRC calculation module.

This application report describes how to use the TMCS1100 Hall-effect current sensor, ADS131M08 precision delta-sigma ADC, LM27762 charge pump, and a metrology calculation microcontroller to design a Class 1 energy measurement system. The results for an example implementation is also shown. The Table 1-1 table shows the key system specifications of this example implementation.

Table 1-1 System Specifications For Example Implementation
FEATURESDESCRIPTION
Selected current sensorTMCS1100 Hall-effect current sensor
Selected ADCADS131M08
Selected microcontrollerMSP432P4111
Number of voltage and current channels1 voltage and 3 current channels (ADC has 8 channels but only 4 channels of ADC used in this implementation)
Accuracy classClass 1
Tested current range0.1–20 A
Selected reference for ADCInternal reference option for the ADS131M08 device
ADS131M08 Clock(CLKIN)8,000,000 Hz derived from the 8.000 MHz crystal that is connected to the XTAL1 and XTAL2 pins of the ADS131M08 device
ADS131M08 Delta-sigma modulation clock frequency4,000,000 Hz (= CLKIN / 2)
SPI Clock8,192,000 Hz derived from 16.384-MHz crystal of the MSP432 (To support this frequency, the LaunchPad™ crystal was changed from 48 MHz to 16.384 MHz)
Oversampling ratio (OSR)512
Digital filter output sample rate7812.5 samples per second
Phase compensation implementationSoftware
Phase compensation resolution0.0090° at 50 Hz or 0.0108° at 60 Hz
Selected CPU clock frequency48 MHz
System nominal frequency (fNOM)50 or 60 Hz (selectable in software)
Metrology parameters measured
  • 1-cycle root mean square (RMS) voltage for detecting sags, swells, and interruptions
  • 10 or 12 cycle RMS voltage, RMS current, fundamental RMS voltage, fundamental RMS current
  • Voltage underdeviation and voltage overdeviation
  • Phase to phase angle
  • Active, fundamental active, reactive, fundamental reactive, apparent , fundamental apparent power and energy
  • Power factor
  • Line frequency with zero crossing indication
Update rate for measured parameters1-cycle for sag/swell RMS voltage readings; 10 cycles(when using 50-Hz nominal frequency) or 12 cycles(when using 60-Hz nominal frequency) for other parameters
Additional boards used for tested
Board power supply3.3-V output from MSP-EXP432P4111 LaunchPad