Why Inserting Several NOP Instructions Changes the Power Consumption of an MCU?

Why Inserting Several NOP Instructions Changes the Power Consumption of an MCU?

I recently tested the operating power consumption of an M0+ MCU. The test code used the simplest method, which is to run an empty loop while(1) in the main function. The measured current was 1.11mA, using the KEIL MDK IDE with optimization level 0. When I inserted 3 NOP instructions before the while(1), the measured … Read more