We are using S12ZVMC128 Kb MCU
What is the deal with GDU / PTU / ADC with respect to STOP mode ?
When the system resumes (wakes up from STOP) the motor has stopped working. We are assuming that some initialization with respect to motor driving modules such as GDU/PTU/ADC is lost when the MCU goes into STOP and wakes up?
已解决! 转到解答。
Hello Manish,
I think the API interrupt is not configured correctly, as the BLDC motor project use their own vector table could be kind of tricky add an interrupt.
I did a quick setup with a BLDC projec but I didn´t find any problem.
In this project the API interrupt is toggle the PS5 LED every 11sec.
To enter in stop mode you need to change the flag variable (flag=1) while debugging.
After API interrupt is driven the motor start to spin again.
Please check it and any question just let me know.
Regards,
Alejandro
Hello Manish,
I think the API interrupt is not configured correctly, as the BLDC motor project use their own vector table could be kind of tricky add an interrupt.
I did a quick setup with a BLDC projec but I didn´t find any problem.
In this project the API interrupt is toggle the PS5 LED every 11sec.
To enter in stop mode you need to change the flag variable (flag=1) while debugging.
After API interrupt is driven the motor start to spin again.
Please check it and any question just let me know.
Regards,
Alejandro
Hello Manish,
For ADC: The ADC need to be idle (no conversion sequence or command sequence list ongoing)
For GDU: When entering in stop mode the GDU module is disable so once you are in run mode you need to enable the GDU module again.
How are you waking up the MCU? are you using a CAN signal or a timer interrupt?
Regards,
Alejandro
Hello,
We are waking up by Timer (API) and also by GPIO interrupt.
We are not 'turning off' ADC before going to sleep but ADC is only used by the Motor loop and code using Command Arrays, and considering that we can successfully sleep it means no ADC interrupts are firing.
Is there any reference code for how to wake up ?