cancel
Showing results for 
Search instead for 
Did you mean: 

Over Current protection not working on 6-step single shunt

jovijuan
Associate II

Hi, my name is Luis.
I'm using MC SDK 6.3.2 with a custom board for a single shunt driver in 6-step mode.
I defined the OCP mode to  use internal comparator and enabled over current protection in MC project configuration.

jovijuan_0-1738341698610.png


The generated ioc file configures the DAC3 OUT1, COMP and enables, for TIM1, BRK from CMP1 source with polarity high. What I have not seen anywhere is the DAC value corresponding to the current limit I have configured.

I've tried to trigger overcurrent protection with a motor I'm driving correctly by brakeing it, but I'm unable to trigger protection even if the current is way above the configured threshold.

It looks like SDK doesn't really handle the configuration of the DAC and so overcurrent protection is just not implemented.

On a different board with a 3-shunt resistor I have seen the .DAC_OCP_ASelection defined in R3_ParamsM1 inside mc_parameters.c and the function R3_SetAOReferenceVoltage called inside r3_g4xx_pwm_curr_fdbk.c and it seems to work ok.

Is just Over Current protection with internal comparator not implemented for single shunt 6-step mode?

0 REPLIES 0