TIDUFB8 December 2024
The AMC130M02 device register must be initialized to deliver proper measurement data on all relevant analog input channels. Figure 3-1 is followed at every start of the metrology application.
The SPI module of the MSPM0+ MCU is configured as a controller device that uses 4-wire mode. After the SPI 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 AMC130M02:
The MSPM0+ MCU is configured at start-up to generate a port interrupt whenever a falling edge occurs on the 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. Equation 13 shows the definition of the sampling frequency of the ADC.
where
In this design, the CLKIN pin gets Clock from an external oscillator at a fixed frequency of 8.192MHz. The oversampling ratio is selected to be 1024 with the appropriate register setting. The sample rate is set to 4000 samples per second.
This design uses the following AMC130M02 channel mappings: