STM32 ADC的使用

本例程測量的是PB0口的電壓 一、配置ADC使用的GPIO口 html void ADC_GPIO_Config() { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE); GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;/
相關文章
相關標籤/搜索