This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Re: How to use UART 1 in P89C669

I am confused how to use UART 1 in P89c669.

Normally for using UART 0 i follow the below register initialization.

  SCON = 0x50; //Serial com in mode 1 and REN - 1
  TMOD = 0x20; //Timer 1 in mode 2 - auto reload mode
  TH1  = 0xFD; //Timer 1 to operate at 19600 baud rate
  TL1  = 0x00; //since auto relaod mode TL1 = 0
  TR1  = 1;    //Run control bit to start the timer 1

So i check the RI and TI bit for reception and transmission.

In the datasheet it is mentioned that for UART 0 we can use Timer 1 or Timer 2 or Baud Rate generate register for generating the baud rate. But here i use Timer 1.

For using the UART 1 it is mentioned that we should use the baud rate generator register for communication.

Can anybody help me how to use UART 1 for serial port communication.

I want to use UART 1 same as that of UART 0.

Parents Reply Children