Robotdyn STM32F303CCT6 ADC conversion time
Posted: Thu Jan 30, 2020 4:21 pm
Im getting too higher ADC conversion time on the STM32F303CCT6 Black Pill Board, around 200-220 us
It can be some clock configurations?
There is any other function other than AnalogRead() that have a better conversion time?
There is some configuration of number of cycles for this reading?
Just for comparison, with STM32F103C8T6 i get about 65-68us of conversion time using the same code:
This is my Platformio.ini:
It can be some clock configurations?
There is any other function other than AnalogRead() that have a better conversion time?
There is some configuration of number of cycles for this reading?
Just for comparison, with STM32F103C8T6 i get about 65-68us of conversion time using the same code:
Code: Select all
float temp1 , temp2, temp3 = 0;
void setup()
{
pinMode(PA0, INPUT);
analogReadResolution(12);
SerialUSB.begin();
}
void loop()
{
temp1 = micros();
temp3 = analogRead(PA0);
temp2 = micros();
SerialUSB.print(static_cast<double>(temp2 - temp1), 4);
SerialUSB.println("us");
delay(500);
}
Code: Select all
[env:robotdyn_blackpill_f303cc]
platform = ststm32
board = robotdyn_blackpill_f303cc
framework = arduino