Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Power Management Fundamentals II Session 4: Isolated Converters Explained

    What does isolation mean for power topologies? Let's review what galvanic isolation means and go through the terminology and standards. We'll explore isolation...

    Places

    • ADI Academy
    • ADI Webinars
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    • Maximize Your Power Regulator: Key Considerations for Thermal Performance
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ296 about repairing an equation in a digital display

      1. Quote of this month: " When I die, I want to die like my grandfather who died peacefully in his sleep. Not screaming like all the passengers in his...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: Too Much Chatter and Not Enough Talk - Learn the Benefits...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program
    • Analog Dialogue Quiz

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    The Power Problem Inside Every AI Breakthrough: Part 1 of 3

    Artificial intelligence isn’t just changing how we interact with the world; it’s transforming the very hardware that makes it all possible. As AI invades...

     

    Simplifying Stability with EVAL-KW4503Z: Part 1 of 3

    Sensors are all around us. They help our gadgets, appliances, and electronic equipment "notice" what's happening in our environment. Essentially, they...

    Latest Blogs

    • Energy Transfer Considerations in Isolated SMPS: Part 2 of 4
    • Automating LTspice .NOISE Measurements with .STEP and .MEAS Directives: Part 2 of 3
    • ​​Channel Specification: The Key to GMSL Compliance​
    • Understanding Voltage Domain Isolation in Field-Bus Systems
    • Ethernet-APL’s Impact on Functional, Intrinsic, and Cyber Safety
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
Motor Control Hardware Platforms
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Motor Control Hardware Platforms
Motor Control Hardware Platforms
Documents Sample C code for Isolated Inverter Platform (EV-MCS-ISOINV-Z)
  • Forums
  • FAQs/ Docs
  • Members
  • Tags
  • Cancel
  • Documents
  • +ADIMonitor: FAQ
  • +Arduino: FAQ
  • +CM40x: FAQ
  • -Code Examples: FAQ
    • ADSP-CM40x Encoder example
    • ADSP-CM40x PWM example
    • ADSP-CM40x Software Enablement Package v2.0.0
    • ADSP-CM40x SW Enablement Package ver. 1.2.0
    • Getting Started with the EV-MCS-ISOINVEP-Z Platform
    • Sample C Code for EV-MCS-LVDRV-Z (FlexMC LV) platform
    • Sample C code for Isolated Inverter Platform (EV-MCS-ISOINV-Z)
  • +Firmware: FAQ
  • +HPPWM: FAQ
  • +Motor Control: FAQ
  • +Motors: FAQ
  • +PCB Guidelines: FAQ
  • +Platform Schematics: FAQ
  • +Raspberry Pi: FAQ
  • +Specific Products: FAQ
  • +Technical: FAQ
  • +TMCL: FAQ
  • Topic: FAQ
  • Trinamic Customs: FAQ

Sample C code for Isolated Inverter Platform (EV-MCS-ISOINV-Z)

The attached Zip file contains a sample C code project for the isolated inverter platform (EV-MCS-ISOINV-Z) that can be loaded on to an ADSP-CM408 EZkit for development of a motor control application. The sample code contains an open loop Volts/Hertz algorithm that can be run in conjunction with the EV-MCS-ISOINV-Z isolated inverter platform. It has been tested for IAR Embedded Work Bench version 7.4 and with the ADI Software Enablement package ver 2.0. If you are using an earlier version of the ADI SW Enablement Package, and need a code version compatible with this, please submit a request....although it is recommended to use version 2.0. If you are using an earlier version of IAR Embedded Workbench, some of the project settings may not come through and a message regarding 'Broken Options' will be displayed. See the end of this post for the correct Project Options.

Some different options can be enabled using preprocessor defines as shown below. A define that has _ in front of it, such as _NO_POWER_BOARD means that this define is NOT being used, but just stored for easy selection when required by deleting the preceding underscore.


So for instance:

NO_POWER_BOARD = Run the project without the inverter board (this disables trips and expected signals from the power board, and just enables output PWM)

TEKNIC110V = The inverter output is driving a 110-220V 8-pole PM motor

ANAHEIM24V = The inverter output is driving a LV PM motor (associated with the EV-MCS-LVDRV platform)

ABBIM = The inverter output is driving a 4 pole induction motor

WEGIM = The inverter output is driving a 2 pole induction motor


Please note that, if driving a low voltage motor, the dc supply input must be maintained at a corresponding voltage level.  For driving a resistive load, any of the load defines can be used (these just control RPM to frequency ratio, V/f gain setting, and frequency ramp rates, max rpm etc. in manual mode when no GUI is being used. If using the GUI, these settings are all controlled from the GUI).


Instructions on setting up the inverter platform and downloading and using the GUI are found here.


-----------------------------------------------------------------------------------------------------------------------------

Project Options:

If an earlier version of IAR Embedded Workbench is being used some of the Project Options may not be fully represented. In this case, check the following options:


General Options->Target->Device=AnalogDevices ADSP-CM40z-384_2048 (will only be visible after the ADI SWE has been installed). On same tab an FPU must be selected

 

General Options->Library Configuration- Select Use CMSIS and DSP Library

 

C/C++ Compiler->Preprocessor->Additional include directories

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\inc

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\inc\sys

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\src

$PROJ_DIR$\..\Application\

$PROJ_DIR$\..\MotorControl\

$PROJ_DIR$\..\System\

$PROJ_DIR$\..\ADIMonitor\

$PROJ_DIR$\..\Measure\

$PROJ_DIR$\..\Communication\

$PROJ_DIR$\..\Protection\

$PROJ_DIR$\..\ScalarControlAlgorithm\

$PROJ_DIR$\..\ADIMonitorLibrary\inc\

 

On the same tab: Defined symbols

As described above

 

Linker->Config->Select Override default and enter

$PROJ_DIR$\CM40z_384_2048_copy_to_SRAM.icf


Linker->Library->Additional libraries

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\lib\iar\debug\libdrv40z.a

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\lib\iar\debug\libosal40z_noos.a

C:\Analog Devices\ADSP-CM40x\CM403F_CM408F_EZ-KIT\lib\iar\debug\libssl40z.a

$PROJ_DIR$\..\ADIMonitorLibrary\lib\ADI_Monitor_Library.a

 

Linker->List- Select Generate linker map file

 

Options->Debugger->Download- Select Use flash loader

Options->Debugger->J-Link/J-Trace->Setup -Select Connect during reset

Options->Debugger->J-Link/J-Trace->Connection - Select SWD

Attachments:
2318.EV-ISOINV_v003_c.zip
Tags: adsp-cm40x gate drive Code Examples adum4223 ad7403 motor control hardware motor control Show More
  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved