Power Data with Program Counter (PC) Mode
The Power Data with Program Counter (PC) mode provides power samples consisting of a timestamp, voltage, and current, on an update of the project’s functions.
1
Select Trace and Profiling Category
In the Project Properties window, click the Real ICE category and select Trace and Profiling from the Option categories drop-down menu.
2
Select and Enter Setup Data
In the Trace and Profiling option category, make selections as stated below:
- Under Target Power Sampling Selection, select Power Data on PC Update Only from the list.
- Under Power Measurement, select Target Board (1mA - 1A). To measure the power consumption of only the microcontroller, see Device Power (CHB) Setup.
- Under Target Power Sampling Interval (in microseconds), enter a value.
- Under How/When PC is to be Provided, select At Function Entry and Exit.
3
Accept Settings
Click Apply if you want to select additional power settings, or select OK to close the Project Properties window.