The maximum clock frequency for the P89LPC912FDH,129 is 12 MHz, but it can be overclocked up to 15 MHz with some limitations.
The oscillator can be configured using the OSCCFG register. The oscillator frequency can be selected by setting the OSCCFG bits accordingly. For example, to select the 12 MHz internal oscillator, set OSCCFG = 0x02.
The watchdog timer is used to reset the microcontroller in case it becomes stuck in an infinite loop or hangs due to a software error. It can be enabled or disabled using the WDTC register.
The UART can be configured using the U0CSR and U0BAUD registers. The UART baud rate can be set using the U0BAUD register, and the UART mode can be selected using the U0CSR register. For example, to enable the UART in asynchronous mode, set U0CSR = 0x81 and U0BAUD = 0x06 for a baud rate of 9600.
The power consumption of the P89LPC912FDH,129 depends on the operating frequency and the mode of operation. In active mode, the typical power consumption is around 10 mA at 12 MHz, and in sleep mode, it is around 10 μA.