Power Monitor

The Power Monitor for the MPLAB® REAL ICE™ In-Circuit Emulator enables designers to identify and eliminate code that consumes high current, in real time. Used with the MPLAB® REAL ICE™ in-circuit emulator and MPLAB X IDE, this development platform allows users to measure, graphically profile and optimize code power consumption for all of Microchip’s 8-bit, 16-bit and 32-bit PIC® microcontrollers

Operating Principles

The Power Monitor is connected to the MPLAB REAL ICE in-circuit emulator . The target hardware is connected to the Power Monitor / emulator though an ICSP cable. External Power is applied to the Power Monitor. This power is then supplied to the target board though the ICSP programmer/debugger interface.

In DEBUG mode, as the user controls the flow of the application the Power Monitor logs the power consumed by the target board. Using the Power Monitor the user can determine how the individual lines of code effect the power consumed by the target hardware.

System Requirements

When using the Power Monitor:

  • Only the basic debug features of the emulator are available: RUN, HALT, Single Step, and Line Breakpoints are available; advanced features such as trace, data capture, and run-time watch are not supported.
  • The target board cannot draw more than 1 amp from the Power Monitor.

Installation

1

Ensure the emulator is operational and can control the target through the ICSP interface.

2

Connect the Power Monitor to the emulator and the target board as shown in the figure at the top of this page. To do this you will have to remove the ICSP adaptor from the emulator

Block-Diagram-PM.png
Click image to enlarge.

3

Install the MPLAB® X IDE Power Monitor Plug-in

  • From the Tools menu in MPLAB® X IDE select Plugins
  • From the Available Plugins tab select Power Monitor then Install
pm-plugin.png

4

Enable the Power Monitor board

From the Project Properties window select the Power Module from the menu under "Supported Plug-in Board"

pm-enableboard.png
Click image to enlarge.

5

Configure the emulator / Power Monitor to supply power to the target hardware

From the Project Properties window select "Real ICE" under "Categories". Select Power from the pull down menu. Check "Power target circuit from REAL ICE"

ri-power.png
Click image to enlarge.

6

Start the Power Monitor Plugin

From the MPLAB® X IDE Tools menu select Embedded, then Power Monitor

pm-start.png
Click image to enlarge.

The Power Monitor window will open up in the lower right hand side of MPLAB® X IDE

pm-window.png
Click image to enlarge.

Using the Power Monitor

Please refer to the video referenced at the top of this page for sever step-by-step examples of using the Power Monitor. To see the examples, advance the video to the 4:35 point.

Additional documentation on operation is available for other configurations in the "Power Monitor User's Guide".

The Power Monitor (AC 244008) may be purchased at Microchip Direct.

© 2017 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.