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:
- Complementary outputs with dead-time between falling and rising edge
- Be able to determine size of the first pulse from 1us to 100us.
- Second pulse should always be the same value (1us for example)
Outline so far:
- To achieve complementary outputs Setup EPWM dead-time
- Size of first pulse is determined by T_TPRD and large duty cycle (99% for example)
- 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?