i am using lpc55s16 usart interrupt sample code .lpc55s16 next side another device transmit data in this code i can read 32 bytes and same time another 32 bytes data read 9times loop ran then full completed 258 byte data correct and i want to read more than 258 bytes read but at singles times loop.
attach screenshot(83) read data 32 byte and 9loop full completed .
data in 1 singel loop 258 byte data read?
screenshot singels 32 bytes data read ss
how to change in usart code.
usart data read function.
bool usart_Read(uint8_t* b) {
if ((kUSART_RxFifoNotEmptyFlag ) & USART_GetStatusFlags(USART1))
{
*b = USART_ReadByte(USART1);
return true;
}
else
{
return false;
}
}
9times loop ran then full completed 258 byte data.
case STEP_READ_LEN: /* Read length byte */
case STEP_READ_LEN:
if (usart_Read(&re->len)) {
return STEP_READ_DATA;
}
break;
case STEP_READ_DATA:
if (re->pos < re->len) {
if (usart_Read(&(re->data[re->pos]))) {
re->pos++;
}
}