在LPC845如何設定超過 8個GPIOs Input 的 Interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

在LPC845如何設定超過 8個GPIOs Input 的 Interrupt

778 Views
ming-chiangchen
Contributor I

1. 請問LPC845有沒有GPIO Port 的中斷服務,若有,要如何設定 ?

2. 在LPC845 文件中,只說明最多只能單獨設定8個GPIO input 可以使用中斷服務(IN0~IN7),

    那若有10 GPIOs Input 需要使用中斷,那要如何處理,哪裡可以找到文件與sample codes ?

謝謝

Labels (2)
0 Kudos
3 Replies

612 Views
ming-chiangchen
Contributor I

Hi Jeremyzhou,

      謝謝你的回覆

      實際上,我們使用的 input pin 有 27 個 。

      看來要考慮直接採用 pooling 方式來偵測input pin 準位

         

      謝謝

0 Kudos

612 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ming-Chiang Cheng,

不客气。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

612 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ming-Chiang Cheng,

非常感谢使用NXP产品,很高兴为你提供技术支持!
Q1)  在LPC845 文件中,只說明最多只能單獨設定8個GPIO input 可以使用中斷服務(IN0~IN7),
    那若有10 GPIOs Input 需要使用中斷,那要如何處理,哪裡可以找到文件與sample codes?
-- GPIO无法同时支持超过8引脚中断,但是超出的部分可以利用SCTimer或者CTIMER的输入捕获中断来替代。

代码工程可以参考Code Bundle,下载链接如下:https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-corte...


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos