2008-01-18 09:27 AM
External Interrupt?
2011-05-17 03:21 AM
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.2011-05-17 03:21 AM
It seems a problem in your debugger/toolchain , which tool are you using there ?
2011-05-17 03:21 AM
I am using IAR system.
2011-05-17 03:21 AM
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
2011-05-17 03:21 AM
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 ]2011-05-17 03:21 AM
I can get EXTI4 only.
2011-05-17 03:21 AM
I am looking into the problem which may be in my protype board.
2011-05-17 03:21 AM
Not hardware problem. It looks for me to set clock, GPIO, SPI, USART2 and external interrupts together with something conflict.
2011-05-17 03:21 AM
I found the problem.
It is necessary to set the clock RCC_APB2Periph_AFIO for hardware external interrupts working.