Skip to main content
This topic has been closed for replies.
GMA
GMABest answer
ST Technical Moderator
Oct 15, 2025 9:39 AM UTC

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 'Best answer'.Best regards.GMA

5 replies

GMA
ST Technical Moderator
Oct 13, 2025 9:45 AM UTC

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 'Best answer'.Best regards.GMA
GareyAuthor
Associate II
Oct 14, 2025 3:54 AM UTC

Hi @GMA ,Thanks for your reply :)

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

GMA
ST Technical Moderator
Oct 14, 2025 6:31 AM UTC

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 'Best answer'.Best regards.GMA