cancel
Showing results for 
Search instead for 
Did you mean: 

External Interrupt?

pinwu
Associate II
Posted on January 18, 2008 at 18:27

External Interrupt?

11 REPLIES 11
pinwu
Associate II
Posted on May 17, 2011 at 12:21

For the evaluation board, the demo used polling and interrupt for up/down/left/right keys. I set a break point in the up interrupt. I found that I never got this break point. If I set a break point in the polling, I really got a stop there. Is there anybody who makes an external interrupt work? If yes, please post an example.

Thank You.

16-32micros
Associate III
Posted on May 17, 2011 at 12:21

It seems a problem in your debugger/toolchain , which tool are you using there ?

pinwu
Associate II
Posted on May 17, 2011 at 12:21

I am using IAR system.

zouhair
Associate II
Posted on May 17, 2011 at 12:21

Hi,

The ''ARM-based 32-bit MCU STM32F101xx and STM32F103xx'' firmware library contains an example(EXTI) which shows how to configure an external interrupt line.

The firmware library is available @:

http://www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=110#Firmware

pinwu
Associate II
Posted on May 17, 2011 at 12:21

Quote:

On 17-01-2008 at 16:59, Anonymous wrote:

Hi,

The ''ARM-based 32-bit MCU STM32F101xx and STM32F103xx'' firmware library contains an example(EXTI) which shows how to configure an external interrupt line.

The firmware library is available @:

http://www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=110#Firmware

Thank You,

From this example, I found that

EXTI_GenerateSWInterrupt(EXTI_Line9);

can generate an interrupt that I could catch. However, I want a hardware voltage falling edge to generate an interrupt directly. Is that possible?

[ This message was edited by: pinwu1 on 17-01-2008 17:39 ]

pinwu
Associate II
Posted on May 17, 2011 at 12:21

I can get EXTI4 only.

pinwu
Associate II
Posted on May 17, 2011 at 12:21

I am looking into the problem which may be in my protype board.

pinwu
Associate II
Posted on May 17, 2011 at 12:21

Not hardware problem. It looks for me to set clock, GPIO, SPI, USART2 and external interrupts together with something conflict.

pinwu
Associate II
Posted on May 17, 2011 at 12:21

I found the problem.

It is necessary to set the clock RCC_APB2Periph_AFIO for hardware external interrupts working.