3470 views|1 replies

6555

Posts

0

Resources
The OP
 

Resolver software decoding solution based on C2000 [Copy link]

In the "New Energy Vehicle Industry Development Plan (2021-2035)" (Draft for Comments) issued by the Ministry of Industry and Information Technology, it is proposed that by 2025, the sales volume of new energy vehicles will account for about 25% of new car sales, and the sales volume of new intelligent connected vehicles will account for 30%, and highly automated driving intelligent connected vehicles will achieve commercial applications in limited areas and specific scenarios. New energy vehicles are mainly powered by electricity and driven by electric motors. In order to obtain a better driving experience, engineers often need to know the current angular position and speed information of the motor, and provide corresponding torque and power in the algorithm. The driving environment of automotive applications is complex, and resolvers are sensors that are often selected for use in this application scenario.

Working principle of resolver:
A resolver is an electromagnetic sensor, also known as a synchronous resolver. It is a small AC motor used to measure angles. It is used to measure the angular displacement and angular velocity of the rotating shaft of a rotating object. It consists of a stator and a rotor. The stator winding serves as the primary side of the transformer and receives the excitation voltage. The rotor winding serves as the secondary side of the transformer and obtains the induced voltage through electromagnetic coupling. Usually, the secondary side uses two winding coils, which are placed on the rotor at 90° to each other, as shown in Figure 1.

Figure 1

In actual use, the rotor will rotate coaxially with the motor, that is, the angular speed and position of the rotor represent the corresponding state of the motor. If we apply a sinusoidal excitation signal VR to the stator, the AC energy will generate a magnetic flux Φ through the primary coil. Under ideal conditions, this magnetic flux will generate an induced voltage, VS and VC, on the secondary side. Then, according to Faraday's law of electromagnetic induction, the relationship between VS, VC and the angle Θ is as follows:

From this, we can know that if we know the real-time information of the applied stimulus VR and the obtained responses VS and VC, we can get the angle and speed information according to the above formula. After knowing the basic working principle of the Resolver, in order to obtain the angle and speed information and provide it to the DSP for algorithm reference, we need the following functional circuit resources to assist the Resolver to achieve the expected function:

DAC (Digital to Analog Converter) circuit: provides excitation sinusoidal signal VR. The excitation frequency is usually between 10kHz and 20kHz.

Boost circuit: Increase the voltage amplitude of the excitation signal. Usually the excitation signal received by the resolver is 4Vrms, 7Vrms, etc. At the same time, a common mode voltage needs to be provided to the system during the application process, so it is necessary to amplify the output signal of the DAC to a certain extent.

Excitation amplifier pre-stage circuit: Before the excitation signal output by the DAC is power amplified, it is often necessary to use an op amp to build a circuit to filter the DAC output and apply a common-mode voltage.

Excitation power amplifier circuit: amplifies the excitation signal driving capability. The specific driving capability depends on the specifications of the resolver. Usually 100mA~300mA is required.

Secondary side signal conditioning circuit: filters the rotor-sensed signal VS/VC and conditions it to a signal range acceptable to the ADC.

ADC (Analog-to-digital converter): As introduced in the basic principle, we need to convert the analog signals of VS/VC/VR into digital signals for RDC to calculate the angle and speed.

RDC (Resolver-to-digital converter): Executes the algorithm on the output and sensed digital signals of the rotor and stator, calculates the speed and angle information, and outputs it to the DSP's CPU for motor algorithm reference.

It can be seen that it is not an easy task to implement resolver decoding. TI has extensive experience in automotive and industrial motor solutions and provides a variety of solutions. This blog post will mainly introduce two widely used solutions. The first is a resolver software decoding solution based on the C2000 series DSP, and the second is a highly integrated resolver interface chip solution based on TI PGA411-Q1.


Figure 2 shows the hardware block diagram of the discrete resolver soft decoding based on the C2000 architecture .

Figure 2

Boost circuit: As mentioned above, in order to achieve the driving voltage of the resolver, it is usually necessary to amplify the excitation signal. In the development of electric vehicle applications, a two-level architecture is usually used. First, a 12V (low-voltage lead-acid battery) is converted into a 5V primary power supply. Then a BOOST boost power chip is used to convert 5V into a 15V (7-VRMS Mode) power supply. There are many choices here, and there are not many restrictions for this application. Excellent engineers often combine other applications and requirements in the circuit to find suitable power chips on ti.com. Here we recommend the first-level buck power supply LM63635-Q1 and the second-level boost BOOST power supply TPS61175-Q1.

Excitation amplifier pre-stage circuit: The EMI environment of automotive applications is complex. In order to ensure that the excitation power amplifier circuit is not interfered with, maintain signal integrity and distortion, and increase a certain common mode, engineers often need to use op amps to build excitation amplifier pre-stage circuits. The selection of op amps here mainly requires a wider bandwidth and a higher open-loop gain to ensure that the signal is not distorted. The OPA197 series op amp is recommended here. It has a 10-MHz GBW, and the OPEN-LOOP GAIN can reach 143dB, which can ensure the accuracy requirements of the resolver decoding system.

Excitation power amplifier circuit: The excitation primary coil of the resolver usually has a very low DCR (DC resistance is usually less than 100Ω), so a certain current output capacity is required to drive the resolver, usually 100-300mA. At the same time, in order to make the resolver obtain better accuracy and linearity, a higher SR (slew rate) is also required in the application here. The traditional solution is to use transistors to build a CLASS AB power amplifier circuit, which has a complex circuit, low reliability, and unsatisfactory cost and performance. In response to the design pain points of engineers here, TI developed the ALM2402F-Q1, a dual-channel op amp designed for resolver excitation applications. The ALM2402F-Q1 chip has the following features:

Very high current output capability, supporting up to 400mA continuous current output. Fully meets the needs of various resolvers.
3.4V/us SR. Ensures that the excitation signal is not distorted.
Built-in RF/EMI filter. Works better in complex noise environments such as inverters.
Using ALM2402F-Q1 can greatly reduce engineers' system BOM and improve system reliability. In addition, the current capability and SR provided by ALM2402F-Q1 can meet the needs of most resolvers. ALM2402F-Q1 will also launch products of the same series for resolver applications in the future, so please continue to pay attention to ti.com.

Resolver primary winding input signal and secondary winding output signal conditioning solution: As shown in Figure 3, in typical applications, we need to collect the primary excitation input signal of the resolver and the output signal of the secondary Sin/Cos winding, and convert the differential signal into a single-ended signal to provide it to the ADC for subsequent algorithm processing. Therefore, this part requires the op amp used to have differential signal input capability and in order to obtain a more accurate analog signal, the system requires the op amp to have a lower gain error and offset. In addition, it should be noted that due to the complex electromagnetic environment of automotive motors, in order to obtain more accurate sampling information, the op amp used here must have a higher CMRR (Common-mode rejection ratio). Engineers can go to ti.com to select a suitable op amp according to their application requirements. Here we recommend using TLVx197-Q1, TLC2272-Q1.

Figure 3

ADC, DAC&RDC: TI C2000 integrates a wealth of resources for developers to use. The resources mentioned above include 3 ADCs, 1 DAC, and RDC. In this example, TI C2000 TMS320F28069 is used. The TI C2000 microcontroller integrates up to 4 12-bit/16-bit ADC units and 3 12-bit DACs. The 12-bit ADC has a maximum sampling rate of 12.5Msps. The 32-bit C28x DSP core and coprocessor CLA can be used to implement the resolver decoding algorithm. TI C2000 integrates a wealth of resources for developers to use. Any C2000 product can implement the resolver decoding function, and the specific selection can also be combined with other requirements of the circuit being developed.

TI's discrete soft decoding solution has the advantages of small size, low cost, high accuracy, and flexible design. The powerful performance of TI's DSP C2000 processor can be directly used for motor control algorithms and drive implementation. For the discrete solution's resolver decoding front-end design, TI provides a system reference design, TIDA-01527. Smart engineers can go to ti.com and search for TIDA-01527 to download relevant information about the design.

This post is from Microcontroller MCU
 

6555

Posts

0

Resources
2
 

PGA411-Q1 resolver interface chip decoding solution
Compared to the above-mentioned soft decoding discrete solution, TI also provides a more integrated resolver decoding solution, which can greatly simplify the system solution design. This is the use of TI resolver interface chip PGA411-Q1. The following block diagram shows the resolver decoding solution using TI PGA411-Q1.

Figure 4

It can be seen that only one PGA411-Q1 is used between the MCU and the resolver to complete the work of resolver excitation and decoding. The power chip and op amp chip of the above discrete solution are not needed. This is largely because the PGA411-Q1 is highly integrated for the needs of resolver applications. Let's take a look at the internal resources integrated by the PGA411-Q1, as shown in Figure 5:

Figure 5

DAC circuit: From the block diagram, we can see that PGA411-Q1 has two DACs. One of them is the DAC that generates the excitation sinusoidal signal. This DAC can be configured to generate a 10kHz to 20kHz sinusoidal excitation signal through register configuration. The other DAC can also output the calculated angle information in analog form for engineers to debug.

Boost circuit: PGA411-Q1 integrates a Boost Regulator. It can provide a maximum output current of 150mA. The input of Boost can be shared with the 5-V power rail VCC of PGA411-Q1, and no additional power supply is required. The output of Boost can be adjusted through SPI settings. The voltage range of 4-VRMS is 9.5V-13.5V, and the voltage of 7-VRMS is 13.5V-17.5V.

Exciter Preamplifier and Power Amplifier: PGA411-Q1 integrates Exciter Preamplifier and Power Amplifier. For details, please refer to Figure 6. Using TI's internal Exciter Preamplifier, engineers can set the common-mode voltage of the excitation signal according to the actual application, and then provide it to the integrated power amplifier module of PGA411-Q1 for power amplification. The output current of the Power Amplifier inside PGA411-Q1 can reach up to 145mA, which can meet most resolvers. If engineers find that the resolver you are using needs a larger drive current, it is recommended to replace the resolver. However, PGA411-Q1 also has a solution for application scenarios where the resolver cannot be replaced. Engineers can disable the Power amplifier, and the output of the Preamplifier can be obtained directly from the ORS Pin. You only need to transplant the ALM2402F-Q1 of the excitation power amplifier circuit in the above C2000 solution here and connect it to the ORS. This combination will increase the drive capability to 400mA.

Figure 6

Secondary signal conditioning circuit: As shown in Figure 7, PGA411-Q1 integrates AFE (Analog Front-End). The excitation signal of the resolver and the output SIN/COS signal can be conditioned by the AFE integrated in PGA411-Q1. The gain of AFE can be configured from 0.75 to 3.5 through SPI. The resolution of ADC inside AFE is 10bit and 12bit, which can be set through registers.

Figure 7

RDC (resolver-to-digital converter): PGA411-Q1 has built-in RDC, which can perform TYPE II PI digital loop compensation on the input of AFE and has functions such as automatic offset correction. The calculation results can be output in three formats: Parallel, Encoder, and SPI. It can meet the interface requirements of most DSPs or other processing modules on the market.

In addition, thanks to the high integration of PGA411-Q1, PGA411-Q1 can also perform diagnosis and error reporting functions on various functional modules. As can be seen from Figure 5, PGA411-Q1 has added diagnostic modules to modules such as AFE, excitation amplifier, internal LDO and BOOST, and the status of each module can be read through internal registers. This greatly simplifies the external hardware development and design of engineers. In addition, PGA411-Q1 is a device developed in accordance with the ISO26262 process, customized for functional safety projects, and can provide complete functional safety documentation. TI also has some system solution designs based on PGA411-Q1 for R&D engineers to refer to, TIDA-07507, TIDA-00796. Please click on ti.com to search for the corresponding design code and download relevant information.

The discrete resolver decoding solution of C2000 has a more advantageous system cost, a more flexible solution, and strong scalability. The resolver decoding solution based on PGA411-Q1 has a higher degree of integration and rich diagnostic detection and protection functions. Many excellent engineers use both solutions at the same time in the design of functional safety projects for redundant design. Regardless of the solution, TI provides detailed reference materials and strong technical support. Please continue to pay attention to ti.com.

References:

[1] New Energy Vehicle Industry Development Plan (2021-2035)

[2] TIDA-01527: http://www.ti.com/lit/ug/tidudp0/tidudp0.pdf

[3] ALM2402F-Q1 datasheet: http://www.ti.com/lit/ds/symlink/alm2402f-q1.pdf

[3] PGA411-Q1 datasheet: http://www.ti.com/lit/ds/symlink/pga411-q1.pdf

This post is from Microcontroller MCU
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list