A CapSense PSoC brings capacitive sensing and embedded control together in a programmable system-on-chip. For engineers developing operator interfaces or compact control electronics, the CY8C20224, CY8C20324, CY8C20424, and CY8C20524 family combines dedicated sensing hardware with an 8-bit CPU, configurable I/O, memory, and communication resources. This integration can reduce the number of separate components needed for an application, while allowing the on-chip configuration to be tailored to its requirements.
The family is designed for touch-oriented applications such as buttons, sliders, and proximity sensors. Its value is not only the sensing function: the same device can also manage application logic, drive outputs, and communicate with other system components. Understanding how these resources fit together is essential when deciding whether the device suits a particular control interface.
How the CapSense PSoC architecture works
The device architecture has three main elements: the PSoC core, system resources, and a dedicated CapSense analog system. A common system bus and programmable interconnect connect the resources, while an analog multiplexer links GPIO pins to the sensing circuitry. Because the sensing hardware is integrated, capacitive measurements can be performed without adding external sensing components.
The processor is an M8C 8-bit Harvard-architecture core, operating at up to 12 MHz under the specified conditions. The device also includes 8 KB of flash program storage and 512 bytes of SRAM. The configurable structure lets developers combine the required sensing, control, and interface functions in one device rather than selecting only from fixed-function peripherals.
Capacitive touch sensing and interface options
The CapSense block provides sensing and scanning control for capacitive inputs. Depending on the device configuration and application, the family supports up to 25 capacitive buttons, one slider, and proximity sensing up to 10 cm. The datasheet also describes the analog system as supporting capacitive sensing of up to 28 inputs; the available GPIO count varies with package. These figures describe different aspects of the device and should not be treated as a guarantee that every input type can be used simultaneously.
Scanning is specified at a nominal rate of 1 kHz. The device is also described as detecting a finger through acrylic up to 5 mm thick, with EMI and AC noise immunity intended to support reliable sensing. Actual performance depends on the application design, so the source datasheet points designers to signal-to-noise requirements in the relevant application notes. It gives a general minimum SNR requirement of 5:1 unless an applicable note specifies otherwise.
The analog mux connects GPIO pins individually or in combinations to the shared analog bus. Hardware-controlled precharge supports capacitive measurement, while the mux can also provide analog input access from I/O pins and crosspoint connections between pins. These options make pin allocation and configuration important parts of the design process.
Control, communications, and power resources
Beyond touch input, the devices provide as many as 28 GPIO pins, depending on package. GPIOs can be configured with pull-up, high-impedance, open-drain, or CMOS drive modes, and can control outputs such as LEDs. The listed LED functions include fading and strobing, as well as color mixing for RGB LEDs.
Communication resources include an I2C slave and SPI master or slave operation. The datasheet lists I2C speeds of 50, 100, or 400 kHz, and SPI speeds from 46.9 kHz to 3 MHz, with lower rates possible at slower system clocks. A watchdog timer, sleep timer, interrupt controller, internal voltage reference, power-on reset, and low-voltage detection add system-level functions.
The operating supply range is 2.4 V to 5.25 V. Typical current figures in the datasheet include 1.5 mA in active operation at 3.0 V and 12 MHz, and 2.8 µA in sleep at 3.3 V under the stated conditions. An internal oscillator removes the need for an external crystal or oscillator, and the device includes a 3 V low-dropout regulator for I/O regulation. These resources can simplify a design, but current and voltage limits must be assessed against the actual operating mode and electrical requirements.
A configurable development workflow
The described development environment, PSoC Designer, uses configurable hardware components called user modules. The workflow is to select the needed modules, set their parameters, connect them to each other and to pins, then generate configuration code and verify the design through debugging.
- Select: Choose the sensing, communication, or other available user modules required by the application.
- Configure: Set module parameters, such as an I2C address or communication speed.
- Connect: Route signals between modules and assign the required I/O pins.
- Generate and test: Create configuration files and application code, then verify behavior using the development and debugging tools.
The device also supports in-system serial programming, bootloading, and partial flash updates, which provide options for programming and updating firmware. Flash endurance and programming conditions should be checked against the device specifications when planning update strategies.
Design considerations and practical implications
Package selection affects the number of available GPIOs and the pinout, so the sensing layout, communications, and other I/O needs should be considered together. Engineers should also validate sensing performance in the intended mechanical and electrical environment, including the overlay material and the signal-to-noise requirements noted in the application guidance. Supply voltage, CPU frequency, output loading, and sleep behavior likewise need to be evaluated using the applicable electrical specifications.
The CY8C20x24 family illustrates an integrated approach to touch-interface design: a dedicated capacitive sensing block works alongside a programmable controller and system resources. For applications needing buttons, a slider, or proximity sensing together with embedded logic and basic communications, that combination may offer a compact design path. The practical decision depends on matching the configured resources and package to the interface, power, and electrical requirements—and checking the latest device documentation before committing to a design.