How to configure GPIO9 pins as input with interrupt in i.MX RT1170

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

How to configure GPIO9 pins as input with interrupt in i.MX RT1170

Jump to solution
471 Views
sanjana291
Contributor III

Hello,
I am working on the i.MX RT1170.
In my project, I have some pins from GPIO9 configured as inputs.
However, in the SDK examples, I do not see a dedicated IRQ handler for GPIO9 (like GPIO9_Combined_x_y_IRQHandler).

I want to enable interrupts for these GPIO9 input pins, but I am not sure:

  1. Which IRQ number/handler should I use for GPIO9 in the i.MX RT1170?

  2. If GPIO9 does not have its own IRQ, is it combined with another port's IRQ?

0 Kudos
Reply
1 Solution
447 Views
mayliu1
NXP Employee
NXP Employee

I suggest you refer to the following link.

https://blog.csdn.net/Oushuwen/article/details/121994692

There are more detail description about GPIO interrupt in RT1170.

Best Regards

View solution in original post

3 Replies
457 Views
mayliu1
NXP Employee
NXP Employee

Hi @sanjana291 ,

Thank you so much for your interest in our products and for using our community.

Regarding your question "Which IRQ number/handler should I use for GPIO9 in the i.MX RT1170? " and  "If GPIO9 does not have its own IRQ, is it combined with another port's IRQ?"

In RT1170 chip, GPIO9 can use  interrupt number 99.

mayliu1_2-1754899480744.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 Kudos
Reply
452 Views
sanjana291
Contributor III
I'm asking about GPIO9, can we use GPIO3's IRQ for this instead? but GPIO9 has an IRQ on the CM4
0 Kudos
Reply
448 Views
mayliu1
NXP Employee
NXP Employee

I suggest you refer to the following link.

https://blog.csdn.net/Oushuwen/article/details/121994692

There are more detail description about GPIO interrupt in RT1170.

Best Regards

%3CLINGO-SUB%20id%3D%22lingo-sub-2149746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20configure%20GPIO9%20pins%20as%20input%20with%20interrupt%20in%20i.MX%20RT1170%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149746%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3EI%20am%20working%20on%20the%20i.MX%20RT1170.%3CBR%20%2F%3EIn%20my%20project%2C%20I%20have%20some%20pins%20from%20%3CSTRONG%3EGPIO9%3C%2FSTRONG%3E%20configured%20as%20inputs.%3CBR%20%2F%3EHowever%2C%20in%20the%20SDK%20examples%2C%20I%20do%20not%20see%20a%20dedicated%20IRQ%20handler%20for%20GPIO9%20(like%20GPIO9_Combined_x_y_IRQHandler).%3C%2FP%3E%3CP%3EI%20want%20to%20enable%20interrupts%20for%20these%20GPIO9%20input%20pins%2C%20but%20I%20am%20not%20sure%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3EWhich%20IRQ%20number%2Fhandler%20should%20I%20use%20for%20GPIO9%20in%20the%20i.MX%20RT1170%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIf%20GPIO9%20does%20not%20have%20its%20own%20IRQ%2C%20is%20it%20combined%20with%20another%20port's%20IRQ%3F%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150017%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20configure%20GPIO9%20pins%20as%20input%20with%20interrupt%20in%20i.MX%20RT1170%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150017%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20suggest%20you%20refer%20to%20the%20following%20link.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblog.csdn.net%2FOushuwen%2Farticle%2Fdetails%2F121994692%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.csdn.net%2FOushuwen%2Farticle%2Fdetails%2F121994692%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThere%20are%20more%20detail%20description%20about%20GPIO%20interrupt%20in%20RT1170.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150007%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20configure%20GPIO9%20pins%20as%20input%20with%20interrupt%20in%20i.MX%20RT1170%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150007%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI'm%20asking%20about%20GPIO9%2C%20can%20we%20use%20GPIO3's%20IRQ%20for%20this%20instead%3F%20but%20GPIO9%20has%20an%20IRQ%20on%20the%20CM4%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20configure%20GPIO9%20pins%20as%20input%20with%20interrupt%20in%20i.MX%20RT1170%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250071%22%20target%3D%22_blank%22%3E%40sanjana291%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20so%20much%20for%20your%20interest%20in%20our%20products%20and%20for%20using%20our%20community.%3C%2FP%3E%0A%3CP%3ERegarding%20your%20question%20%22Which%20IRQ%20number%2Fhandler%20should%20I%20use%20for%20GPIO9%20in%20the%20i.MX%20RT1170%3F%20%22%20and%26nbsp%3B%20%22If%20GPIO9%20does%20not%20have%20its%20own%20IRQ%2C%20is%20it%20combined%20with%20another%20port's%20IRQ%3F%22%3C%2FP%3E%0A%3CP%3EIn%20RT1170%20chip%2C%20GPIO9%20can%20use%26nbsp%3B%20interrupt%20number%2099.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_2-1754899480744.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_2-1754899480744.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351746i35A4EE43B9970EEA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_2-1754899480744.png%22%20alt%3D%22mayliu1_2-1754899480744.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWish%20it%20helps%20you.%3CBR%20%2F%3EIf%20you%20still%20have%20question%20about%20it%2C%20please%20kindly%20let%20me%20know.%3C%2FP%3E%0A%3CP%3EWish%20you%20a%20nice%20day!%3C%2FP%3E%0A%3CP%3EBest%20Regards%3CBR%20%2F%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E