2016-01-07 07:04 AM
Hello:
I'm write code from STM8S105C4T6 using tim4 basic timer, the code is store in INTERRUPT_HANDLER routine, anythings work.I'm change to use STM8S103K3T6C (smallest) , the interrupt routine don't fire,I change from tim4 to tim1, everythings work.I'm alway read the datasheet of STM8S103, it's also had tim1, tim2 and tim4Why can't use it, anyone can explain this ? #stm8s2016-01-07 08:14 AM
The register map for TIM4 is slightly different in the S103. Check your processor header file to make sure you're using the correct mapping.
jdf2016-01-07 07:24 PM
Thanks for quick answer,
if you mean the stm8s.h, i'm already define STM8S103, any guide ?Thankyou.