lpcware

Interrupt falling edges LPC1114

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by drvrh on Wed Jul 22 01:38:19 MST 2015
Hello I must moving my project from LPC1769 to LPC1114 and I don't know how to set interrupt.

in LPC1769 I have:


//interrupt initialization
void IOIntInit(){
LPC_GPIOINT -> IO0IntEnF = (1 << UPbutton_PIN) | (1 << MENUTIPKA_PIN) | (1 << HOLDTIPKA_PIN) | (1 << EXITTIPKA_PIN) | (1 << LEFTTIPKA_PIN);
NVIC_EnableIRQ(EINT3_IRQn);
}


void EINT3_IRQHandler(void){
counter1++;
if((LPC_GPIOINT -> IO0IntStatF) & (1 << UPTbutton_PIN)){
if(counter1 == 1){
__disable_irq();
_delay_ms(150);
LPC_GPIOINT -> IO0IntClr |= (1 << UPbutton_PIN);
flagIO1 = 1;
......
.....
....


And now I don't know how I set interrupt with falling edge detect for LPC1114.

     void IOIntInit(){
//interrupt initialization
     LPC_GPIO0 -> IE = (1 << UPbutton_PIN);
         NVIC_EnableIRQ(EINT0_IRQn);
     }


But I have no Idea how detect falling edg with register IEV.

Outcomes