Use C2000 Real-Time MCUs to Develop Cost and Energy-Efficient EV Motor Power Control Designs
Contributed By DigiKey's European Editors
2022-08-19
The rapidly growing technical demands on the power electronics of modern electric vehicles (EVs) and hybrid EVs (HEVs) are increasingly presenting designers with an almost insurmountable task. The higher energy efficiency and power density of powertrain and energy conversion systems are requiring more complex control electronics that incorporate efficient gallium nitride (GaN) and silicon carbide (SiC) technology operating at high switching frequencies. In addition to functional safety, connected vehicles also operate under IT-level security requirements and apply system interventions such as firmware-over-the-air (FOTA) updates.
Faced with tight development budgets and competitive end-product pricing, power electronics designers are ultimately left to find ways to simplify system design, including the deployment of more integrated control solutions.
To assist in meeting these challenges, this article discusses some of the advantages of automotive-compliant, real-time microcontrollers (MCUs) from Texas Instruments’ C2000 series that are suitable for drive controls and power converters in EVs and HEVs. After a brief functional and interface overview of the F28003x controller family, the article provides insight into the implementation of field-oriented control (FOC) in the traction inverter, and hysteretic current control in the on-board charger.
More efficiency for controlled drives and power converters
The remarkable performance of today's EVs and HEVs results in a large part from the electronic control in drives and power converters. Real-time MCUs used in these subsystems employ complex control algorithms and accurate motor models to respond extremely quickly, with a control delay of only a few microseconds (µs). If the real-time closed-loop control is too slow and misses its defined time window, control-loop stability, precision, and efficiency degrade.
To enable the use of proportional-integral-derivative (PID) controllers from standard libraries, vector controllers transform the three-phase stator current system into a two-dimensional current space vector to control magnetic flux density and rotor torque. A fast current loop (blue arrow in Figure 1) should achieve a control delay of less than 1 µs.
Figure 1: For stable control, a real-time MCU must complete all arithmetic operations per loop pass (blue arrow) in less than 1 µs. (Image source: Texas Instruments)
Combining fast vector control such as FOC and a highly efficient internal permanent magnet synchronous reluctance motor (IPM-SynRM), motor drives achieve large torques and up to 96% efficiency compared to the classic direct current motor (i.e., the permanent magnet synchronous motor, or PMSM). Designers can implement variable torque control between the Lorentz force and reluctance force of the IPM-SynRM using a C2000 series real-time MCU and C2000WARE-MOTORCONTROL-SDK software in a time and cost-efficient manner. FOC also makes it possible to control SynRMs with high precision—even without magnets or position sensors—saving system cost and weight, and making the motor more resistant to overload.
For AC-DC power converters operating as EV on-board chargers (OBCs), or conversely as photovoltaic inverters, it is important to keep the power grid free from harmonic distortion. This unclean zero voltage switching (ZVS) can be counteracted with hybrid hysteretic control (HHC) of current. Here, developers can also rely on C2000 MCUs to accelerate circuit design by applying high-performance control algorithms from the C2000WARE-DIGITALPOWER-SDK software repository.
Simplify EV system design using C2000 MCUs
To simplify power system design, Texas Instruments offers the C2000 series real-time MCUs for rapid implementation of complex power controls, facilitating the design of diverse flexible controls thanks to a comprehensive hardware and software development environment. A single C2000 MCU enables vehicle designers to implement smaller, more affordable EV powertrains at half the cost because they are designed to simultaneously handle on-board chargers, DC-DC converters, and traction inverters. Applications such as HVAC, driver assistance systems, and fuel cell control are also conceivable.
System designers can use a single powerful MCU to control multiple power electronics and system components distributed throughout the vehicle. The TI website, particularly the Resource Explorer and C2000 Academy, provides designers with a wealth of support in the form of datasheets, application notes, evaluation boards, reference designs, training videos, and a developer forum.
TI has optimized the F28003x family of real-time controllers specifically for use in EVs in terms of performance, integration, and cost. Offering 240 MIPS of processing power and integrated real-time control peripherals, circuit designers can improve the precision and energy efficiency of their motor control and power conversion systems based on an F280039CSPZ MCU—without the need for an FPGA. Additionally, easy-to-implement GaN and SiC technology reduces switching losses and increases power density due to higher switching frequencies, smaller magnetic components, and a smaller cooling area requirement.
The F28003x series supports Controller Area Network Full Duplex (CAN FD) communications as well as several fast serial interfaces. An integrated flash memory of 384 kilobytes (Kbytes) offers ample reserves for the realization of networked Internet of Things (IoT) functions. On-chip security features such as Secure Boot, an AES encryption engine, JTAG lock, and hardware built-in self-test (HWBIST) ensure networked system interventions such as live firmware and firmware-over-the-air (FOTA) updates are secure against tampering. The MCUs meet ASIL B requirements and have functional safety built in, accelerating both application development time and the necessary certification for market launch. Figure 2 provides an overview of essential functions and interfaces.
Figure 2: Function block diagram of the F280039C MCU showing highlights such as fast processing, flexible communications and sensing options, and security support features such as Secure Boot. (Image source: Texas-instruments)
Ideal for testing and prototyping, the TMDSCNCD280039C is a suitable evaluation board for the F280039C. To operate this controlCARD equipped with an HSEC180 header (180-pin high-speed edge connector), a TMDSHSECDOCK 180-pin docking station is required.
Configurable logic blocks (CLBs) for custom logic
Innovative configurable logic blocks (CLBs) allow programmers to integrate custom logic into the C2000 real-time control system while eliminating external logic, FPGAs, CPLDs or ASICs. By adding a CLB, existing C2000 peripheral modules such as enhanced pulse width modulator (ePWM), enhanced capture (eCAP), or enhanced quadrature encoder pulse (eQEP) can be extended with customer-specific signals and functions.
The logic blocks are configured via C2000 SysConfig, which is available within C2000Ware. It requires the SysConfig tool which is part of TI’s Code Composer Studio (CCS) integrated development environment (IDE) or is available as a standalone tool for use with other IDEs (Figure 3).
Figure 3: CLBs make it easy to implement custom logic into the C2000 real-time control system, eliminating the need for external logic and FPGAs. (Image source: Texas Instruments)
The C2000Ware software and documentation package minimizes development time by providing extensive device-specific drivers, libraries, and application examples, and by also extending peripheral devices using CLBs.
The basis for code development and debugging of C2000 embedded applications is CCS IDE. The tool collection includes an optimizing C/C++ compiler, source code editor, project build environment, debugger, profiler, and many other features. The intuitive IDE provides a single user interface that guides users through every step of application development. Familiar tools and interfaces based on the Eclipse software framework contribute to allowing users to get started quickly.
Clocking and testing
Instead of intervening in the complex clock periphery using CLBs, programmers can use the Embedded Pattern Generator (EPG) for simple test scenarios during programming or validation. The standalone EPG module facilitates the generation of custom pulse patterns (SIGGEN) and clock signals (CLOCKGEN), but it can also capture and reshape an incoming serial data stream or synchronize with generated clock signals.
For debug and the monitoring and profiling of critical CPU buses and device events in a non-intrusive way in a C2000 real-time system, Embedded Real-Time Analysis & Diagnostics (ERAD) is used. The hardware module offers extended bus comparators and system event counters located within the MCU bus architecture (Figure 4).
Figure 4: ERAD provides advanced bus comparators and system event counters for interrupt generation, resides within the MCU bus architecture, and enables debugging of the real-time system in a non-intrusive manner. (Image source: Texas Instruments)
ERAD can independently generate system-level interrupts and flags and feed them into other peripherals such as the CLB.
Implement FOC engine controls faster using C2000 MCUs
The implementation of the variable torque control of an IPM-SynRM using a vector control is complex. Depending on the speed and load torque, the algorithm must control the offset angle between two rotating coordinate systems. Thus, the rotor can electrically lead or lag the rotating stator magnetic field by up to ±90° through phase-shifted control, allowing variable operation between RM and PMSM. The complex control of magnetic flux density and rotor torque can be implemented quickly using TI's Motor Control Software Development Kit.
The software, based on decades of combined expertise, includes firmware that runs on C2000 motor control evaluation modules (EVMs) and TI designs (TIDs). Two key function libraries for vector control are InstaSPIN-FOC (FOC motor controls without encoders) and DesignDRIVE (FOC motor controls requiring encoders).
Key features of InstaSPIN-FOC:
- Sensorless torque or velocity FOC
- Flux, angle, speed, and torque (FAST) software observer for rotor estimations
- Motor parameter identification
- Observer and torque control loop automatic tuning
- Premium performance for low speed and highly dynamic applications
A special feature of the FOC control loop is the adaptive FAST algorithm. This automatically determines flux density, current angle, speed, and torque from the phase voltages and currents (Figure 5). Thanks to automatic identification of the motor parameters, designers can quickly get a new motor up and running and rely on the automatic system for fine-tuning of the control loop.
Figure 5: A special feature of the FOC control loop is the adaptive FAST algorithm, which automatically detects flux density, current angle, speed, and torque. (Image source: Texas Instruments)
Key features of DesignDRIVE:
- Sensored velocity or position FOC
- Position feedback: Resolver, incremental and absolute encoders
- Current sense techniques: Low-side shunt, in-line current sampling, and sigma-delta filter demodulation
- Fast current loop (FCL): Optimized software library that takes full advantage of hardware resources to accelerate the sampling, processing, and actuation of the system to achieve the highest control bandwidth for a given PWM frequency in servo control applications
- Real-time connectivity examples
Application example 1: One MCU controls traction inverter and DC-DC converter
Automotive manufacturers tend to merge the three distributed system components into one chassis and minimize the number of MCUs to reduce system cost and complexity. However, this requires an MCU with high real-time control performance to manage all three. To address this, TI's TIDM-02009 reference design demonstrates the combination design of an EV/HEV traction inverter and a bidirectional DC-DC converter controlled by one single F28388DPTPS real-time MCU (Figure 6).
Figure 6: Only one C2000 MCU card of the control board (bottom left) controls the traction inverter (top left) and DC-DC converter (right). (Image source: Texas Instruments)
The traction inverter uses a software-based resolver-to-digital converter (RDC) to drive the motor to a high speed of up to 20,000 revolutions per minute (rpm). Its power stage consists of a six-way power module based on SiC FETs, driven by a TI UCC5870QDWJRQ1 intelligent gate driver. A state-of-the-art PWM module with integrated slope compensation in the comparator subsystem (CMPSS) generates the PCMC waveform. The voltage sensing path uses TI’s AMC1311QDWVRQ1 extra-high-isolation amplifiers with 2 volt inputs, and the current sensing path uses TI’s AMC1302QDWVRQ1 extra-high-isolation precision amplifiers with ±50 millivolt (mV) inputs.
The DC-DC converter uses peak current mode control (PCMC) technology with phase-shifted full-bridge topology (PSFB) and synchronous rectification (SR). Its bidirectionality has the advantage that the converter pre-charges the DC bus capacitor, eliminating the need for current-limiting relays and series resistors. The CAN FD-based interference-resistant communication is provided by the integrated TCAN4550RGYTQ1 controller transceiver module.
Application example 2: Efficient bidirectional 6.6 kW AC-DC converter
For relatively high-power outputs, the PMP22650 represents a GaN FET-based reference design for a bidirectional single-phase AC-DC converter handling 6.6 kilowatts (kW) of power. The charger OBC can charge the traction battery with power from the grid and, conversely, pre-charge the DC link capacitors. The device converts 240 volts AC at 28 amperes (A) on the primary side to 350 volts DC at 19 A on the secondary side.
A single F28388DPTPS MCU controls the two-phase totem-pole power factor corrected (PFC) link operating at a 120 kilohertz (kHz) switching frequency, and a full-bridge CLLLC (C = capacitor, L = inductor) topology followed by synchronous rectification. The CLLLC converter uses both frequency and phase modulation for output regulation, and operates at a variable frequency from 200 kHz to 800 kHz.
In Figure 7, the matching TMDSCNCD28388D controller card (center) controls the primary-side PFC intermediate circuit (left) and the secondary-side full-bridge CLLLC converter with synchronous rectification (right). The schematic of this design is shown in Figure 8.
Figure 7: The TMDSCNCD28388D controller card (center) controls the primary-side PFC link (left) and the secondary-side full-bridge CLLLC converter with synchronous rectification (right). (Image source: Texas Instruments)
Efficiency of up to 96% at full power and an open-frame power density of 3.8 kW/liter are made possible by the use of newly developed LMG3522R030-Q1 high-speed GaN FETs. The power factor is 0.999 with less than 2% total harmonic distortion (THD). An alternative to the LMG3522 is the LMG3422R030RQZT GaN FET, also automotive qualified, with a 600 volt switching voltage and an Rds(ON) of 30 milliohms (mΩ). It also integrates the gate driver, overload protection, and temperature monitoring.
Figure 8: Circuit topology of the OBC consisting of the PFC intermediate circuit (left) and the secondary-side full-bridge CLLLC converters with synchronous rectification (right). (Image source: Texas Instruments)
A special feature of this AC-DC converter is the HHC, which significantly reduces zero-crossing distortion by emulating the voltage across the resonant capacitor. The test results also show better transient response, and the design of this control loop is also simpler than single-loop voltage control.
The example of a photovoltaic inverter shows how effectively HHC reduces distortion of the bridge switching transistors at zero crossing (Figure 9, left), thus eliminating emission as well as distortions on the power grid. The high 7.8% THD of the 3rd harmonic on the sinusoidal grid voltage (Figure 9, top right) is reduced to 0.9% by using HHC (Figure 9, bottom right).
Figure 9: HHC can significantly reduce the distortion of the bridge switching transistors at zero crossing (left) and thus eliminate THD. The high 7.8% THD of the 3rd harmonic on the sinusoidal line voltage (top right) is reduced to 0.9% (bottom right) by using HHC. (Image source: ietresearch.onlinelibrary.wiley.com)
Incidentally, the circuit design of this 6.6 kW DC-DC converter is based on TI's TIDA-010062 reference design, while the C2000WARE-DIGITALPOWER-SDK, mentioned earlier, facilitates the design of such power converters.
Conclusion
Texas Instruments’ C2000 series real-time MCUs can tackle almost any control task in automotive power electronics. The application of these MCU ecosystems enables system design in a time and cost-efficient manner by aggregating and jointly controlling what would typically be distributed system electronics using powerful real-time MCUs.
As shown, intelligent GaN and SiC power drivers are relatively easy to implement. Extensive library functionality and fully documented, pre-certified reference designs facilitate the implementation of more efficient FOC motor control and HHC control of converters.

Disclaimer: The opinions, beliefs, and viewpoints expressed by the various authors and/or forum participants on this website do not necessarily reflect the opinions, beliefs, and viewpoints of DigiKey or official policies of DigiKey.