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;/
相关文章
相关标签/搜索