Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Log In
  • Site
  • Search
  • User
  • Support

    Popular Forums

    • RF and Microwave
    • Power Management
    • Video
    • FPGA Reference Designs
    • Precision ADCs
    • Linux Software Drivers
    • SigmaDSP Processors & SigmaStudio Dev. Tool

    Product Forums

    • A2B
    • Amplifiers
    • Analog Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

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

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Recent Discussions

    • Pluto + GNURADIO frequency change
    • Pluto SDR
    • pluto sdr pyadi-iio continous iq recording
    • attribute error
    • gps-sdr-sim is not working with my ADALM-PLUTO

    Places

    • ADI Education Home
    • ADI Education China
    • ADI Education India
    • ADI Education Philippines
    • StudentZone (Analog Dialogue)
    • Virtual Classroom

    Latest Webinars

    • Optimizing GaN and GaAs RF Amplifier Performance Using Novel Biasing Techniques
    • Improving Switch-Mode Power Supplies Using Noise Cancelling Technology
    • Webinar Accelerate Your Design With a 2 to 24 GHz Wideband Transceiver Reference Design
    • How to Design an Optimized Motion Control System for Intelligent Edge Based Surveillance Camera
    • How to Enhance High Precision Current Sensing Systems
    View All
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes: Taking the right shoes in the dark and in a hurry
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

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

     

    How To Design Fieldbus Agnostic Smart Factory Sensors

     

    You Passed EMC Testing… But Wait, Is There More?

    Latest Blogs

    • The 5 Things You Need to Know about RF Matching Networks
    • Does Reliability Prediction Uncertainty Justify Mandating Two Channel Safety?
    • An Inside Look at 2022
    • Meet the Person Behind the Quizzes
    • Updates Required: Why Newer is Better
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • Partners

    Electronic Design Services - PartnerZone

    • Boston Engineering
    • Calian, Advanced Technologies
    • Colorado Engineering Inc. (DBA CAES AT&E)
    • Clockworks Signal Processing
    • Epiq Solutions
    • Fidus
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.
    • VadaTech
    • Vanteon
    • X-Microwave
    View All
Motor Control Hardware Platforms
Motor Control Hardware Platforms
Documents Sample C code for Isolated Inverter Platform (EV-MCS-ISOINV-Z)
  • Blogs
  • Forums
  • FAQs/ Docs
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • +ADIMonitor: 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)
  • +HPPWM: FAQ
  • +Motor Control: FAQ
  • +Platform Schematics: 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
  • adsp-cm40x
  • gate drive
  • Code Examples
  • adum4223
  • ad7403
  • motor control hardware
  • motor control
  • Share
  • History
  • More
  • Cancel
Related
Recommended
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2023 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2023 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.