Hi,
We are configuring the analog comparator as a wake up source for power down mode in our LPC5528, and it works consistently in some units but it does not work at all in some others.
The software code is the same, and so far we couldn't find any hardware reason for the ones that don't work.
- Comparator configuration (COMP register): hysteresis enabled, VDDA as input voltage (2.8V), low power enabled, PMUX set to VREF and NMUX to pin PIO0_0, VREF set to 1 (~100mV) and default filtering.
- Comparator interrupt configuration (COMP_INT_CTRL): Rising edge.
- Power down configuration: WAKEUP_ACMP_CAPT selected as wake up source and kPDRUNCFG_PD_COMP excluded from power down (among others).
We've verified using SEGGER Ozone that registers are properly set. And we've also verified that VREF is 2.8V during power down mode, and that PIO0_0 changes from 0V to ~200mV. This triggers wakeup in some units but does not in some others.
The units that does not wake-up on comparator interrupt can wake-up using the other wake-up sources we configure, so it seems to be a problem only with the analog comparator.
Please let me know if you need more details. We'd appreciate any help.
Thanks,
Paula