Lesson 01: PSoC 5LP Structures

The Infineon (Cypress) PSoC 5LP microcontroller offers a unique architecture that utilizes various structures to facilitate programming and optimize performance. Understanding these structures is crucial for effectively developing applications on this platform. Here's a detailed breakdown:

  1. Core Structures:
    • ARM Cortex-M3 CPU: The PSoC 5LP core is built around a 32-bit Arm Cortex-M3 processor, which is responsible for executing your program code. This CPU interacts with other structures through its registers and buses.
    • Memory Map: The PSoC5LP features a unified memory space, meaning both program code and data reside in the same Flash memory. This simplifies address calculations and eliminates the need for separate memory banks.
    • Clock System: The microcontroller has multiple internal and external clock sources, allowing you to configure various peripherals and modules for efficient operation.
  2. Programmable Logic:
    • Universal Digital Blocks (UDBs): These programmable blocks are the building blocks for custom digital logic. Through the PSoC Creator IDE, you can configure UDBs as gates, flip-flops, counters, state machines, or even simple CPUs.
    • Digital Signal Processor (DSP): Integrated into the UDBs is a 24-bit fixed-point DSP block optimized for high-performance signal processing tasks. This allows you to implement algorithms like filtering, Fast Fourier Transforms (FFTs), and more.
  3. Analog Peripherals:
    • Analog Front End (AFE): The PSoC 5LP includes a fully configurable AFE with programmable gain amplifiers (PGAs), analog-to-digital converters (ADCs), and digital-to-analog converters (DACs). This enables you to interface with various analog sensors and actuators.
    • CapSense Touch Sensing: This technology allows you to create capacitive touch buttons and sliders without requiring dedicated touch-sensing hardware.
  4. Other Structures:
    • Direct Memory Access (DMA) Controller: The DMA controller efficiently transfers data between memory and peripherals without involving the CPU, improving overall system performance.
    • Interrupts: Interrupts allow peripherals and external events to signal the CPU and trigger specific actions, enabling efficient handling of asynchronous events.
    • Timer/Counter/PWM Modules: These modules provide timing and pulse-width modulation (PWM) capabilities useful for driving LEDs, controlling motors, and performing real-time measurements.

The following figure shows the major components of PSoC 5LP devices. The PSoC 5LP device uses the 32-bit ARM Cortex M3 core.

PSoC5LP Architecture01 s