STM8庫(kù)函數(shù)學(xué)習(xí)筆記之ADC
庫(kù)包含ADC1和ADC2兩個(gè)模塊,為10位逐次比較型,可配置為單次或連續(xù)轉(zhuǎn)換,ADC1包含掃描模式、帶緩存的連續(xù)模式、模擬看門狗模式,具體參照所選器件,以ADC1為例。
本文引用地址:http://m.butianyuan.cn/article/201611/320850.htmvoid ADC1_AWDChannelConfig (ADC1_Channel_TypeDefChannel, FunctionalStateNewState)
使能或禁止指定通道的模擬看門狗
參數(shù):
Channel:
指定通道,可選參數(shù)
ADC1_CHANNEL_0 = (u8)0x00, /**< Analog channel 0 */
ADC1_CHANNEL_1 = (u8)0x01, /**< Analog channel 1 */
ADC1_CHANNEL_2 = (u8)0x02, /**< Analog channel 2 */
ADC1_CHANNEL_3 = (u8)0x03, /**< Analog channel 3 */
ADC1_CHANNEL_4 = (u8)0x04, /**< Analog channel 4 */
ADC1_CHANNEL_5 = (u8)0x05, /**< Analog channel 5 */
ADC1_CHANNEL_6 = (u8)0x06, /**< Analog channel 6 */
ADC1_CHANNEL_7 = (u8)0x07, /**< Analog channel 7 */
ADC1_CHANNEL_8 = (u8)0x08, /**< Analog channel 8 */
ADC1_CHANNEL_9 = (u8)0x09 /**< Analog channel 9 */
NewState:
新的狀態(tài),可選參數(shù)
ENABLE
DISABLE
評(píng)論