Measure and summarize the low-power consumption -.
It is very important to achieve ultra-low power consumption of the CC2541:
Let's summarize the implementation methods:
1. When a timer is running, it will always run at PM2 and the current is around 300uA. When no timer is run, it will reach PM3, and the current will be less than 10uA. This timer refers to the osal timer. For example, if osal_start_timerEx (keyfobapp_TaskID, KFD_TOGGLE_BUZZER_EVT, 2000) is started, but it is not time: it must be noted that the low power consumption in keyfob always fails to reach, this is because a timer for querying power has been running: osal_start_timerEx (keyfobapp_TaskID, KFD_BATTERY_CHECK_EVT, BATTERY_CHECK_PERIOD); comment it out and it will enter pm3. The current is less than 10uA. Therefore, it is unrealistic to enable a timer when you want to reduce power consumption. 2. If there is an external interruption, for example, the switch quantity, such as the key, must be fixed, and must be interrupted with the descent edge. Currently, I cannot call the rising edge, in normal cases, low-level input will consume more power. In actual measurement, the low-level input is about UA more than the High-level input. To sum up, in normal cases, PM1 is about to enter PM2. First, confirm that your option compilation macro has set POWER_SAVING and then execute osal_pwrmgr_device (PWRMGR_BATTERY) in the code, the current is still 200uA. What should I do? To enter Pm3, you need to run a timer without osal. For more information, see the provided routine. The attachment routine broadcasts 30 s after power-on. The current is 10mA UA. After amobletool.apk connection is used, the current is less than. At this time, three levels of interruptions have been enabled, namely P0.0, p0.1, and IPv4, amoBleTool.apk receives data with the key. Please observe. The current test method is to concatenate an ammeter on the power supply circuit.
Address for obtaining materials:
Link: http://pan.baidu.com/s/1pJ7IpQj password: cy6z
Get source code and concise Tutorial: http://item.taobao.com/item.htm? Spm = a1z10.1. w4004-5319414070.2.JHwjem & id = 38116104998 amo Single Chip Microcomputer Bluetooth Development Board online shop