GPIOx IRQ Can wakeup 14580 when it is in sleep?

7 posts / 0 new
Last post
YuanhangWu
Offline
Last seen:4 years 11 months ago
Expert
加入:2015-03-25 08:19
GPIOx IRQ Can wakeup 14580 when it is in sleep?

Hi ,all.

GPIOx IRQ Can wakeup 14580 when it is in sleep?

14580 as peripheral,when power on ,make 14580 is no advertising. When GPIO00 is low then 14580 wake up;when GPIO00 is high then 14580 go to sleep.
The IRQ is GPIOx IRQ, not a WKUP_QUADEC_IRQn.(used as CTS in uart)
睡眠是CFG_EXT_SLEEP。

I test it,send advertising command after GPIOx IRQ wake up 14580 ,but not success get the advertising data.

Please help me?

thanks.

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi YuanhangWu,

Hi YuanhangWu,

In order to wake up from sleep mode you have to use the Wakeup interrupt controller you cant wake up from a GPIOx IRQ.

Thanks MT_dialog

YuanhangWu
Offline
Last seen:4 years 11 months ago
Expert
加入:2015-03-25 08:19
Hi,all.

Hi,all.

Is there can be two GPIO PIN for wake_up_irq in a a project?

work in DSPS project.
DA14580_DSPS_3.150.2,
,sps_device.
the PC work as external MCU.
I want to realize this goal:
(1)A GPIO_PIN high to low wake_up_iqr come ,BLE in uart work,the uart can translate data with phone by PC uart.
(2)A GPIO_PIN low to high wake_up_iqr come ,BLE not in uart work,the uart can not translate data with phone by PC uart or the translate data in uart is over.

(3)B GPIO_PIN high to low wake_up_iqr come ,BLE Start Advertising.
(4)B GPIO_PIN low to high wake_up_iqr come ,BLE Stop Advertising

My question is :
Is there can be two GPIO PIN for wake_up_irq in a a project?
When i set init A GPIO_PIN is high,then I contact the A GPIO_PIN to GND,enter (1),then remove A GPIO_PIN from GND,the A GPIO_PIN now is high.Can enter (2)?
And the (1)and (2) is Always Large a number?

thanks

hardy.chen
Offline
Last seen:1 year 10 months ago
加入:2015-03-13 04:20
Hi,

Hi,

Same question with YuanhangWu, is it possible to have multiple GPIO source for waking up DA14580?

hardy.chen
Offline
Last seen:1 year 10 months ago
加入:2015-03-13 04:20
Hi,

Hi,

Just checked function 'wkupct_enable_irq' which is able to enable *multiple* PINs for waking up device.
But, is there any way to tell which the source is that triggering it?

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi Yuanhang and hardy.chen,

Hi Yuanhang and hardy.chen,

Yes you can set multiple pins on the wakeup controller and then you can poll the GPIO pins, from the callback function, in order to check from which pin you got the interrupt. You can set them using the wkupct_enable_irq().

Thanks MT_dialog

hardy.chen
Offline
Last seen:1 year 10 months ago
加入:2015-03-13 04:20
Thanks, Dialog team.

Thanks, Dialog team.

I'm able to listen multiple GPIO pins for waking up DA and do specific callback via judging its previous level.

Topic locked