Hi,
OCP_L1=1 means short to battery and OCP_H1=1 means short to ground.
As the MOSFET is acting as high side switch so when short to GND happen it will detect OC fault.
Clockwise direction of the motor:-
OCP_H1=1 : Short to Gnd (OUT1 Pin of Driver)
OCP_L2=1 : Short to Vbatt (Out 2 pin of Driver)
Anticlockwise direction of the motor:-
OCP_H2=1 : Short to Gnd (OUT2 Pin of Driver)
OCP_L1=1 : Short to Vbatt (Out 1 pin of Driver)
Does this totally depend on the motor direction? please comment.
Thanks and Regards
Ashish Nawani