AnsweredAssumed Answered

UART problem in blackfin

Question asked by Naik on Nov 5, 2012
Latest reply on Nov 14, 2012 by CraigG



I have written a UART program for blackfin processor using VisualDSP++ 5.0 to transmit and receive characters.

For transmit operation, I check the THRE bit of UART_LSR register. If it is set, I write a character to the UART_THR register.

When I run my program using the simulator, the transmit operation not only writes the character hex value to THR but also to the receive buffer register,UART_RBR( As seen from the UART register window). At the same time, DR bit is not set(though the UART_RBR has a value) thus the condition that DR bit is set is not saisfied while reading the UART_RBR.

Am I going wrong anywhere? Please help. Looking forward for a reply.