2024-06-21 12:53 AM
Currently, I try to use an quadrature encoder connected on pins PC12, PC11 and PC10. All these pins have in common that they all can use Timer 8, for channels CHN1, CHN2 and CHN3. When I try to configure Timer 8 in Encoder mode; I can't select the CHN channels. Is there a way to use these pins as input for the encoder?
Solved! Go to Solution.
2024-08-01 05:44 AM
Hello @kmce, sorry for the delayed answer,
The encoder mode typically uses two channels (CHN1 and CHN2) for quadrature signals
For Timer 8, the typical channels used for encoder mode are CH1 and CH2. In your case, you are trying to use PC12, PC11, and PC10, which correspond to CHN1, CHN2, and CHN3 respectively. However, CHN3 (PC10) is not typically used for encoder mode.
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-08-01 05:44 AM
Hello @kmce, sorry for the delayed answer,
The encoder mode typically uses two channels (CHN1 and CHN2) for quadrature signals
For Timer 8, the typical channels used for encoder mode are CH1 and CH2. In your case, you are trying to use PC12, PC11, and PC10, which correspond to CHN1, CHN2, and CHN3 respectively. However, CHN3 (PC10) is not typically used for encoder mode.
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-08-01 09:20 AM
To put more bluntly the same thing @Sarra.S said above: TIMx_CHxN pins cannot be used as inputs, only as outputs.
JW
2024-08-05 11:17 PM
Thanks for your short and clear answer!