
Motor control operations
UM0432
36/53
Figure 22.
System setup for running phase
7.4.15 Changing
the
maximum allowed bus voltage level
The board includes an over-voltage protection mechanism that protects the system,
preventing the motor from starting if the bus voltage is greater than a given voltage. If this
occurs, the red LED starts blinking.
This threshold value is coded inside the firmware and its default value is set to 29 V. To
change it, one parameter inside the source code must be modified and the executable must
be rebuilt. To do this, find the following definition inside the
adc.c
source file.
#define HVBUS_THRESHOLD 539 // bus voltage reference (29 V)
Refer to
Table 13
to obtain the value relative to the desired bus voltage threshold and
replace the number 539 in the statement above with this value.
Table 13.
Bus voltage threshold parameter
Bus threshold
HVBUS_threshold value
6 V
112
12 V
223
18 V
335
24 V
446
30 V
558
36 V
670
42 V
781
48 V
893
electronic components distributor