User Activity

Hi,I don't understand the code below -- why is PA12 set to an output? I've included an image from the documentation that shows that PA12 receives the output from the comparator. Isn't it problematic if the comparator is driving it at the same time ...
Can a fuller explanation be provided? Why will the stator current reading block experience an issue if the PWM duty cycle is at 100%? Thanks!