Tool/software: TI-RTOS
We work with CCS 7.2.13 and board TM4C129ENCPDT.
Is it possible to configure two PWM with different period simultaneously?
uint16_t pwmPeriod0 = 3000;
uint16_t pwmPeriod1 = 10000;
PWM_Params_init(¶ms);
params.period = pwmPeriod0;
pwm0 = PWM_open(Board_PWM0, ¶ms);
params.period = pwmPeriod1;
pwm1 = PWM_open(Board_PWM1, ¶ms);
while (1) {
PWM_setDuty(pwm0, duty0); duty0= (duty0+ dutyInc);
PWM_setDuty(pwm1, duty1);duty1= (duty1+ dutyInc);
}
Task_sleep((UInt) arg0);
}
Thanks,Sabina