Skip to main content
Associate II
October 13, 2025
Solved

Formula for Over voltage protection threshold for STSPIN32G4?

  • October 13, 2025
  • 1 reply
  • 405 views

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

Garey_1-1760329203250.png

 

Best answer by GMA

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 */

 

1 reply

GMA
Technical Moderator
October 13, 2025

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
GareyAuthor
Associate II
October 14, 2025

Hi @GMA ,Thanks for your reply :)

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

GMA
Technical Moderator
October 14, 2025

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