Have a nice day for all!
1) There are microcontroller TMS320F28035PNS and part of program for it:
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