UVW 3 phases Brushless DC motor control
Dependencies: QEI mbed-rtos mbed
Fork of BLDCmotor by
Diff: UVWpwm.h
- Revision:
- 15:427f5ae8e957
- Parent:
- 13:791e20f1af43
--- a/UVWpwm.h Thu Jun 13 06:41:16 2013 +0000 +++ b/UVWpwm.h Tue Sep 03 07:40:50 2013 +0000 @@ -10,7 +10,7 @@ #define V_LOWER_PORT p24 // V相下アームVd用ポート #define W_UPPER_PORT p25 // W相上アームWu用ポート #define W_LOWER_PORT p26 // W相下アームWd用ポート -#define PWM_WAVEFORM 1 // 0: saw tooth wave comparison, 1: triangler wave comparison +#define PWM_WAVEFORM 1 // 0: saw tooth wave comparison, 1: triangler wave comparison // koko if 0, no round #define TMIN 3 // [us], processing time of pwm_out() #define R_SHUNT_UP_PORT p16 // ポート:U相電流検出用抵抗の+側アナログ入力