
LPC952 datasheet error (Serial port 1)
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/
> 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).
My fault: this is not true. I just checked the esacademy code generator, and
the code is correct now.
Maybe I downloaded the UART0 code and then modified it for UART1...
Regards,
Fausto
--
Fausto Marzoli - 8052.it - http://www.8052.it/
