Copy Philip Microcontroller P87L51FB Embedded Firmware

Copy Philip Microcontroller P87L51FB Embedded Firmware needs to acquire more knowledge about the CMPE register, The CMPE register allows the comparator to drive the associated PCA module capture input, so that on compare a capture can be generated in the PCA. Bits 0–3 of this register enable the comparator output to drive the associated port 1 output circuitry.

Used as a comparator output this circuitry is open drain. To enable the comparator output to drive to port 1, the corresponding port bit must also be set to disable the pulldown. If the comparator is not enabled to drive the port 1 circuitry, the associated port 1 pin can be used for other I/O. This includes when a comparator is enabled to drive the capture input to a PCA module.

Copy Philip Microcontroller P87L51FB Embedded Firmware

Copy Philip Microcontroller P87L51FB Embedded Firmware

There are two bits in the AUXR register that can be set to reduce the internal clock drive and disable the ALE output. AO (AUXR.0) when set turns off the ALE output. LO (AUXR.1) when set reduces the drive of the internal clock circuitry. Both bits are cleared on Reset.

With LO set the P87L51FB will still operate at 12MHz, but will have reduced EMI in the range above 100MHz.

AUXR (8EH) 

–– –– –– –– –– –– LO AO

AO:          Turns off ALE output.

LO:          Reduces drive of internal clock circuitry. 8XC575 spec’d to 12MHz when LO set.