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
解決済! 解決策の投稿を見る。
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
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
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
ext-rafael.barbosa@chassisbrakes.com
Please see the link https://community.nxp.com/thread/506700
This shall help.
Best Regards,
Abhishek
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
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:
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:
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