This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pwm as input

hi,

i am using 28335 processor.i want to capture a pwm coming from a ic and processed it and reproduced it as processor output and it should be in time synchronization with input with minimum propagation delay.

i tried to capture through external interrupt at rising edge and  falling edge   but not able to apply a  cpu timer to calculate time period and duty cycle .may pls suggest it can be done through ecap or not ??

  • Navneet,

    The best way to proceed is to configure an eCAP module to measure period and duty cycle of you incoming PWM, then trigger an interrupt on an appropriate edge.  The attached example shows one way in which the CAM can be configured to measure these parameters.  You will still have to do whatever processing you want and modulate the output PWM, so there will be some delay, but this way you'll have the input parameters ready-to-go.

    Regards,

    Richard

    eCAP example.pdf