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
if I recall the 669 is discontinued the 669 has a different UART clocking the 669 is a 12 clocker, the v51 is a 6 clocker
check the above
ya...
I was using 89v51rd in 6 clk mode.
Thanks a lot.
Not discontinued yet.
the 669 is a 6 clocked and the v51 is a 12 clocked
v51 is a 12 clocked, can be 6
Please have a look on the initialization of sfrs. Is anything wrong with the initialization code????
please help