文件名称:STM32+EXTI.rar
介绍说明--下载内容来自于网络,使用问题请自行百度
本例展示了如何使用嵌套中断向量控制器(Nested Vectored Interrupt Controller)来设置IRQ通道。
把3个计时器(TIM2,3,4)设置为在每一个计数器更新事项(counter update event)产生中断。这三个计时器都与各自对应的更新IRQ通道联系起来,并设置他们的中断优先级,TIM2为0,TIM4为2。
在他们各自的中断中:TIM2每1秒翻转一次PC.06的状态;TIM3每2秒翻转一次PC.07的状态;TIM4每3秒翻转一次PC.08的状态。
由于在STM3210B-LK1板上, 4个LED连接在PC.04 – PC.07,而不是STM3210B-EVAL上的PC.06 – PC.09,因此,程序要做相应的改动。,This example demonstrates how to use the nested vector interrupt controller (Nested Vectored Interrupt Controller) to set the IRQ channel. The three timers (TIM2, 3,4) is set to update a counter in each matter (counter update event) generate an interrupt. The three timers are updated with their corresponding IRQ channel link and set up their Interrupt Priority, TIM2 to 0, TIM4 to 2. In their respective interrupt in: TIM2 once every 1 seconds flip PC.06 state TIM3 once every two seconds flip PC.07 state TIM4 once every three seconds flip PC.08 state. As STM3210B-LK1-board, 4 LED connected PC.04- PC.07, rather than STM3210B-EVAL on PC.06- PC.09, therefore, corresponding changes to procedures to be done.
把3个计时器(TIM2,3,4)设置为在每一个计数器更新事项(counter update event)产生中断。这三个计时器都与各自对应的更新IRQ通道联系起来,并设置他们的中断优先级,TIM2为0,TIM4为2。
在他们各自的中断中:TIM2每1秒翻转一次PC.06的状态;TIM3每2秒翻转一次PC.07的状态;TIM4每3秒翻转一次PC.08的状态。
由于在STM3210B-LK1板上, 4个LED连接在PC.04 – PC.07,而不是STM3210B-EVAL上的PC.06 – PC.09,因此,程序要做相应的改动。,This example demonstrates how to use the nested vector interrupt controller (Nested Vectored Interrupt Controller) to set the IRQ channel. The three timers (TIM2, 3,4) is set to update a counter in each matter (counter update event) generate an interrupt. The three timers are updated with their corresponding IRQ channel link and set up their Interrupt Priority, TIM2 to 0, TIM4 to 2. In their respective interrupt in: TIM2 once every 1 seconds flip PC.06 state TIM3 once every two seconds flip PC.07 state TIM4 once every three seconds flip PC.08 state. As STM3210B-LK1-board, 4 LED connected PC.04- PC.07, rather than STM3210B-EVAL on PC.06- PC.09, therefore, corresponding changes to procedures to be done.
相关搜索: stm32 EXTI
stm32
stm32 interrupt example
stm32 tim2
stm32 interrupt
stm32 irq tutorial
stm32 interrupt tutorial
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文件夹/settings/tim_text2.cspy.bat
新建文件夹/settings/tim_text2.dni
新建文件夹/settings/tim_text2.dbgdt
新建文件夹/settings/exti.cspy.bat
新建文件夹/settings/exti.dbgdt
新建文件夹/settings/exti.dni
新建文件夹/cortexm3_macro.h
新建文件夹/stm32f10x_adc.h
新建文件夹/stm32f10x_bkp.h
新建文件夹/stm32f10x_can.h
新建文件夹/stm32f10x_dma.h
新建文件夹/stm32f10x_exti.h
新建文件夹/stm32f10x_flash.h
新建文件夹/stm32f10x_gpio.h
新建文件夹/stm32f10x_i2c.h
新建文件夹/stm32f10x_iwdg.h
新建文件夹/stm32f10x_lib.h
新建文件夹/stm32f10x_map.h
新建文件夹/stm32f10x_nvic.h
新建文件夹/stm32f10x_pwr.h
新建文件夹/stm32f10x_rcc.h
新建文件夹/stm32f10x_rtc.h
新建文件夹/stm32f10x_spi.h
新建文件夹/stm32f10x_systick.h
新建文件夹/stm32f10x_tim1.h
新建文件夹/stm32f10x_tim.h
新建文件夹/stm32f10x_type.h
新建文件夹/stm32f10x_usart.h
新建文件夹/stm32f10x_wwdg.h
新建文件夹/stm32f10x_adc.c
新建文件夹/stm32f10x_bkp.c
新建文件夹/stm32f10x_can.c
新建文件夹/stm32f10x_dma.c
新建文件夹/stm32f10x_exti.c
新建文件夹/stm32f10x_flash.c
新建文件夹/stm32f10x_gpio.c
新建文件夹/stm32f10x_i2c.c
新建文件夹/stm32f10x_iwdg.c
新建文件夹/stm32f10x_lib.c
新建文件夹/stm32f10x_nvic.c
新建文件夹/stm32f10x_pwr.c
新建文件夹/stm32f10x_rcc.c
新建文件夹/stm32f10x_rtc.c
新建文件夹/stm32f10x_spi.c
新建文件夹/stm32f10x_systick.c
新建文件夹/stm32f10x_tim1.c
新建文件夹/stm32f10x_usart.c
新建文件夹/stm32f10x_wwdg.c
新建文件夹/main.c
新建文件夹/readme.txt
新建文件夹/stm32f10x_conf.h
新建文件夹/stm32f10x_it.h
新建文件夹/lnkarm_flash.xcl
新建文件夹/tim_text2.eww
新建文件夹/tim_text2.ewd
新建文件夹/tim_text2.dep
新建文件夹/exti.eww
新建文件夹/exti.ewd
新建文件夹/exti.dep
新建文件夹/stm32f10x_it.c
新建文件夹/stm32f10x_tim.c
新建文件夹/settings
新建文件夹/Debug
新建文件夹
新建文件夹/settings/tim_text2.dni
新建文件夹/settings/tim_text2.dbgdt
新建文件夹/settings/exti.cspy.bat
新建文件夹/settings/exti.dbgdt
新建文件夹/settings/exti.dni
新建文件夹/cortexm3_macro.h
新建文件夹/stm32f10x_adc.h
新建文件夹/stm32f10x_bkp.h
新建文件夹/stm32f10x_can.h
新建文件夹/stm32f10x_dma.h
新建文件夹/stm32f10x_exti.h
新建文件夹/stm32f10x_flash.h
新建文件夹/stm32f10x_gpio.h
新建文件夹/stm32f10x_i2c.h
新建文件夹/stm32f10x_iwdg.h
新建文件夹/stm32f10x_lib.h
新建文件夹/stm32f10x_map.h
新建文件夹/stm32f10x_nvic.h
新建文件夹/stm32f10x_pwr.h
新建文件夹/stm32f10x_rcc.h
新建文件夹/stm32f10x_rtc.h
新建文件夹/stm32f10x_spi.h
新建文件夹/stm32f10x_systick.h
新建文件夹/stm32f10x_tim1.h
新建文件夹/stm32f10x_tim.h
新建文件夹/stm32f10x_type.h
新建文件夹/stm32f10x_usart.h
新建文件夹/stm32f10x_wwdg.h
新建文件夹/stm32f10x_adc.c
新建文件夹/stm32f10x_bkp.c
新建文件夹/stm32f10x_can.c
新建文件夹/stm32f10x_dma.c
新建文件夹/stm32f10x_exti.c
新建文件夹/stm32f10x_flash.c
新建文件夹/stm32f10x_gpio.c
新建文件夹/stm32f10x_i2c.c
新建文件夹/stm32f10x_iwdg.c
新建文件夹/stm32f10x_lib.c
新建文件夹/stm32f10x_nvic.c
新建文件夹/stm32f10x_pwr.c
新建文件夹/stm32f10x_rcc.c
新建文件夹/stm32f10x_rtc.c
新建文件夹/stm32f10x_spi.c
新建文件夹/stm32f10x_systick.c
新建文件夹/stm32f10x_tim1.c
新建文件夹/stm32f10x_usart.c
新建文件夹/stm32f10x_wwdg.c
新建文件夹/main.c
新建文件夹/readme.txt
新建文件夹/stm32f10x_conf.h
新建文件夹/stm32f10x_it.h
新建文件夹/lnkarm_flash.xcl
新建文件夹/tim_text2.eww
新建文件夹/tim_text2.ewd
新建文件夹/tim_text2.dep
新建文件夹/exti.eww
新建文件夹/exti.ewd
新建文件夹/exti.dep
新建文件夹/stm32f10x_it.c
新建文件夹/stm32f10x_tim.c
新建文件夹/settings
新建文件夹/Debug
新建文件夹
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
