TIDUF27A February 2025 – March 2025 AMC131M03 , MSPM0G1507
The AMC131M03 device registers must be initialized to deliver proper measurement data on all relevant analog input channels. This initialization process is followed at every start of the metrology application as well as each time the metrology calibration procedure is run.
The SPI module of the MSPM0+ MCU is configured as a controller device that uses 4-wire mode (the four chip-select signals CS0, CS1, CS2, and CS3 are automatically asserted high and low by the SPI hardware module). After the SPI module is set up, all interrupts are disabled and a reset pulse on the SYNC_RESET line is sent from the MSPM0+ MCU. Interrupts are then re-enabled and the MSPM0+ MCU sends SPI write commands to the ADCs (first to AMC131M03 for Phase A, then the AMC131M03 for Phase B, then AMC131M03 for Phase C, and finally to AMC131M03 for Neutral) to configure the registers:
The MSPM0+ MCU is configured at start-up to generate a port interrupt whenever a falling edge occurs on any of the four DRDY pins, which indicate that new measurement samples are available.
The ADC modulator clock is derived from the clock fed to the CLKIN pin which gets internally divided by two, to generate the ADC modulator clock. The sampling frequency of the ADC is therefore defined as shown in Equation 3.
where
In this design, the M0_CLKOUT signal of the MSPM0+ MCU has a frequency of 8.192MHz. The oversampling ratio is selected to be 1024 with the appropriate register setting. As a result, the ADC modulator clock for all four ADCs is set to 4.096MHz and the sample rate is set to 4000 samples per second.
For a 3-phase system where each line-to-neutral voltage is measured, at least three AMC devices are necessary to independently measure three voltages and three currents and isolate between any two phases. In this design, the following ADC channel mappings are used in software for the 3-phase configuration: