TIDUFB8 December 2024
Figure 2-3 shows the different events that occur when sampling voltage and current, where the items in green are done by the MSPM0G1106 hardware modules.
New current samples for each phase are ready every OSR, or 1024 modulation clock cycles for this design, thus resulting in 4000 samples per second over the SPI bus to MSPM0+ MCU. Once new samples are ready, the DRDY pin causes a GPIO interrupt on the MSPM0+ MCU, which triggers the Port ISR, and the background process is run within the Port ISR.
Figure 3-4 shows the background process, which mainly deals with timing-critical events in the test software.