SDAA266B March 2026 – May 2026 MSPM0C1104 , MSPM0C1106 , MSPM0G3507 , MSPM0L1306
The ADC12_0_INST_IRQHandler implements a hardware-based overcurrent protection mechanism using the MSPM0’s integrated window comparator. During initialization, the ADC is configured with a high threshold corresponding to the maximum safe current level (AC_CURRENT_LIMITATION = 3.2V from the current sense circuit). When the sensed current exceeds this threshold, the window comparator generates an interrupt.
The ISR responds by immediately disabling all interrupts (__disable_irq()) to halt normal operation, clearing the period measurements to prevent further gate pulses, and triggering a breakpoint (__BKPT(0)) for debugging. In a production system, this breakpoint is replaced with a more sophisticated fault handling routine that can include status indication, automatic retry logic, or permanent shutdown depending on application requirements.