AN230938 PSoC™ 6 MCU low-power analog
About this document
Scope and purpose
AN230938 explains the low-power analog blocks of the PSoC™ 62 MCU CY8C62x4 product line and provides ways to reduce the power consumption in analog sensing applications.
Intended audience
This application note explains how to reduce the power consumption in the analog blocks of the CY8C62x4 product line. For information on reducing power consumption at the chip level with other peripherals, and to know the power modes of the PSoC 6 device in general, see AN219528 – PSoC 6 MCU Low-Power Modes and Power Reduction Techniques. This application note also provides basic overview of the analog blocks in the CY8C62x4 product line. For detailed information, refer to the Technical Reference Manual (TRM). If you are new to PSoC 6, see AN228571 – Getting Started with PSoC 6 MCU on ModusToolbox™.
More code examples? We heard you.
To access an ever-growing list of hundreds of PSoC code examples, please visit our code examples web page. You can also explore the video training library here.
Introduction
A typical analog front end (AFE) for a measurement system, as Figure 1 shows, involves the use of opamps for filtering and amplification, an analog-to-digital converter (ADC) for digitization, and a CPU for post processing the results. Battery operated systems deploying AFEs pose a challenge in achieving battery life target. In a typical MCU with opamps and ADC, these are significant contributers of power consumption. It becomes critical, specifically in battery-operated systems, to optimize the power levels.
Traditionally, power cycling is used, wherein the MCU is periodically set to low-power state when no measurement is required and is switched to normal power for measurements, resulting in reduced average current. However, in most cases not all peripherals, nor the CPU, need to be active while the ADC is performing the measurements. The CY8C62x4 device achieves significant power savings by allowing only the analog blocks – opamps, ADC, digital-to-analog converter (DAC) and reference to remain ON or power cycle1 in System Deep Sleep mode and collect the measurement results autonomously while rest of the peripherals, including the CPU, are powered off.
The CY8C62x4 product line is unique among the PSoC™ 6 families because it can perform low-power analog sensing. This application note provides an overview of the CY8C62x4 product line and ways to reduce its power consumption. For the evaluation of power consumption, spreadsheet-based calculator can be used from the AN219528 – PSoC™ 6 MCU low-power modes and power reduction techniques.
Programmable analog features
The CY8C62x4 product line has the following rich set of analog features. For an extensive list of peripherals, see the device datasheet.
Dual opamps
- System Deep Sleep operation with configurable duty-cycling
- Configurable power levels
- Sample and Hold (S/H) circuit (useful with DAC output buffering)
Two 12-bit, differential input SAR ADCs
- Maximum of 2 Msps sample rate in System LP/ULP Power mode and 100 Ksps in System Deep Sleep mode
- Each ADC allows 16 channels (with 13 unique inputs)
- Scan of all enabled channels without CPU
- Reference sources: 1.2V bandgap, VDDA or external
- Simultaneous sampling
- Deep Sleep operation with duty-cycling
- 64-sample FIFO in each ADC
- Dedicated 16-bit timer for trigger
- Sensor for die temperature measurement
12-bit, 500 Ksps DAC
Reference sources: 1.2 V bandgap (buffered through opamp), external input or VDDA
- Output buffered through opamp
- Ability to hold output in System Deep Sleep state
1.2V bandgap reference
- Deep Sleep operation
Dual low-power comparators
- Ultra Low-power (ULP) mode for operation in System Hibernate mode
- Interrupt generation to wakeup the device
- CAPSENSE™ Capacitive Touch
- Self-capacitance (CSD) and mutual-capacitance sensing (CSX)
- SmartSense auto-tuning
Dual analog multiplexer buses
- Interconnects GPIOs and analog peripherals
- Ability to split the buses to make multiple connections
- Deep Sleep clock for operating the SAR ADC
Sourced from either 2 MHz Low-Power Oscillator (LPOSC) or Medium Frequency Clock. For the details of each peripheral, see the Technical Reference Manual.
Differences with other PSoC 6 devices
Table 1 provides a comparison of CY8C62x4 with other PSoC devices.
Feature | CY8C62x4 | Other PSoC 6 devices |
---|---|---|
Number of SAR ADCs | 2 | 1 |
Maximum ADC sample rate | 2 Msps in system LP/ULP mode and 100 Ksps in System Deep Sleep mode | 1 Msps/2 Msps2 |
SAR ADC in System Deep Sleep mode | ✓ | × |
SAR ADC FIFO | ✓ | × |
Dedicated timer for SAR ADC trigger |