I am trying to measure the power consumption of assembly instructions such as LDI. I am putting the instructions between high_trigger() and low_trigger() in simpleserial-base.c. I have tried LDI with different immediate values. Here are some snippets of the codes and their corresponding plots starting from sample 0:
Question1: Why is the trace pattern the same between samples 0 to 14 for all the 3 codes? Isn’t the Scope supposed to capture the trace starting from sample 0 or there are other events happening before it really starts capturing the first assembly instruction? Where is the starting point of the first instruction?
Question 2: The Ascending and Descending actually refer to the number of 1’s I am using in the immediate value since I guess the more 1’s you have, the more consumption there will be. But I don’t quite see the pattern. How should these traces be interpreted?