GPIO INTs on LPC55S16

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

GPIO INTs on LPC55S16

1,990 Views
JK_265
Contributor III

I would like to use 10 GPIO-based INTs on an LPC5S16.  But 8 seems to be the limit.  8 of my INTs are basically serving he same purpose (just different instances), So I tried making each a minterm for the PINT and having a single handler.  However, MCU Xpresso then prevents me from using two additional pins as INT's - apparently normal INT and PINT (and I assume GINT) are not mutually exclusive?  So I can still only get 8 total?  Can anyone confirm?  My next thing to try would be to logically or 8 instances using Group INT (GINT), but I suspect I will have the same issue.  My final option would be to use 8 INT and 2 secure INT.  Again, I am not certain this would work, plus it would require a hardware change.  Oepn to suggestions...

0 Kudos
Reply
9 Replies

1,975 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

...

0 Kudos
Reply

1,954 Views
JK_265
Contributor III

Hi Alice.

Thanks for the response.   I did try GINT yesterday, but I could not figure out how to change the settings in MCUXpresso.  I am using version 11.5

Thanks.

0 Kudos
Reply

1,941 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @JK_265 

Sorry maybe I misunderstood your meaning before, please ignore my last reply.

Do you want to 10 pins with 10 interrupts? If yes, your method is right, 8 PINTs +2 Secure PINTs.

 

BR

Alice

0 Kudos
Reply

1,926 Views
JK_265
Contributor III

@Alice 

Hi Alice.

I can basically treat 8 of 10 as the same thing - using 1 handler and determining which of the 8 fired in the handler.  SO, I am not sure GINT is out of the question.  My problem (compared to the image you previously posted) is that I can't toggle the enable or polarity bits as you did.  See attachment highlight.  Also, near the left side of my screen, my 'Components' section had more of a block/visual representation where yours seemed to be a list format.  Why?

JK_265_1-1686233069291.png

 

0 Kudos
Reply

1,922 Views
JK_265
Contributor III

@Alice_Yang

Any chance you could repost your original GINT image for comparison?

Thanks.

 

0 Kudos
Reply

1,896 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @JK_265 

If the GINT can meet your requirements, I take a video about how to open and config, please see my attachment.

What about the version of your IDE? Please use the latest version of v11.7. 

If still have issue, please take a video on your side, and send your project to me, I help to check on my side.

 

BR

Alice

0 Kudos
Reply

1,843 Views
JK_265
Contributor III

@Alice_Yang 

Thank you for the video.  My problem is that I do not have the drop down lists of 'On/off' for the enable and 'high/low' for the polarity.  In both cases the second row simply contains the same numbers as the first row, as I have previously posted in a screen capture.

0 Kudos
Reply

1,840 Views
JK_265
Contributor III

Also, I was curious if this might be because the clock for GINT is disabled in AHBCLKCTRL0?
When I look at it in register view, that appears to be the default, but i am not certain how to override it.

When I look at the clocks screen I don't see anything specific to that - it looks like it is intended to run right off the main clock?

I have a feeling my problem is based in the GUI.  I'm suspicious that I could have success by coding this GINT setup by hand - but that would leave it prone to being overwritten by MCUXpresso.

0 Kudos
Reply

1,815 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @JK_265 

1) "I have a feeling my problem is based in the GUI.  I'm suspicious that I could have success by coding this GINT setup by hand - but that would leave it prone to being overwritten by MCUXpresso."

If you did not configure the GINT on MCUXpresso IDE (GUI), your own code wouldn't be overwritten.

 

2) Do you use MCUXpresso IDE, or standalone MCUXpresso configure tool ?

https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-:MCUXPRESSO  

If you want to fix your issue, please send your project , take video or screenshots show issues, thanks.

 

BR

Alice

0 Kudos
Reply