2025-04-07 6:01 AM
I try to combine the enocer mode of TIM1 with a encoder clock period measument using TIM8. The RM0456 (for U5) mentions this in the end of chapter 54.3.25 under the heading "Encoder clock output".
TIM1 works fine and counts up and down according to the encoder signals. Now I want to measure very low speeds where encoder pulses happen only "now and then". My settings:
* TIM1 CR2 MMS set to 0b1000: tim_trgo = Ecoder Clock Out
* TIM8: Internal clock scaled down to 1Mhz (works fine, it counts as expected)
* TIM8 CCMR1 CC1S set to 0b11 = TRC
* TIM8 SMCR TS = 0000 = tim_itr0 = TIM1 trgo
after enabling TIM8 and TIM1 I never get an actual capture - somehow the trgo - TSC - CC1 signal chain seems not to work.
Does anyone have an idea what I am missing?