always active IRQ

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

always active IRQ

864 次查看
theodorebelogia
Contributor II

I have an LPC1115 and I want an I/O pin to be used as a user push-button for power control.

This requires an IRQ on LPC1115 (not the reset pin) to be active all time. (In active and in deep sleep mode).

Does anyone has an idea how to implement this ? 

PS. I use sequential programming and not any RTOS.

标记 (1)
0 项奖励
回复
1 回复

853 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Regarding your question, I suppose that you want to generate an interrupt with a hardware button which is connected to a GPIO pin, meanwhile, you want to wake-up the chip with the same button when the chip LPC1115 is in low-power mode such as sleep mode, while you can generate interrupt with the button in active mode. If it is the case, I think it is okay.

Pls refer to section 6.4 Interrupt sources.

As the following figure, the PIO0_0 to PIO0_11 and PIO1_0 pins(total 13 pins) can be configured to be edge triggering to generate interrupt and wake-up the chip from low power mode such as sleeping mode.

Meanwhile, for the PIO0, PIO1, PIO2 and PIO3 ports, each port has an interrupt vector, in this way, you can generate interrupt with each pin in each port in ACTIVE mode.

In conclusion, I suppose for example you can connect the PIO0_0 pin to a hardware button, configure the Start logic related registers so that the PIO0_0 pin can wake-up the chip from sleeping mode. For detailed inf, pls refer to 3.5.30 Start logic edge control register 0. At the same time, you have to configure GPIO0 module so that the PIO0 port can generate interrupt at the interrupt vector 31.

 

xiangjun_rong_0-1661739887845.png

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复