Other Parts Discussed in Thread: CONTROLSUITE
When PWM init section looks like this:
// Initialize PWM module
pwm1.PeriodMax = SYSTEM_FREQUENCY*1000000*T/2;
pwm2.PeriodMax = SYSTEM_FREQUENCY*1000000*T/2;
PWM_INIT_MACRO(pwm1)
PWM_INIT_MACRO(pwm2)
But if, for instance, so:
// Initialize PWM module
pwm1.PeriodMax = SYSTEM_FREQUENCY*1000000*T/2;
pwm2.PeriodMax = SYSTEM_FREQUENCY*500000*T/2;
PWM_INIT_MACRO(pwm1)
PWM_INIT_MACRO(pwm2)
... Then the motor wich is on the pwm1 gets vibrating and moving slower.
What' s the problem?