PLECS Coder

The Easiest Way to Program Your Microcontroller

  • Graphically program your microcontroller, no hand-coding required

  • Configure PWM, ADCs and GPIOs intuitively

  • Design nested control loops and take advantage of multi-tasking

The PLECS Coder streamlines the process of programming microcontrollers for power electronics and electrical drive applications. Designed to make embedded software development accessible and efficient, the PLECS Coder bridges the gap between control design and hardware implementation. Whether you're an experienced developer or new to microcontroller programming, the PLECS Coder is the fastest way to turn your control schematic into working microcontroller code.

Configure On-Chip Peripherals

With the PLECS Coder, you can easily integrate the microcontroller's on-chip peripherals, such as ADCs, PWMs, and GPIOs, into your control design. Each peripheral is represented by a dedicated block in the schematic. The block dialog enables convenient configuration without the need to dive deeply into the microcontroller’s user manual. This intuitive approach helps to create clear control diagrams and makes it easy to leverage the hardware features common in power electronics applications.

Accurate Offline Models

The peripheral blocks come with accurate models for offline simulation. These models replicate the behavior of the microcontroller's hardware within the PLECS environment, allowing you to test and validate your control algorithms before deploying them. By simulating controls and plant together, you can identify and address potential issues early in the design process. This ensures a smooth transition when the generated code is deployed to the microcontroller.

Fast and Efficient Code Deployment

Time is critical in embedded development, and the PLECS Coder helps speeding up the development process. After generating the code, you can compile, upload, and start execution on your microcontroller in seconds. This enables you to test and refine your control algorithms quickly and accelerate the development and validation cycle.

Interact with Live Data

Once your code is running on the microcontroller, the PLECS Coder allows you to interact with live data in real time. Inspect signals, adjust controller parameters on the fly, and immediately observe the system response from within PLECS. This live interaction facilitates debugging and optimization.

Support for C2000 and STM32

Target support packages for a wide range of microcontrollers are available at no additional cost from Plexim. They include popular devices from families such as:

  • C2000 from Texas Instruments
  • STM32 from ST Microelectronics
  • XMC from Infineon
TI C2000 TSP STM32 TSP XMC TSP

The broad compatibility ensures that you can quickly transfer your design between microcontrollers. If you run out of resources on the microcontroller you had selected you can easily migrate your project to a more powerful one.

Why Choose the PLECS Coder?

  • Time Savings:
    Generate and test embedded code in seconds, drastically reducing development time and effort.
  • Model-Based Design:
    Keep the simulation model of the controller consistent with the deployed code.
  • Real-Time Debugging:
    Monitor and adjust live controller data to fine-tune the system performance.