Good morning,I have a problem with the adc converter of the microcontroller stm32L053. I am in the prototype state and am using the Discovery Board.I only have the analog AN0 pin connected to ground. When I execute the reading the converter does not ...
Posted on February 15, 2018 at 09:32Hi All,in my application, i need sometimes to stop PWM and Force Output to High.I write this code but seem not run good. void forcePwmActive(void){ TIM_OC_InitTypeDef configOC; HAL_TIM_PWM_Stop(&htim21, TIM_C...
Posted on February 03, 2018 at 16:11Hi all,i'm working with a STM32L053 processor and I'm having some trouble managing the ADC.My ADC is setup to work in discontinuous mode, so i set the channel to convert by using the following function:void system...
I try the calibration and the offset return to 0. The noise is alwais +/-5 digit.I try to implement a mean to 8 sample, but i don't like this solution.
Posted on February 15, 2018 at 13:19Like you can see in the image below, the CCMR1 register have the bit [14:12] set to 101 like required in the datasheet.
Posted on February 15, 2018 at 11:18The TIM Setup is the following:void systemConfig_TIM21Setup(void){ TIM_ClockConfigTypeDef sClockSourceConfig; TIM_MasterConfigTypeDef sMasterConfig; TIM_OC_InitTypeDef sConfigOC; htim21.Instance = TIM21...