STM8 Timer 1 and constant current control using ETR
Posted on March 07, 2013 at 13:01 Hi All, I am using the STM8L152 to generate a PWM, with it's duty cycle depending on current flowing through a relay coil. I have achieved this using the ETR input, with the following code: ...