STM8L --- External interrupt

note 1: 

  Several interrupts can be pending at the same time. When an interrupt request is not serviced immediately, it is latched and then processed when its software priority combined with the hardware priority becomes the highest one.

 

note 2:

From reference manuals(RM0031)

如果有多个中断源映射为同一个中断,它们是逻辑或的关系。也就是说,如果有两个同个中断源的中断同时触发中断,可以在中断处理函数通过查询的方式判断哪个中断响应,哪个中断先响应。

外部中断输入脚如果设置为上拉输入,什么问题都没有。如果一个中断源只有一个外部输入脚,设置浮空输入也是没有问题;但是如果一个中断源有两个输入脚,这两个输入脚都要设置为上拉输入,否则其中一个不能响应中断。

 

note 3:

 当中断函数正在执行,此时又来一个本中断源的中断触发,这个触发中断会被屏蔽。

 

 note 4:

 STM8L需要手动清楚中断标志位,STM8S不用

 

 

 

转载于:https://www.cnblogs.com/god-of-death/p/6052321.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值