dear All, i have done a practice with STM32F407 to convert an analog channel. i prepare the configuration and initialization through STM32Cube MX with MDK 5.
i write the bellow program to measure the speed of conversion:
while (1) {
HAL_ADC_Start(&hadc1); HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12,GPIO_PIN_RESET); HAL_ADC_PollForConversion(&hadc1,1); HAL_ADC_Stop(&hadc1);
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12,GPIO_PIN_SET);
}
the frequency of ON/OFF on the GPIOC PIN 12 is about 60 kHz!
why the speed is slow?
regards, Rasool