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.

TMS320F280037C: Double pulse test C2000

Part Number: TMS320F280037C

Hello, 

I would like to create a simple bit of code for a double pulse test. I'm very much a beginner here, so I want to make sure I'm not misunderstanding anything.

Goal:

  1. Complementary outputs with dead-time between falling and rising edge
  2. Be able to determine size of the first pulse from 1us to 100us.
  3. Second pulse should always be the same value (1us for example)

Outline so far:

  1. To achieve complementary outputs Setup EPWM dead-time
  2. Size of first pulse is determined by T_TPRD and large duty cycle (99% for example)
  3. After 1 cycle, begin counter using CLB and interrupt after 1us

Do you think it's the right approach? Are there any other helpful resources/examples for this?

  • Hey Jimmy,

    I am not familiar with the double pulse test so I may need some additional context to understand what you're trying to accomplish. Could you clarify the following goal:

    "Be able to determine size of the first pulse from 1us to 100us."

    Are you trying to measure the length of the first PWM pulse? Are you attempting to use the CLB to accomplish this?

    Thank you,

    Luke