几种典型情况测试。用一个TOOL的微型数控电源挂载另一个TOOL来测试功耗,直接TVCC 5.0挂载到另外一个TOOL的5V上。
1、正常运行:
开启LCD(1.3寸)
关闭LCD(1.3寸)
清空所有Flash程序代码:
2、OS的低功耗处理机制:
[C] 纯文本查看 复制代码 void osRtxIdleThread (void) {
/* The idle thread is running
when no other thread is ready
to run. */
unsigned int sleep;
for (;;) {
/* HERE: include optional user
code to be executed when no
task runs. */
sleep = osKernelSuspend(); /* Suspend RTX thread scheduler */
if (sleep) { /* How long can we sleep? */
/* "sleep" is in RTX Timer Ticks
which is 1ms in this
configuration */
/* Setup wake-up e.g. watchdog */
__WFE(); /* Enter Power-down mode */
/* After Wake-up */
sleep = tc; /* Adjust with cycles slept */
}
osKernelResume(sleep); /* Resume thread scheduler */
}
}
|