User Activity

STM32L152 has 12-bit ADC. How to convert the ADC's digital value into Volt, if there is a 'Vref' reference voltage, and Vref- is grounded? I met two common solution for such ADC conversion:(1) V = CODE / 2^n * Vref(2) V = CODE / (2^n -1) * Vref(CODE ...
From the function name of 'HAL_GetTickFreq()' function, I expect that it returns tick frequency in Hz.But I experienced that it returns tick period in milliseconds. If tick frequency is 1000 Hz, then it returns 1, that value comes from HAL_TICK_FREQ_...
Kudos from