2024-03-21 12:49 AM
page 1320; timer 2 input pwm mode
"1. Select the active input for TIMx_CCR1: write the CC1S bits to 01 in the TIMx_CCMR1 register (TI1 selected).
2. Select the active polarity for TI1FP1 (used both for capture in TIMx_CCR1 and counter clear): write the CC1P to ‘0’ and the CC1NP bit to ‘0’ (active on rising edge).
3. Select the active input for TIMx_CCR2: write the CC2S bits to 10 in the TIMx_CCMR1 register (TI1 selected)."
shouldnt it be "write CC2S bits to 01 to select TI1" ?
Solved! Go to Solution.
2024-03-21 01:59 AM - edited 2024-03-21 01:59 AM
Hello @b.a.
According to the CC2S bits description on the page 1354 of the RM0432, you have to write 10 on the CC2S bits so that the CC2 channel is configured as input and IC2 is mapped on TI1 (as mentioned on the description):
So, everything looks fine.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-21 12:51 AM
2024-03-21 01:59 AM - edited 2024-03-21 01:59 AM
Hello @b.a.
According to the CC2S bits description on the page 1354 of the RM0432, you have to write 10 on the CC2S bits so that the CC2 channel is configured as input and IC2 is mapped on TI1 (as mentioned on the description):
So, everything looks fine.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-21 02:06 AM
yes, you are right!
I did not check but assumed the bit-meaning for CCS1 and CCS2 were identical, like they are for so many other registers... like CC2G just says refer to CC1G