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

initializaion code for 89C669 UART

Hi,

I need the sample code for initialization of UART's of P89C669.

Thanks,
abc xyz

Parents
  • The 89c669 has 2 UART's. Basically I have worked on the 8051 controllers with 1 UART, whose initialization goes like this:

    TMOD = 0x20; SCON = 0x50; TH1 = 0xFD; /*Set baudrate to 9600 at 11.0592MHz*/ TL1 = 0xFD; TR1 = 1;

    I am not sure what changes would be required in this code for initializing UART0 of 89c669 which has 2 UART's

Reply
  • The 89c669 has 2 UART's. Basically I have worked on the 8051 controllers with 1 UART, whose initialization goes like this:

    TMOD = 0x20; SCON = 0x50; TH1 = 0xFD; /*Set baudrate to 9600 at 11.0592MHz*/ TL1 = 0xFD; TR1 = 1;

    I am not sure what changes would be required in this code for initializing UART0 of 89c669 which has 2 UART's

Children