Hi Dennis Little bit correction in code. First reading error code and then data. volatile unsigned char data[196]; volatile unsigned char errData[196]; volatile unsigned char index = 0; #pragma vector=USCI_A1_VECTOR __interrupt void USCI_A1_ISR (void) { switch (__even_in_range(UCA1IV, USCI_UCTXIFG)) { case USCI_NONE: break; case USCI_UCRXIFG: { errData[index] = UCA1STAT; data[index] = UCA1RXBUF; index++; if(index >= 196) { index = 0; } } break; case USCI_UCTXIFG: break; } } Thanks and Regards, Rahul Patil
↧