1)circuit
2)VBAT waveform as below:(Vbat drop to zero keeping 5ms,then return to normal value)
3)After VBAT on motor running, then Vbat drop to zero keeping 5ms,then return to normal value
VBAT,VSUP &VCC waveform as below:
From the above waveform ,we can see VCC unstable for more than 40ms.
How to keep MCU VDDX output stable while VBAT drop 5ms?
if need to increase VSUP input capacitor value & VDDX output capacitor value, although VSUP input capacitor is 220uF and VDDX output capacitor is 10uF?
Hi @JoeZhou01,
AN5084 Hardware Design Guidelines for the S12ZVL Microcontrollers:
You can use the BATS module to have a Low voltage warning interrupt when VSUP drops below a certain level and switch the motor off.
Regards,
Daniel
Customer requirement is as below:
While power drop to zero for 5ms,the motor can not stop working.
From the above waveform, VSUP is more than 3.5V while power drop.
Why VCC fluctuates greatly?
GPIO used, see details as below:
Hi @JoeZhou01,
I don't see any issue in the MCU itself.
Since you have the external pull-down resistors there, the pins are not floating out-of-reset.
The signal that you see on VBAT/VSUP is generated by the motor.
And that is an application issue which out of scope of our support.
If there was no motor, the VSUP voltage would slowly fall towards the ground (depending on the BULK capacitor and the consumption of the MCU) and VDDX would follow.
Regadrs,
Daniel