Tool/software: TI-RTOS
Hi all,
I'm using the PWM to operate a motor and I need to set it to 100% sometimes in order to turn the motor off (the value is inverted).
I understood that setting 0% and 100% duty cycles on the PWM is problematic but can be done.
What I tried is disabling the PWM and inverting the output:
PWMOutputState(PWM0_BASE, PWM_OUT_6_BIT, false);
PWMOutputInvert(PWM0_BASE, PWM_OUT_6_BIT, true);
I also tried changing the output pin to a digital output and setting it as 0xff:
GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_4);
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_4, 0xff);
Both methods didn't stop the PWM, I'm still getting a very small voltage, am I doing something wrong?
Thanks.