1. john137

    stm8s003 timer1 channel2 capture doesn't work

    this doesn't work: TIM1_CCMR2 = 0b01; //its default input channel TIM1_IER = 0b100; //channel 2 capture interrupt TIM1_CCER2 = 0b1; //channel 2 capture TIM1_CR1 = 0b1; //start counter and yet this works with no problem (on channel 1) TIM1_CCMR1 = 0b10; //remap channel 1 on input 2 where ch2...
Top