Hello Community,
I want to develop motor control application software for a MCSPTR2A5775E motor kit with MPC5775E board using the MBDT. Unfortunately, the MBDT is missing critical functions for a standard motor control application. Specifically, I am facing the following problem:
Two essential functions, the evaluation of resolver/speed feedback and generation of the three phase PWM output signals, are realized using the eTPU peripheral. The MBDT does not feature blocks/functions set up the eTPU related functions. This was confirmed by NXP, see answer in an earlier topic:
Hence, I am trying to find a way to create the above functions without eTPU. I want to share with you my approach and to kindly ask the support to answer my questions.
Alternative Solution for Resolver Feedback:
The resolver COS and SIN feedback is normally evaluated through SDADC, as stated in the application note:
Since SDACD is not available, EQADC might be used instead. I would configure the EQADC as follows (example for COS evaluation on channel ANB0):
Question for support:
Alternative Solution for Resolver Excitation:
Resolver excitation is done using ETPUA6 /GPIO120. To bypass the eTPU I intend to write a 10kHz square wave signal directly to the GPIO120 pin (PTD24):
Question for support:
Alternative Solution for Three Phase PWM:
According to the application note the kit uses the following eTPU channels and pins (GPIOM 130...135) for the PWM generation/output:
Since eTPU cannot be used, I scanned the documentation and communities for alternative solutions:
My questions @mariuslucianand:
Thank you so much for reading such a long text and many thanks in advance for help.
Nils
Hello TLin3,
It is great to hear from a peer. Unfortunately, we never succeeded with this and ended up using the C-Code firmware. However, recently we switched to Texas Instruments motor drivers which work excellent with Simulink.
Sorry that I cant help you. We were more than disappointed by the wrong advertisement for this kit and the poor / not existing support.
Best regards
Nils