I have a TWR-K60F120M Board and my problem is the uart interrupt routine.
In my main i created an array with 4 numbers
int a[4]={1 , 2 , 3, 4};
UART0_C2 |= UART_C2_TCIE_MASK;
i wanted to start the interrupt with the transmission complete flag
In my interrupt routine
extern int a[];
int i =0;
void UART_IRQ
{
while(i<4)
{
UART0_D=a[i];
i++
}
UART0_C2 &= ~UART_C2_TCIE_MASK;
i=0;
}
I don't receive the numbers from the uart and i don't know why .
Maybe someone know where i'm mistaken.