cancel
Showing results for 
Search instead for 
Did you mean: 

Two Timer channel not working at a time.

deepak972028
Associate
Posted on July 25, 2017 at 21:32

Hello ,Sir/Madam

 I am working on STM8S (STM8S003F3) MCU . This is 20 bit MCU. I So i am using 2 timers TIMER1 CHANNEL2 (on pin no. PC7 ) and TIMER2 CHANNEL1 (on pin no. PD4) and i select ARF0 OPTION BYTE for

TIMER1 CHANNEL2  then TIMER2 CHANNEL1 (on pin no. PD4) does not work , but both are separately  working . so now what is problem occur when we use both at a time .

Thanks
2 REPLIES 2
Posted on July 25, 2017 at 22:56

Suggest posting small code example illustrating the configuration of the Pins and Timer for review

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Artur IWANICKI
ST Employee
Posted on June 06, 2018 at 09:20

Hello,

Once you enabled AFR0 for 20 pin device you have remapped TIM1_CH2 to PC7 but as well TIM2_CH1 to PC5. Please have a look at OPT2, AFR0 description in STM8003 datasheet.

Best regards,

Artur