2384 views|9 replies

3184

Posts

0

Resources
The OP
 

Can CC2541 support 10 external interrupts? [Copy link]

I want to use CC2541 to make a remote control with 10 buttons, low power sleep, and external interrupt wake-up.

I have a question, the STM32 external interrupt IO port numbers cannot be repeated. For example, PA5 and PB5 cannot be used together.

CC2541 P0, P1, P2 only have 8 IO ports. I would like to ask, if there are 10 buttons and 10 external interrupts, will it work?

Will they interfere with each other? Thank you!

This post is from Wireless Connectivity

Latest reply

I can only laugh...   Details Published on 2019-8-24 19:38
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

1w

Posts

142

Resources
2
 

If the MCU supports so many external interrupts, then of course they can be used directly. The interrupts will not interfere with each other, but there will be priorities. However, I have not seen or even heard of an MCU that supports so many external interrupts. In fact, there is no need for so many external interrupts. One is enough. The buttons can summarize the interrupt requests through the logic circuit. Some MCUs support multiple input external interrupt sources, but there is only one interrupt. In fact, the same method is used, but it is integrated into the internal.

This post is from Wireless Connectivity

Comments

Thank you! Doesn't STM32 have many external interrupts, from 0 to 15?  Details Published on 2019-8-24 14:01
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

3184

Posts

0

Resources
3
 
chunyang posted on 2019-8-24 13:51 If the MCU supports so many external interrupts, then of course you can use them directly, the interrupts will not interfere with each other, but there will be priorities. However, an MCU that supports so many external interrupts ...

Thank you! Doesn't STM32 have many external interrupts, from 0 to 15?

This post is from Wireless Connectivity

Comments

If your model has it, use it.  Details Published on 2019-8-24 18:21
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 
 

1w

Posts

142

Resources
4
 
chenbingjy posted on 2019-8-24 14:01 Thank you! Isn't there a lot of STM32 external interrupts, from 0 to 15.

If your model has it, use it.

This post is from Wireless Connectivity

Comments

Got it. I asked the customer service and they said it was possible.  Details Published on 2019-8-24 18:25
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

3184

Posts

0

Resources
5
 
chunyang posted on 2019-8-24 18:21 If the model you are using has it, just use it.

Got it. I asked the customer service and they said it was possible.

This post is from Wireless Connectivity

Comments

I'm afraid the customer service won't know the technical details...  Details Published on 2019-8-24 19:03
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 
 

1w

Posts

142

Resources
6
 

I checked and found that different ports of STM32 cannot enable external interrupts at the same time because the internal interrupt processing circuit is shared, as I mentioned in my previous post. Although this situation can provide external interrupts for all IOs in a time-sharing manner, it cannot be truly simultaneous. In view of this, you need to pay close attention to your program structure and enable external interrupts for different ports in turn. In other words, your PA and PB ports must enable interrupts in turn, and the time must be short enough to simulate full IO interrupts.

This post is from Wireless Connectivity
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

1w

Posts

142

Resources
7
 
chenbingjy posted on 2019-8-24 18:25 Got it. I asked the customer service and they said it was OK.

I'm afraid the customer service won't know the technical details...

This post is from Wireless Connectivity

Comments

Technical customer service.  Details Published on 2019-8-24 19:30
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

3184

Posts

0

Resources
8
 
chunyang posted on 2019-8-24 18:36 I checked and found that different ports of STM32 cannot enable external interrupts at the same time because the internal interrupt processing circuit is shared, as I mentioned in my previous post. This...

I have tried it, and it works as long as the corresponding number of the IO port is different.

For example, I use STM32L151C8T6, which has 10 external interrupt ports.

12345678...

PA and PB can be mixed as long as the numbers are not repeated.

For example, I use PA1, PB2, PA3, PB4, PA5, PB6... like this.

This post is from Wireless Connectivity
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 
 

3184

Posts

0

Resources
9
 
chunyang posted on 2019-8-24 19:03 I'm afraid the customer service doesn't know the technical details...

Technical customer service.

This post is from Wireless Connectivity

Comments

I can only laugh...  Details Published on 2019-8-24 19:38
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 
 

1w

Posts

142

Resources
10
 
chenbingjy posted on 2019-8-24 19:30 Technical customer service.

I can only laugh...

This post is from Wireless Connectivity
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>
Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list