Posted on November 10, 2017 at 07:40
Hello.
I need read temperature from internal sensor. But when i use code from examples, all time i have result more then 30 degrees of Celsius(~1760 - factory calibration value, ~1740 - ADC value in cold st...
Posted on November 10, 2017 at 13:17Yes, temperature channel is selected in different place, and calculated temperature value +-correct change if i heat MCU. My Vref is 3.3V, so i removed Vref coefficient.
Posted on November 10, 2017 at 10:00
uint32_t adc_get_result()
{
return adc_temp;
}
void ADC1_IRQHandler(void)
{
if (ADC1->ISR & ADC_ISR_EOC)
{ // Conversion completed, data in the result register
// Flag is cleared automatically after readi...