Questions tagged «gpio-external-interrupt»

4
STM32F303 MCU的中断等待时间
我正在一个涉及STM32 MCU(确切地说是STM32303C-EVAL板上)的项目中,该项目必须响应外部中断。我希望对外部中断的反应尽可能快。我已经从ST网页上修改了一个标准外围设备库示例,并且当前程序仅在PE6的每个连续上升沿切换一个LED: #include "stm32f30x.h" #include "stm32303c_eval.h" EXTI_InitTypeDef EXTI_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; NVIC_InitTypeDef NVIC_InitStructure; static void EXTI9_5_Config(void); int main(void) { /* Initialize LEDs mounted on STM32303C-EVAL board */ STM_EVAL_LEDInit(LED1); /* Configure PE6 in interrupt mode */ EXTI9_5_Config(); /* Infinite loop */ while (1) { } } // Configure PE6 and PD5 in …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.