How do I configure Group GPIO interrupt to SCT capture event ?

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

How do I configure Group GPIO interrupt to SCT capture event ?

886 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kitahei88 on Thu May 28 19:12:26 MST 2015
Hello,
This is first time for me to use NXP MCU.
I use LPCXpresso 1549.

I want to make multi-button logging device.
I want to get the timing of bidirectional edge trigger for 26 buttons.

I think that SCT capture event cannot set a lot of GPIO triggers.
So I want to use Group GPIO interrupt for SCT capture event .
Is it possible?

If it isn't , another way I think is that getting SCT count value in Group GPIO interrupt handler.
But I think that this way has delay for actual counter timing value.

Does anyone have any idea?
Thank you.

kitahie88
Labels (1)
0 Kudos
Reply
3 Replies

841 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri May 29 19:10:38 MST 2015
I'm not sure why you want to trigger a SCT...

You can't trigger an event direct, but of course you can connect a GPIO to an INMUX pin of SCT and switch it...
0 Kudos
Reply

841 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kitahei88 on Fri May 29 17:00:36 MST 2015
Thank you for reply.

Yes,I know GINT intterupt cannot detect bidirectional edge.
So I'll configure GINT0 and GINT1 as you mentioned.

The thing I really want to know is How to create SCT EVENT triggered by GINT interrupt ,Or is it impossible?

If it is impossible ,  I'll get counter value in GINT interrupt handler.

I use LPC1549JBD64(LQFP64 package).


0 Kudos
Reply

841 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri May 29 04:05:32 MST 2015

Quote: kitahei88
Does anyone have any idea?



Use Group interrupt. It's no problem to detect 26 buttons there...

Unfortunately you can't detect rising and falling edges simultaneously  :((

So you can use GINT0 to detect falling edges and GINT1 to detect rising edges of the same pin  :) 
0 Kudos
Reply