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

UART 0 - 89C669 @ 115200 baud rate

UART 0 of 89C669 @ 115200 baud rate

Hi all,

Previously I was using 89V51RD, Now I want to replace it with 89c669 because of flash memory restrictions.

My serial comm code using 89V51 is:

disable_ints();
disable_serial();

TMOD&=~0xF0;
TMOD|=0x20;

S0CON=0x50;
PCON|=0x80;

switch(baud)
{
        case 1:
                TH1 = 0xFF;             //      115200.
                TL1 = 0xFF;
                //device 1 comm
                break;
        case 2:
                TH1 = 0xFD;
                TL1 = 0xFD;
                //device 2 comm
                break;
        case 3:
                TH1 = 0xFF;             //      115200.
                TL1 = 0xFF;
                //device 3 comm
                break;
        default:
                break;
}
PS=0;
TR1 = 1;
enable_serial();

This works fine for all the 3 options.

Now after replacing 89V51 with 89c669, I am unable to communicate with pc(sending data @115200).

I dn't understand where the problem lies.

Please help me out

0