Skip to main content
waclawek.jan
Super User
August 1, 2019
Solved

In 'F3, Comparator output to Timer Input channel, connects exactly where?

  • August 1, 2019
  • 5 replies
  • 4940 views

Red, or blue?

0690X000009ZgqvQAC.png

The difference is, that in the case of red, the comparator output could be used to detect both edges by redirecting to 2nd timer channel (a.k.a. "PWM input mode").

And, in any of these cases, the original input is ORed with the comparator signal, or switched off completely, or something else?

Thanks,

Jan Waclawek

This topic has been closed for replies.
Best answer by Vincent Onde

​Hi Jan,

The comparator output is connected before the XOR input, on TIMx_CH1. This is equivalent to the red arrow in your schematics, and allows to use PWM input mode.

The original input is ORed with the comparator signal, as shown below.

Best regards,

Vincent

 0690X00000AAPKtQAP.jpg

5 replies

Vincent Onde
Vincent OndeBest answer
ST Employee
August 28, 2019

​Hi Jan,

The comparator output is connected before the XOR input, on TIMx_CH1. This is equivalent to the red arrow in your schematics, and allows to use PWM input mode.

The original input is ORed with the comparator signal, as shown below.

Best regards,

Vincent

 0690X00000AAPKtQAP.jpg

waclawek.jan
Super User
August 28, 2019

@Vincent Onde​  ,

This is good news, thanks for the information.

Could this please be introduced into all the relevant RMs, or, alternatively, could an appnote been written containing this sort of informations (interconnections not detailed enough in the RMs)?

Thanks,

Jan

Vincent Onde
ST Employee
August 28, 2019

​Hi Jan,

Yes, we can update the F3 family RMs for the next release to come.

Best regards,

Vincent

waclawek.jan
Super User
August 28, 2019

Thanks.

Jan

AOrlo.2
Associate II
December 10, 2022

Hi

The same quastion for me))

But have addition quastion.

So to enable it, I need just disable the input pin on the timer? (How to remap the output of the comparator is clear)

Thanks,

Alex

waclawek.jan
Super User
December 11, 2022

> So to enable it, I need just disable the input pin on the timer?

Simply don't select given TIMx_CHx in GPIO.

JW

AOrlo.2
Associate II
December 11, 2022

Ok, thanjs!