Skip to main content
MWiel
Visitor II
August 28, 2019
Question

I want to remap TIM1_CH1 and TIM1_CH2 to Port C6 and C7 respectively in an STM8S003F3P device. What do I have to do? Is there any example code available?

  • August 28, 2019
  • 1 reply
  • 833 views

..

    This topic has been closed for replies.

    1 reply

    Cristian Gyorgy
    Associate II
    September 8, 2019

    You just need to program bit AFR0 of option byte OPT2, so write a 0x01 to OPT2.