Skip to main content
Visitor II
July 25, 2017
Question

Two Timer channel not working at a time.

  • July 25, 2017
  • 2 replies
  • 755 views
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
    This topic has been closed for replies.

    2 replies

    Graduate II
    July 25, 2017
    Posted on July 25, 2017 at 22:56

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

    ST Employee
    June 6, 2018
    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