BK2461使用ADC後,進入睡眠前如何關掉ADC,功耗纔不高的問題

1.關閉使能和關閉時鐘 #define ADC_CLOSE() { ADC_CTL &= _BIT(1); ADC_CLOSE_CLOCK(); } 2.設置爲power down mode模式 ADC_CTL 寄存器的描述。 #define ADC_SETUP(pres,sr,mode,chn,_12bits) { ADC_CTL=(((mode&3)<<6)|((chn&7)<<3)); AD
相關文章
相關標籤/搜索