GPIO INTs on LPC55S16

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO INTs on LPC55S16

2,159件の閲覧回数
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 件の賞賛
返信
9 返答(返信)

2,144件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

...

0 件の賞賛
返信

2,123件の閲覧回数
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 件の賞賛
返信

2,110件の閲覧回数
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 件の賞賛
返信

2,095件の閲覧回数
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 件の賞賛
返信

2,091件の閲覧回数
JK_265
Contributor III

@Alice_Yang

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

Thanks.

 

0 件の賞賛
返信

2,065件の閲覧回数
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 件の賞賛
返信

2,012件の閲覧回数
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 件の賞賛
返信

2,009件の閲覧回数
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 件の賞賛
返信

1,984件の閲覧回数
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 件の賞賛
返信