Hi,
I am making a project where in I am connecting few LEDs with my STM8 Discovery Board (PA3, PD3, PD4) and setting the mode using the on-board button (PB7). The issue I am facing is that I am able to toggle to Flag = 2 (with for loops for phasing the 3 LEDs) but the button becomes...
I want to read PWM signal with an A/D converter. Is it reliable to take 100 samples of adc data and average it out.Im still seeing some spurious values in-between my captured data. What would be a reliable way to acquire precise output?
Hi,
I'm using stm8s903f3 board to generate a PWM of a certain frequency. In the main function I have implemented a If statement to check for a condition and then update the CCR2 value and pass it on to the PWM function that I'm calling in the If loop. There seems to a problem, the CCR2 value is...