Hello,
I have been using mm9z1-638 to develop a BMS device recently and encountered a strange issue.
The problem is as follows:
when I tried to add a delay in a regular task by executing the 'nop' instruction 500 times, it caused the system to fail entering the stop mode. At this point, the current consumption is less than 1mA. This phenomenon almost always occurs. However, when I remove the corresponding delay, everything works fine.
My question is, what is the relationship between using common delay functions in regular tasks and system sleep modes?
Here is my delay function:
delay_ms = 500;
while (delay_ms--)
Nop();