Hi,
Regarding your question, I think you can connect the analog waking-up signal to the multiplexed pin for both ADC analog channel and CMP input pin, for example the PIO0_14/ADC_2/ACMP_I3 for LPC802.
I think you can use the CMP_OUT signal to wake-up the processor in both deep-sleep and power-down mode. You have to configure the PDAWAKECFG and PDRUNCFG registers to set up CMP_OUT waking-up.
For detailed inf, pls refer to section 6.6.27 Wake-up configuration register.
You have to enable the CMP_OUT interrupt and create a ISR.
Hope it can help you
BR
XiangJun Rong
