How do I connect an L6206 to an MCU so that it can tell the MCU when there is overcurrent?
I'm designing a board with an STM32F MCU and a PowerSO36 L6206 and I would like to use overcurrent as a feature: the motors connected to the board will be used to move across an axis and the occurance of overcurrent means the motor has reached the beginning of its axis, which is useful information for encoder feedback.
It would be best if the detection of overcurrent on the L6206 would pull an interrupt pin on the STM32F MCU to high (or low). I don't know how to achieve this, since the only outputs visible on the datasheet are the ones for the motors. SenseA and SenseB are connected to ground in the typical application and for both pins it is mentioned that it can be connected to a "sensing resistor" but the datasheet fails to show how.
The x-nucleo-ihm04a1 uses a strange circuit containing two 0 ohm resistors and a capacitor to connect SenseA and SenseB to the pins of the MCU and it doesn't make any sense (A nor B) to me.
