2812BLDC reference code
2016-08-23
0 0 0
no vote
Other
Earn points
2812BLDC reference code. Read hall signal DSP IO port, stored in system.hall_code variable.
This variable is paid system.hall_code MOD1 module mod1.hall_code, system.motor_direction (motor rotation) variable is set by the user. MOD1 module handle appeals of two variables, generate mod1.stator_angle (stator magnetic field angle) variable output.
Mod1.stator_angle MOD1 module (stator magnetic field angle) variable input to pwm1. CmtnPointer (output stator magnetic field angle) variables and pwm1.DutyFunc (output pulse width) variables. After PWM1 module operation by
PWM1 ~ 6 three-phase bridge driver output to the motor is running.
Current ADC detection of three-phase bridge, and then through to the average of the minimum and maximum values algorithm, a current value, but in the case of the stream, and then directly to system.PWM_open_loop assign system.I_DC through RMP2 module, will be
Add to ramp output pulse width.
This variable is paid system.hall_code MOD1 module mod1.hall_code, system.motor_direction (motor rotation) variable is set by the user. MOD1 module handle appeals of two variables, generate mod1.stator_angle (stator magnetic field angle) variable output.
Mod1.stator_angle MOD1 module (stator magnetic field angle) variable input to pwm1. CmtnPointer (output stator magnetic field angle) variables and pwm1.DutyFunc (output pulse width) variables. After PWM1 module operation by
PWM1 ~ 6 three-phase bridge driver output to the motor is running.
Current ADC detection of three-phase bridge, and then through to the average of the minimum and maximum values algorithm, a current value, but in the case of the stream, and then directly to system.PWM_open_loop assign system.I_DC through RMP2 module, will be
Add to ramp output pulse width.
c
代码
bldc
参考
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment