stm32f030c8t6 MCU進入低功耗模式

2021-07-04 05:16:17 字數 399 閱讀 6982

1.

sleep 模式

2. stop 模式,在這個模式下,io管腳保持run狀態下的電平,ram保持不變,所以在進入這個狀態之前,先先將io口配置好,,否則可能會有漏電流

3,standby模式下,ram不保持,io管腳進入高阻態,,,啟用就於系統reset

rcc_apb1periphclockcmd(rcc_apb1periph_pwr,enable); //時鐘必須要開啟,在這個陷阱中折騰了好幾天

pwr_backupaccesscmd(enable);   

pwr_wakeuppincmd(pwr_wakeuppin_1,enable); 

pwr_clearflag(pwr_flag_wu);

pwr_enterstandbymode();

STM32F030C8T6低功耗筆記

2018年5月8日 這個晶元的低功耗搞了好久了,剛開始是7ma降不下去,然後是降到了1ma,到現在的200ua,還是有地方沒有弄好,目標是降到50ua左右,目前遇到了問題,進入stop模式的時候降到了110ua,然後會慢慢回公升80ua。這裡先寫一下之前的一些總結。首先進入的是stop模式,因為這個...

STM32F030C8T6串列埠接收不定長資料

usart.c檔案 include usart.h include gpio.h uart handletypedef huart1 usart1 init function void mx usart1 uart init void hal uart enable it huart1,uart i...

STM32F103C8T6 內部 FLASH讀寫

u16 people id 50 假設公司最多50人 u16 people clock t 50 每個人簽到次數 u16 people num 2 人數 define debug define flash size 64 所選mcu的flash容量大小 單位為k if flash size 256 ...