2022-08-17 11:21 PM
2022-08-18 01:56 AM
Hello,
first driver (FlewPWM) allows to use the PWM capability of FlexPWM IP (cf chapter 36 in RM0387)
second driver (PWM) allows to use PWM capability of eTimer IP (cf chapter 38 in RM0387)
Best regards
2022-08-18 01:56 AM
Hello,
first driver (FlewPWM) allows to use the PWM capability of FlexPWM IP (cf chapter 36 in RM0387)
second driver (PWM) allows to use PWM capability of eTimer IP (cf chapter 38 in RM0387)
Best regards
2022-08-18 08:09 PM
Okay understand. So, if i want the PWM is control by sensor(ADC), may i know how or where i can refer? I already see the PWM demos, but the things is the demo not using the ADC as a input.
2022-08-19 01:30 AM
We have one simple demo to show how to control PWM
another one to show how to read ADC
but we have no more complex demo to show how to control PWM according to ADC value
you will have to develop it according to your own needs.
Best regards
2022-08-19 01:42 AM
okay. I have a question regarding the PWM demos. So, in that demos, we set the PWM pin as both input and output ? let say i want to control the motor, so the input will be the code that we set as a duty cycle? and the output is the motor? am i right or i misunderstanding the demos ?
so the 20%, 30% duty cycle that we set in c code is the input?
and then the motor will be the output and control based on this duty cycle that we set?