MTRCKTSPS5744P Resolver Signal Reading

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MTRCKTSPS5744P Resolver Signal Reading

Jump to solution
1,156 Views
ext-rafael_barb
Contributor III

Hello, 

I am using the motor control board MTRCKTSPS5744P and trying to get the resolver signals input in order to obtain the PMSM speed and position using Simulink with the model based design toolbox.
For resolver excitation signal, I am using the timer0 channel 5 as output with frequency of 10KHz (toggling between on and off).

The problem I am facing now is that I am getting some random value via the input for Resolve Sine (Adc0_AN0) and for Resolve Cosine (Adc1_AN0).

Probably it occurs due to the no sincronization between the output timer and the input ADC.

Regarding that, how to make the synchronization between the excitation signal and the ADC inputs in the MBD toolbox?

Kind Regards, Rafael

1 Solution
941 Views
ext-rafael_barb
Contributor III

Hello mariuslucianandrei‌,

In fact the issue was related to the wrong pin selection.

Pack 144-LQFP -> Pin E13 for the eTimer0_Ch5

Pack 257-BGA -> Pin C12 for the eTimer0_Ch5

Sorry about the mistake and thank you for the support.

Rafael

View solution in original post

5 Replies
941 Views
mariuslucianand
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

Is this related with the abhishek.kumar@chassisbrakes.com‌'s post here https://community.nxp.com/thread/506700?

Kind Regards,

Marius

942 Views
ext-rafael_barb
Contributor III

Hello mariuslucianandrei‌,

In fact the issue was related to the wrong pin selection.

Pack 144-LQFP -> Pin E13 for the eTimer0_Ch5

Pack 257-BGA -> Pin C12 for the eTimer0_Ch5

Sorry about the mistake and thank you for the support.

Rafael

941 Views
abhishek_kumar1
Contributor IV

ext-rafael.barbosa@chassisbrakes.com

Please see the link https://community.nxp.com/thread/506700 

This shall help.

Best Regards, 

Abhishek

941 Views
mariuslucianand
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

So let me get this clear: Do you need to synchronize the eTimer output with the ADC? 

If your signal is constant at 10 kHz you can do this easier with the flexpwm. In this case ee provide an example with our toolbox: pwm_ctu_adc_mpc574xP.mdl. You can also find an interesting discussion here https://community.nxp.com/thread/488496

Also, if you need the eTimer please firstly apply this patch: https://community.nxp.com/message/1135102

Waiting for your response,

Marius

0 Kudos
941 Views
ext-rafael_barb
Contributor III

Hello mariuslucianandrei‌,

Thank you for the response.

Yes, the synchronization of the timer and the ADC input with the flexpwm via CTU was performed, however the same issue continues to happen, which is the Resolver Sine and Resolver Cosine random data.

After that, measuring the MTRCKTSPS5744P with the oscilloscope, I could see that the timer output signal is not reaching the resolver. The measurement of "RES_REF" via Jumper J7 (connection pin 2 and pin 3) got a flat signal, instead of the proper timer output signal. Please see the picture bellow:

pastedImage_2.png

Just for effect of comparison, this is the measurement of the proper timer output ("RES_REF" signal) using the default Motor Control software example from NXP:

pastedImage_3.png

Another factor is strange. I got the correct timer output when I try my model in the MPC5744P board (Package 144-LQFP).

Is there any difference for the MBD toolbox implementation of the output timer excitation signal (Timer 0 channel 5) between the MTRCKTSPS5744P package 257-BGA and the MPC5744P package 144-LQFP?

Kind Regards, Rafael

0 Kudos