2025-10-12 9:24 PM - last edited on 2025-10-13 2:46 AM by Andrew Neil
2025-10-15 2:39 AM
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 */
2025-10-13 2:45 AM
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.
The DAC_OVP_THRESHOLD parameter is set to a default value.
2025-10-13 8:54 PM
Hi @GMA ,Thanks for your reply :)
Are you saying that 'DAC_OVP_Threshold = 23830' actually has no effect?
2025-10-13 11:31 PM
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.
2025-10-14 9:33 PM - edited 2025-10-14 9:36 PM
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?
2025-10-15 2:39 AM
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 */