2020-06-15 10:17 AM
Timer 1 work's well without any problem.
the code works properly with stm8s105k4 without any problem.
2020-06-15 03:32 PM
finally I find the answer. I have used a template in IAR and I didn't select stm8s001 in workspace toolbar. I do this and define Stm8s001 in toolchain compiler preprocessor.