PM0051 Programming manual How to program STM8S and STM8A