Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

AM1808 GPIO Intertupt Question

$
0
0

Hi:

      now i use the GPIO6[9] as a  input and  intertupt port of the remote button.If  the remote button is pressed ,the GPIO6[9] will receive the  singal pusle.

The details as below:

PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE);

 GPIOBank6Pin9PinMuxSetup();

GPIODirModeSet(SOC_GPIO_0_REGS, 106, GPIO_DIR_INPUT);

GPIOIntTypeSet(SOC_GPIO_0_REGS, 106, GPIO_INT_TYPE_FALLEDGE);

IntAINTCInit();

IntMasterIRQEnable();

IntGlobalEnable();

IntIRQEnable();

IntRegister(SYS_INT_GPIOB6, IrKeyIsr);
IntChannelSet(SYS_INT_GPIOB6, channel);

IntSystemEnable(SYS_INT_GPIOB6);

GPIOBankIntEnable(SOC_GPIO_0_REGS, 6);

According to the remote pulse ,if i press the button ,the GPIO interrupt will toggle 34 times at least,but now it only can toggle 23 times.

Please help me to solve the problem,thanks.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>