STM32F405 internal temperature sensor problem.
Hello everybody
I have a problem with reading of the data from the internal temperature sensor.
I'm using last Cube IDE and Cube MX for configuring the project.
I created the project according to this example: "Get temperature from STM32 internal temperature sensor (simple library)" from refcircuit.(sorry, cannot attach links yet)
But without using of the uart part.
Temperature step depends on the APB2 frequency.
If it 84MHz then sampling period is about 47us with ADC prescaler = 8.
And in this case i see next posible values of ADC output: 961, 963, 993.
These values changes randomly.
If i heat it up, the temperature increasing according to the heater, but with strange steps.
If it 21MHz then sampling period is about 188us with ADC prescaler = 8.
In this case the ADC output is more accurate, and step looks much more better.
It is the strange behaviour for this MCU cause min sampling time must be 10us as in datasheet.
Also I have tried to use code without DMA and interrupts, just launch conversion by software, result is the same.
Does it normal? How can i get an accurate temperature at 84MHz?
Thanks in advance!
