Low Power Application on SAMC2x Using Harmony v3 Peripheral Libraries: Step 4

Step 4.1: Configure PM and SUPC


Under the bottom left tab, Device Resources, expand Harmony > Peripherals > PM.
Double-click or drag and drop PM to add the PM library (PLIB) to the project graph.



Select PM and configure as shown below.


In standby mode, CPU is stopped as well as the peripherals except those which are configured to run while the CPU is in standby mode. The standby sleep mode provides very low power consumption with little overhead on wake-up time. CPU enters STANDBY mode by executing the WFI instruction and exists in the STANDBY mode when an interrupt is generated.


Under the bottom left tab, Device Resources, expand Harmony > Peripherals > SUPC.
Double-click or drag and drop SUPC to add the SUPC library (PLIB) to the project graph.



Select SUPC and verify the configuration as shown below.


The Supply Controller (SUPC) manages the voltage reference and power supply of the device. It also controls the voltage regulators for the core domain. Voltage regulators need be configured to low power, which helps in reducing power consumption.

Step 4.2: Configure LED and Wake-up test Pins


Open the Pin Configuration tabs by clicking Project Graph > Plugins > Pin Configuration. Go to the Pin Settings tab and configure PA15 (Pin #32) as LED and PA27 (Pin #51) as WAKEUP_TEST.


Next Step >

© 2024 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.