Code Examples; Modustoolbox™ Software Code Examples; Psoc™ Creator Projects - Infineon PSoC 4000S Manual

4 mcu low-power modes and power reduction techniques
Table of Contents

Advertisement

PSoC™ 4 MCU low-power modes and power reduction techniques

Code examples

7
Code examples
The following projects were designed to show the different aspects of low power modes in both
ModusToolbox™ software and PSoC™ Creator.
7.1
ModusToolbox™ software code examples
The ModusToolbox™ software environment supports two projects:
mtb-example-psoc4-deep-sleep-adc. These projects support all devices supported in ModusToolbox™
software (currently, 4000S, 4100S, 4100S plus, 4100S plus 256k, and 4500S).
To open these projects in ModusToolbox™ software select New application in the ModusToolbox™ software
quick panel. A list of board support packages (BSP) are available to choose from. The BSP corresponds to the
specific device that is being used. When a BSP is selected, a list of code examples that correspond with that BSP
can be chosen, either mtb-example-psoc4-power-modes and mtb-example-psoc4-deep-sleep-adc can then be
selected.
7.2
PSoC™ Creator projects
Three projects are included with this application note for all PSoC™ 4 MCU devices, and one project for PSoC™
4100PS, to demonstrate several of the concepts discussed in this application note. All the source code for each
example is included in its main.c file and is heavily commented. It is recommended that you take the time to
walk through each example's source code to learn the basic operation.
The default target device set for the PSoC™ Creator projects is the CY8C4245AXI-483 device, which is used in
CY8CKIT-042 and CY8CKIT-049 kits. The projects can be easily adapted to kits that use other PSoC™ 4 MCU
devices. You may need to change the pins connecting to external components and device selection. Review the
specific kit documentation for connections and device type.
Do the following to configure the projects for another PSoC™ 4 MCU device:
1. Open the project in PSoC™ Creator.
2. Select the option Device selector from the context menu, as
Application Note
mtb-example-psoc4-power-modes
Figure 11
shows.
22 of 38
and
001-86233 Rev. *I
2021-11-04

Advertisement

Table of Contents
loading

Table of Contents