Chetan S

Regarding sending an interrupt to a single GPIO pin and do a wake up

Discussion created by Chetan S on May 23, 2012

My project is based upon the implementation of a 4x3 keypad.

Iam using the Freescale 1322x MCU board.

On the Freescale 1322x board there are 26 pinouts for connections.

Among the 26 pinouts i have selected the pins 13,15,17,19,21,23,25 pinouts.

The gpio pins on the freescale 1322x chip which are associated with these pins are as follows.

1) 13(Pinout) :- GPIO 2(gpio pin on Freescale 1322x chip)
2) 15(Pinout) :- GPIO 22(gpio pin on Freescale 1322x chip)
3) 17(Pinout) :- GPIO 18(gpio pin on Freescale 1322x chip)
4) 19(Pinout) :- GPIO 21(gpio pin on Freescale 1322x chip)
5) 21(Pinout) :- GPIO 12(gpio pin on Freescale 1322x chip)
6) 23(Pinout) :- GPIO 7(gpio pin on Freescale 1322x chip)
7) 25(Pinout) :- GPIO 6(gpio pin on Freescale 1322x chip)

My query is on the 15(Pinout) :- GPIO 22(gpio pin on Freescale 1322x chip) which is linked to KBI_0_HST_WK, i want to send an interrupt along with a callback function(which is my code) and also an event.

So the above should be a keyboard interrupt and a keyboard event.

So kindly let me know the API for the above wherein i can send the interrupt through an external hardware i.e from a key of a 4x3 keypad.

So when i press a key associated with the Pinout 15 an interrupt should go to KBI_0_HST_WK and do a wake up.

Let me know the API's and methods for the above as early as possible.

 

Also kindly let me know if i have to send an interrupt to the a gpio pin lets say GPIO 22 which is associated with  KBI_0_HST_WK should i use the GPIO registers to send the interrupt or the CRM(clock reset module) registers.

 

MATTER MOST URGENT

Thanks & Regards
Chetan Sis

Outcomes