AnsweredAssumed Answered

Routing Interface (RI)

Question asked by weyers.wynand on May 7, 2013
Latest reply on Jun 10, 2013 by VincentC
I am using the STM8L151C6T6. I would like to route PD6 to TIM1 Input Capture IC2. The following code executes but does not change the RI_ICR1 register value and the routing does not take place either.

    GPIO_Init(PORT_D, P_6, GPIO_Mode_In_FL_No_IT);
    RI->ICR1 = (uint8_t)0x0A;

Can anybody tell me what I need to do to route pins to TIM1 input capture as per Table 27 of RM0031?

Any help will be greatly appreciated.