Tool/software: Starterware
hello , i am working with the uart , and its work fine , but i'm a try transmit a sense of data the size 20 bits , but the Uart only trasmit the firts 16 bits , i used the next funcion , which is the error ??
void SendData(char *ptr){
ROM_UARTCharPutNonBlocking(UART0_BASE, 0xFF);
while(*ptr){
ROM_UARTCharPutNonBlocking(UART0_BASE,(unsigned char)*ptr);
ptr = ptr + 1;
}
ROM_UARTCharPutNonBlocking(UART0_BASE, 0xFB);
sum=(~sum+1)&0x0f;
sum+=0xE0;
ROM_UARTCharPut(UART0_BASE,sum);
ROM_UARTCharPut(UART0_BASE, 0xF0);
}