How infineon/mtb-example-cy8cproto-041tp-demo works
Project type and purpose
• This is an embedded-firmware demo for the PSoC™ 4100T Plus (CY8CPROTO-041TP) CAPSENSE™ kit.
• It implements ultra-low-power capacitive-sensing (buttons, proximity, touchpad, ambient-light sensor) and drives LEDs to indicate sensor events, while exposing data to the PC-based CAPSENSE™ Tuner over I2C.
File structure
• Top-level files:
– Makefile, main.c: standard ModusToolbox™ CLI-build firmware project
– deps/: contains middleware (capsense) and PDL driver libraries
– templates/: BSP and project templates for TARGET_CY8CPROTO-041TP
– images/: screenshots for README
• No separate “frontend/backend”: it’s monolithic firmware with layered drivers.
• Configuration files (design.cycapsense, design.modus) live under templates/, used by ModusToolbox™ device configurator.
README for insights
• Middleware: CAPSENSE™ library (capsense driver, MSC hardware interface)
• Drivers: PDL SCB (EZI2C), PWM, system power
• Firmware state machine: Active → ALR → WoT modes
• External tool: CAPSENSE™ Tuner uses I2C via KitProg3
Diagramming recommendations
• Components: use rectangles labeled “MCU: PSoC™ 4100T”, “MSC Sensor Block”, “SCB/EZI2C”, “PWM/LED Driver”, “CAPSENSE™ Middleware”, “Application FSM”, “KitProg3/I2C Bridge”, “CAPSENSE™ Tuner”
• Firmware/middleware in another (e.g., green)
• External tool in a third (e.g., orange)