Hi All,
Probably an easy mistake but I just can't find it...
Just setting up an array to receive my input from TeraTerm and store it. It originally comes in the RXBUF one character at a time.
When I run it, the compiler warns me that the array is declared but not used..
So when a character is received in the ISR, UCRXIFG is set and then the characters will be placed into the RX array one at a time by the variable 'r' incrementing the positions.
However, it doesn't work and looks like it doesn't recognise RX[] as an array...
Help would be appreciated,
JSwale.
Probably an easy mistake but I just can't find it...
Just setting up an array to receive my input from TeraTerm and store it. It originally comes in the RXBUF one character at a time.
When I run it, the compiler warns me that the array is declared but not used..
C:
ISR(USCI_A0, serial_interrupt0)
{
static int r;
char RX[5];
switch(__even_in_range(UCA0IV,USCI_UART_UCTXCPTIFG))
{
case USCI_NONE:
break;
case USCI_UART_UCRXIFG:
RX[r]= UCA0RXBUF; r++;
if(r==5) break;
However, it doesn't work and looks like it doesn't recognise RX[] as an array...
Help would be appreciated,
JSwale.
Last edited: