Tool/software: Code Composer Studio
Hello TI team,
I'm running my code on msp430f5529 and I have a problem : when the code call the function read_i2c() the function work fine but when I call the UART interrupt to send data with uart, the program don't listen to uart interrupt and keep reading. By the way I disabled I2C interrupt because I don't use it .
This is my UART interrupt code :
#pragma vector=USCI_A0_VECTOR __interrupt void USCI_A0_ISR(void) { static volatile unsigned short k = 0; switch(__even_in_range(UCA0IV,4)) { case 0:break; // Vector 0 - no interrupt case 2: // Vector 2 - RXIFG if(uart_time_out>10000){k = 0;uart_time_out=0;} uartReceive[k++] = UCA0RXBUF; if(k == 7){k = 0; UARTdataReceived_event = 1;} break; case 4:break; // Vector 4 - TXIFG default: break; } }
Anyone can help please.