Forums

LPC952 datasheet error (Serial port 1)

Started by Fausto Marzoli April 19, 2007
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/
Alle 16:05, gioved19 aprile 2007, Fausto Marzoli ha scritto:

> 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/