FOC Motor Control Reference Design

Supports Booting Patterns that Reside in an External SPI Flash Device

The Field-Oriented Control (FOC) Motor Control reference design comprises a complete RISC-V embedded system integrated with the FOC Motor Control IP. A RISC-V MC CPU core is used in the system to configure and initialize the FOC Motor Control IP registers. The FOC Motor Control IP is built with the combination of a custom register transfer level (RTL) IP core and MATLAB-generated modules. This reference design includes the MATLAB model, which allows you to generate hardware description language (HDL) code using the MATLAB HDL coder. The generated MATLAB HDL modules are instantiated in the FOC Motor Control IP. This reference design also includes a graphical user interface (GUI) that allows the host PC to communicate with the Lattice Certus™-NX FPGA device through the universal asynchronous receiver transmitter (UART) interface.

Features

  • 50-kHz control loop frequency
  • Space Vector Pulse Width Modulator (SVPWM) algorithm
  • 50-kHz pulse width modulator (PWM) switching frequency
  • 5-ns PWM resolution
  • 313-KSPS ADC current sampling rate

Block Diagram

FOC Motor Control Reference Design Block Diagram for Certus-NX


Documentation

Technical Resources
TITLE NUMBER VERSION DATE FORMAT SIZE
Select All
FOC Motor Control Reference Design - Source Code
2/25/2026 ZIP 79.4 MB
FOC Motor Control Reference Design - User Guide
FPGA-RD-02325 1.0 2/25/2026 PDF 1.1 MB

*By clicking on the "Notify Me of Changes" button, you agree to receive notifications on changes to the document(s) you selected.