cancel
Showing results for 
Search instead for 
Did you mean: 

Formula for Over voltage protection threshold for STSPIN32G4?

Garey
Associate II

Hi, Why is DAC_OVP_Threshold = 23830 ?  
@GMA  Thx :)
Garey_0-1760329078428.png

Garey_1-1760329203250.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Garey,

DAC_OVP_Threshold is defined but not used.
Bus Voltage sensor thresholds are defined in drive_parameters.h file

/**************************    FIRMWARE PROTECTIONS SECTION   *****************/
#define OV_VOLTAGE_THRESHOLD_V              29 /*!< Over-voltage threshold */
#define UD_VOLTAGE_THRESHOLD_V              10 /*!< Under-voltage threshold */

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

View solution in original post

5 REPLIES 5
GMA
ST Employee

Hello @Garey,

As displayed on the Workbench interface, VBUS is not compared to a DAC-generated value using an internal comparator, as is the case for Over current protection on Current Sensing. Instead, the comparison is performed by firmware.

GMA_0-1760348246653.png

The DAC_OVP_THRESHOLD parameter is set to a default value.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Garey
Associate II

Hi @GMA ,Thanks for your reply :)

Are you saying that 'DAC_OVP_Threshold = 23830' actually has no effect?

Hello @Garey,

The overvoltage protection is managed by the firmware in the r_divider_bus_voltage_sensor.c file.
The overvoltage protection with DAC comparison feature is not available.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Garey
Associate II

Hi @GMA ,

But (DAC_OVP_Threshold = 23830) was generated by the MCSDK tool.

I see there is related initialization configuration for DAC_OVP_Threshold,

combined with your reply, which means DAC_OVP_Threshold actually doesn't take effect, right?

Garey_0-1760502779755.png

 

 

Hello @Garey,

DAC_OVP_Threshold is defined but not used.
Bus Voltage sensor thresholds are defined in drive_parameters.h file

/**************************    FIRMWARE PROTECTIONS SECTION   *****************/
#define OV_VOLTAGE_THRESHOLD_V              29 /*!< Over-voltage threshold */
#define UD_VOLTAGE_THRESHOLD_V              10 /*!< Under-voltage threshold */

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA