This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA400-UART

Hi Clancy,

I want to send data through UART with 2400 baudrate(Double), databits=8,stopbit=1,parity=none.But UART is not working for this.I detailed configuration used,Kindly update this code and send me formula to calculate baudrate(TH1 register value).

SCON = 0x50; /* 8 bit UART, Enabled reception */
 PCON |= 0x80;  /* Double baudrate*/
TH1 = 0x7D; /* 2400 baudrate */
ES = ON; /* Enable Serial port interrupt */
PS = 1;