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.

Interrupt time for ePWM

Have a nice day for all!

1) There is a part of program:

PWM period = 100kHz

#define   T_pwm_UPPV     300     //   10usec = 100kHz

EPwm2Regs.TBPRD = T_pwm_UPPV; // fpwm=1/(2 x TBPRD x TBCLK)
EPwm2Regs.TBPHS.half.TBPHS = 0x0000; // 
EPwm2Regs.TBCTR = 0x0000; // 

EALLOW;
PieVectTable.EPWM2_INT = &MainISR;
EDIS;

EPwm2Regs.ETPS.bit.INTPRD = 3;  // 3 x 10usec = 30usec

interrupt subprogram:

interrupt void MainISR(void)  //avery 30usec is interrupt

{

}

For it I use the bit  <INTPRD> which can get the next meanings:

00;  01;  10;  11  =>  min=10usec;  max=30usec

Questions:

I need to increase the interrupt time for  it happens more seldom from 30usec to 50usec.

How can I do it ???

What the bit and where I must set ???

I'm looking forward to hearing from you,

Thanks a lot,

Andrey

  • Andrey,

    Here at the Code Composer forum it may be difficult to get any answer to questions that are relative to hadware configuration, therefore I strongly suggest to ask this in the device forum as the experts there will be much more knowledgeable about this.

    If you prefer, you can tell which device this is and I can move this thread there.

    Regards,

    Rafael