想請問我量的是不是總電流?是不是量的方法不對?
但外設全由單片機引腳關閉了,電流不可能有25mA,想求教各位!!!,作者: CY1994 時間: 2018-7-12 12:45
這個電流應該是所有的外設之和,要想單獨測單片機的電流必須斷掉所有外設 當然具體電路具體分析 如果是低功耗 可以通過單片機關掉外設的話 通過程序關掉 這樣測是對的 但你這個情況 要么是電路不是低功耗 要么是程序沒寫好 建議 直接斷開所有外設 只給單片機供電 作者: hayden 時間: 2018-7-12 13:15
如果電路中只有單片機,那就沒錯,至于電流25ma,也不是不可能,畢竟電路中存在可能存在上下拉電阻,它們不是吃素的,此外要做到低功耗,要讓單片機進入掉電模式,IO口設置成浮空輸入等,不是你想的那么簡單。作者: jerry_fuyi 時間: 2018-7-12 13:47
萬用表接電源正極和VCC,然后單片機的穩壓輸入或者VCC不要直接連電源
sleep mode下減小電流有幾種方法,去看數據手冊
其中一條是接口不要接阻性負載,并盡量給一個確定的電位,不要接近VCC/2,會很耗電流
ATmega16A Datasheet: When entering a sleep mode, all port pins should be configured to use minimum power. The most important thing is then to ensure that no pins drive resistive loads. In sleep modes where the both the I/O clock (clkI/O) and the ADC clock (clkADC) are stopped, the input buffers of the device will be disabled. This ensures that no power is consumed by the input logic when not needed. In some cases, the input logic is needed for detecting wake-up conditions, and it will then be enabled. Refer to the section “Digital Input Enable and Sleep Modes” on page 53 for details on which pins are enabled. If the input buffer is enabled and the input signal is left floating or have an analog signal level close to VCC/2, the input buffer will use excessive power. 作者: yzwzfyz 時間: 2018-7-12 20:23
原理圖一畫不就清楚了作者: wangi51hei 時間: 2018-7-13 05:16
單片機處于工作狀態,即使是待機也是有一定的電流的作者: cswcwc001 時間: 2018-7-13 13:45
外設可能也有待機電流,最好是直接去掉外設測量作者: 給你西柚 時間: 2018-7-14 19:40
從電源處把斷開,把萬用表設置在電流檔并串接在電源和MCU的供電腳之間,開機工作,就可以讀到電流值。