In my design, the dmeo about UART echo back has a problem, is not working properly.
my platom :
adsp-21375 @ 16.534MHz Baud rate: 19200b/s, two stop bits ,odd parity
Run the initUart results as shown below
when i disable the follow code ,it's normal work .
r0 = dm(UART0RBR);
/* echoing back the received data */
waiting1: ustat1 = dm(UART0LSR);
bit tst ustat1 UARTTHRE;
if not tf jump waiting1;
//dm(UART0THR) = r0; // ************
/* poll to ensure UART has completed the transfer */
waiting2: ustat1 = dm(UART0LSR);
bit tst ustat1 UARTTEMT;
if not tf jump waiting2;
From the above results, the hardware should not have what problem, but why demo is not working properly?