Hi,
i tried to test the Timer B capture interrupt (@ msp430f5529) but no interrupt was released.
I wanted to relase an interrupt by a positve edge at P5.6/TB0.0 -> CCR0 capture: CCI0A input.
So i configured the Timer B as follows(my complete test-program):
#include <msp430x552x.h>
void main(void){
WDTCTL = WDTPW + WDTHOLD;
P5SEL |= BIT6; // Option select: P5.6 -> TB0 CCI0A
TB0CCTL0 |= CM_1 + CCIS_0 + CAP + CCIE; // pos. edge + CCIXA + capture mode + Interrupt enable
TB0CTL = TBSSEL_1 + MC_2; // Timer B: ACLK + continous up
while(1){
_NOP();
_BIS_SR(LPM0_bits + GIE);
}
}
#pragma vector=TIMER0_B0_VECTOR
__interrupt void TIMER0_B0_VECTOR_ISR (void){
TB0CCTL0 &= ~CCIFG;
_NOP(); // Set breakpoint here
}
I have no idea why nothings happen if i do a positvie edge at P5.6...
Did i some mistakes or forgot something to configure?
Thanks for replies
Krapser