AnsweredAssumed Answered

EXTI not work correct

Question asked by nguyen_phu.thinh.001 on Aug 4, 2011
Latest reply on Aug 5, 2011 by nguyen_phu.thinh.001
When I use PA6,PD6 is EXTI_Trigger_Rising_Falling.When PA6 go H-->L, it generate interrupt, but When I keep PA6 still Low, and PD6 go H-->L, it not generate interrupt.
Please help me.
void main()
{
    CLK_SYSCLKDivConfig(CLK_SYSCLKDiv_1); 

    GPIO_Init(GPIOD ,GPIO_Pin_6, GPIO_Mode_In_FL_IT);
    GPIO_Init(GPIOA ,GPIO_Pin_6, GPIO_Mode_In_FL_IT);

    EXTI_SetPinSensitivity(EXTI_Pin_6, EXTI_Trigger_Rising_Falling);

    enableInterrupts();
    while (1)
    {
    };
}


/**
  * @brief External IT PIN6 Interrupt routine.
  * @param  None
  * @retval None
  */
INTERRUPT_HANDLER(EXTI6_IRQHandler,14)
{
    /* In order to detect unexpected events during development,
       it is recommended to set a breakpoint on the following instruction.
    */
    if(GPIO_ReadInputDataBit(GPIOA ,GPIO_Pin_6)== RESET)
        Conut1_count++;
       
    else if(GPIO_ReadInputDataBit(GPIOD ,GPIO_Pin_6)== RESET)
        Conut2_count++;

     EXTI_ClearITPendingBit(EXTI_IT_Pin6);
 
}

Tks all


Outcomes