I just found an error in the P89LPC952 User Manual (Rev.00), and also in the
reg952.h header file that you can download from the Keil website.
The error is in the serial port 1 control register: S1CON correct address is
B6H, while at pages 55 and 58 it's indicated as B5H.
Fortunately you can find it correctly indicated as B6H at page 15.
As I said, the error is also in the keil C51 reg952.h header file, which
contains other two minor errors: BRGR0_1 and BRGR1_1 are named "BRG0_1"
and "BRG1_1".
About the UART1 use, the Esacademy Code Generator generates a wrong code for
UART1, as the SFR S1CON is NOT bitaddressable (bits RI_1 and TI_1 are not
directly addressable).
That's all, for now...
--
Fausto Marzoli - 8052.it - http://www.8052.it/