完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好。
我正在stm8S105S4上开发一个应用程序,需要在其他外设中使用7个EXti中断。 端口D上的-2 B端口为-3 端口E上的-2 扫描论坛,我已经读过没有ITpending标志来清除这些中断,也没有状态寄存器允许查看哪个引脚设置了中断。 有没有办法看到哪个引脚被触发了? 我仍然可以更改第二次运行的固定以在不同的端口上拆分EXT IT,但无论如何我仍然需要7并且只有5个允许中断的端口.... 我看到在输入捕获模式下使用定时器可以四处走动,但它并不真正节能...... 有人有线索吗? 以上来自于谷歌翻译 以下为原文 Hi all. I'm developping an application on stm8S105S4, requiring among other peripherals, the use of 7 EXTI interrupts. -2 on port D -3 on port B -2 on port E. Scanning the forum, i ve read there is no ITpending flag to clear for these interrupts, nor status register allowing to see which pin has set the interrupts. Is there any way to see which pin has triggered ? I still may change pinning for 2nd run to split EXT ITs on the different ports, but anyway i still need 7 and there are only 5 ports which allow interrupts.... I see a walk around by using timers in input capture mode, but it's not really power efficient... Anyone has a clue ? |
|
相关推荐
2个回答
|
|
我唯一能想到的是每次调用中断时都要复制GPIO寄存器。它每个端口只有1个字节,因此不会太重。然后,您可以使用当前的寄存器状态屏蔽“上一个”寄存器状态,以检查引脚是否已更改。
以上来自于谷歌翻译 以下为原文 The only thing I can think of is to make a copy of the GPIO register every time the interrupt is called. It's only 1 byte per port so not too heavy. Then you can mask the ''previous'' register status with the current one to check if a pin has changed. |
|
|
|
你好朋友,
我在PORTA上遇到与外部中断有关的问题。 STM8S105中的PA1有外部中断功能吗? 请详细说明参考。 以上来自于谷歌翻译 以下为原文 Hello friends, I have problem related to external interrupt on PORTA. is PA1 in STM8S105 have external interrupt feature ? please explain in detail with reference. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2882 浏览 1 评论
3282 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1861 浏览 1 评论
3711 浏览 6 评论
6125 浏览 21 评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
411浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
510浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
334浏览 2评论
使用STM32F407VET6的USB2.0功能,发现ctl后芯片无数据返回,是什么原因可能导致的呢?
246浏览 2评论
用STM32G431开发工程,1.50版本的Package包文件无法输出项目工程
354浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 20:13 , Processed in 0.980995 second(s), Total 44, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191