yabo国际娱乐Dialog半导体客户支持- DA14580中断上升边缘 https://support.dialog-semiconductor.com/resource-keywords/da14580-interrupt-rising-edge DA14580中断 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/da14580-interrupt < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨对话框中,< / p > < p >我有一个问题上的中断DA14580使用SDK 5.0.3和ble外设示例作为基础。我试图让DA14580从外部设备的引脚上升边缘中断。

然而,无论我尝试了什么,中断只发生在下降边缘,一旦设备释放引脚。这是一个时间关键的应用程序,所以我需要中断尽快启动。

如果您有任何建议,将不胜感激,代码和逻辑分析仪图像随附。< / p > < p >祝福,< / p > < p >汤姆< / p > < p > SetWord16 (P29_MODE_REG 0 x20);//设置为下拉
SetWord16(GPIO_IRQ2_IN_SEL_REG, 24);// P2.9被选中,第二个参数是pin - check datasheet
SetWord16(GPIO_RESET_IRQ_REG, 4);//重置IRQ_2reg
SetBits16(GPIO_INT_LEVEL_CTRL_REG, EDGE_LEVELn2, 0); //重置IRQ_2reg
SetBits16(GPIO_INT_LEVEL_CTRL_REG, EDGE_LEVELn2, 0); // 0: do not wait for key release after interrupt was reset for GPIO IRQ2
SetBits16(GPIO_INT_LEVEL_CTRL_REG, INPUT_LEVEL2, 0); // select rising edge
SetBits16(GPIO_DEBOUNCE_REG, DEB_ENABLE2, 0); // debounce enable
SetBits16(GPIO_DEBOUNCE_REG, DEB_VALUE, 0); // debounce time n * 0.63 ms
NVIC_SetPriority(GPIO2_IRQn,0);
NVIC_EnableIRQ(GPIO2_IRQn);
SetWord16(GPIO_RESET_IRQ_REG, 4); // Reset IRQ_2reg

Attachment: 
Device: 
2017年9月7日星期四17:13:28 +0000 thomasburton 90420年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/da14580-interrupt#comments