Hi,
am using lpc845, sdk example USART0 transfer interrupt project, data send in the transfer method is working good. But in interrupt method receiver is not work, then the Xfer->rxdata is always 0. please be explain the receiver data register and i just print the data in g_rxbuffer but always I got 0 only.
another one doubt is in transfer interrupt method NVIC handler is enable,but in receiver function i could not seen any handler,only register(base->INTSET) is present in the example project, i want to know thr receiver NVIC,and receiver buffer for output data.
here i attached my doubt area while debugging, please be explain .
Hi @Sathiya_T
Q1:
You can add these code to print receives buffer.
for (uint8_t i =0;i<ECHO_BUFFER_LENGTH;i++)
{
PRINTF("g_rxBuffer[%d]=%d\r\n",i,g_rxBuffer[i]);
}
You can refer to the picture.
And The output of the serial port is shown in the figure.
EXAMPLE_USARTUserCallback