analog comparator LPC80x features

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

analog comparator LPC80x features

747 Views
theodorebelogia
Contributor II

Hi,

Ineed the following feature from an LPC802 microcontroller.

While in deep sleep it needs to wakeup when a voltage from an ADC input exceeds a defined voltage level.

Can I measuse from an ADC and feed the comparator to raise an IRQ while in deep sleep ?

 

Kind regards

Thodoris

Tags (1)
0 Kudos
Reply
1 Reply

738 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

 

xiangjun_rong_0-1650002126090.png

 

0 Kudos
Reply