Ahmad Yahya

K20D50M External interrupt

Discussion created by Ahmad Yahya on Mar 12, 2013
Latest reply on Mar 12, 2013 by Ahmad Yahya

What are the steps to start using the External interrupt in my app ?

 

I mapped the ISR name to the interrupt vector table no, and configured PORTCPIN10 as below

 

//Configure external interrupt & GPIO & PE & PS
PORTC_PCR10 = PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_IRQC(10) | PORT_PCR_ISF_MASK | PORT_PCR_MUX(1) ;

    GPIOC_PDDR &= ~(PORTC_PIN10_MASK);   //Configure PORTC_PIN10 -- as input

 

Outcomes