https://neosarchizo.github.io/posts/using-pwm-on-stm8/