Part Number: MSP430FR2355
Tool/software: Code Composer Studio
hi
i am trying to build two compilmatary pwm signal with dead time, from what i read in the datasheet and in the forum i wrote this settings:
TB1CCR0 = 1000; // PWM Period
TB1CCTL1 = OUTMOD_6; // CCR1 reset/set
TB1CCTL2 = OUTMOD_2; // CCR2 reset/set
TB1CCR1 = 800; // CCR1 PWM duty cycle
TB1CCR2 = 750; // CCR2 PWM duty cycle
TB1CTL = TBSSEL__SMCLK | MC__UPDOWN ; // ACLK, up mode, cleBr TBR
TB0CCTL0 |= CCIE; // TBCCR0 interrupt enabled
TB0CCR0 = 800;
//TB0CTL |= TBSSEL__SMCLK | MC__CONTINUOUS; // SMCLK, continuous mode
TB0CTL = TBSSEL__SMCLK | MC__UP | TBCLR; // SMCLK, up mode, clear TBR
i am also using TB0 as ISR.
but something does not work here , for some reason the first pulse overlap and if i change TB1CCR1 and TB1CCR2 in the ISR sometimes overlaps occurs.
why?
what am i doing wrong? how can configure it so the overlap wont happen?
thanks a lot.

