cancel
Showing results for 
Search instead for 
Did you mean: 

External interrupt with ir sensor

ekta
Associate II
Posted on June 26, 2015 at 15:27

Hello I m trying to generate a interrupt using ir output but external interrupt is not responding.Im using stm8s003f3 and stvd .And it do respond with external interrupt as switch .

 EXTI_SetExtIntSensitivity(EXTI_PORT_GPIOC,EXTI_SENSITIVITY_RISE_FALL );

&sharpifdef _COSMIC_

@far @interrupt void EXTI_PORTC_IRQHandler(void)

&sharpelse /* _RAISONANCE_ */

void EXTI_PORTC_IRQHandler(void) interrupt 5

&sharpendif /* _COSMIC_ */

{

    

    GPIO_WriteReverse(LEDS_PORT,LED1_PIN );

  

}

#stm8s
1 REPLY 1
ekta
Associate II
Posted on July 13, 2015 at 16:22

Can any one tell me how to disable external interrupt ?