cancel
Showing results for 
Search instead for 
Did you mean: 

tim4 not work with STM8S103K3

ekpol
Associate II
Posted on January 07, 2016 at 16:04

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 tim4

Why can't use it, anyone can explain this ?

#stm8s
2 REPLIES 2
jdf25252
Associate II
Posted on January 07, 2016 at 17:14

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.

jdf

ekpol
Associate II
Posted on January 08, 2016 at 04:24

Thanks for quick answer,

if you mean the stm8s.h, i'm already define STM8S103, any guide ?

Thankyou.