This reference design can be powered
by J1(up to 16V) and then through an LDO (TLV76133) to output the voltage to 3.3V,
for MCU and ADC power supplies.
The MSPM0G1106 device provides the minimum resources for running the metrology
library and has the required peripherals to interface to the standalone ADCs and the
PC GUI.
The required MCU peripheral modules
include:
- HF Clocking subsystem using external oscillator
- SPI with DMA (data transfer between stand-alone ADCs and MSPM0 MCU)
- UART with DMA (data transfer between external PC GUI and MSPM0 MCU for
calibration and metrology values read out)
- GPIOs (inputs with interrupts or outputs for LEDs and ADCs control)
- RTC (calendar mode based off 32.768kHz from internal LFOSC)
All the previously-listed peripherals
or MCU modules are configured through the TIDA-010960.syscfg file in the MSPM0-SDK middleware, utilizing the graphical SysConfig tool, which enables intuitive MCU configuration changes over a
GUI interface.
- The M0+ clocking scheme is derived from the external 8.192MHz oscillator, which
is feeding the PLL module and is being multiplied and divided with specific
factors to generate the MCLK frequency (the CPU clock speed) of 79.87MHz.
- The SPI bus runs at 8MHz data rate with DMA support using two channels, one for
transmit and one for receive.
- The MSPM0G1106 is configured to communicate to the PC GUI through a non-isolated
UART connection at maximum 115,200 baud with 8N1. The UART driver supports a
bidirectional transfer (two DMA channels are used, one for transmit and one for
receive) with a minimum MCU interrupt load.
- The DRDY lines are wired to GPIO
inputs of MSPM0+ MCU with interrupt enabled on the falling edge. Three MCU GPIO
outputs are needed: the SYNC_RESET line to trigger ADCs, and ACT and REACT
outputs. These pulsed outputs are for the Active and Reactive energy, being
calculated by the metrology middleware and are used to measure the TIDA-010960
accuracy using an external test system, which reads the pulses.
- The RTC module supports calendar mode, which is a common requirement for an
electricity meter. The M0+ MCU internal 32.768kHz LFOSC is used as the clock
source for the auxiliary clock (RTCCLK) of the device.