搜索资源列表
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的状态
STM32+TIM.rar
- 本例展示了如何设置TIM工作在输出比较-非主动模式(Output Compare Inactive mode),并产生相应的中断。 TIM2时钟设置为36MHz,预分频设置为35999,TIM2计数器时钟可表达为: TIM2 counter clock = TIMxCLK / (Prescaler +1) = 1 KHz 设置TIM2_CCR1寄存器值为1000, CCR1寄存器值1000除以TIM2计数器时钟频率1KHz,为1000毫秒。因此,经过1000毫秒的时延,置PC.06
stm32-Frequency-meter
- 使用stm32通用计数器做的一个简易频率计,可以算出脉冲宽度还有其占空比-Done using a general-purpose counter stm32 simple frequency counter, you can calculate the pulse width as well as its duty cycle
counter
- stm32的定时器计数 能够对外来的触发进行计数-stm32 timer counter
stm32tim1PWM
- 利用stm32高级计数器tim1同时产生四路PWM,其它定时器也可以产生四路,可模仿该例子设置寄存器-Stm32 senior counter tim1 use while producing four PWM, timers can also produce other four, mimic the example set register
STM32-counter
- STM32 使用外部中断作为计数器 可以通过串口查看计数值 还有暂停计数功能-STM32 using an external interrupt can still be suspended as a counter counting functions via the serial port to view the count value
STM32EncoderConfig
- STM32定时的编码器模式配置,可用串口打印到上位机上查看,并解决了编码器计数器溢出的问题。-STM32 timer encoder mode configuration, available serial printer to the host computer to view, and to address the encoder counter overflow problem.
STM32
- 本实验将实现如下功能:本实验DS0用来指示程序运行,400ms为一个周期。DS1用于定时器中断取反,指示定时器中断状态,1000ms为一个周期。下载完后,可以看到DS0快闪,DS1慢闪。 -This experiment will achieve the following functions: this experiment DS0 used to indicate the program to run, 400ms for a cycle. DS1 for timer interrupt
16-STM32_TIM_4-different-freqencies
- STM32定时计数器应用之定时产生四种频率波形-STM32 application of the timing of the timing counter produce four frequency waveform
stm32fre
- stm32通用计数器频率计, 可以测频率,但不能测太高。-Stm32 universal counter frequency meter
STM32独立看门狗程序
- 本源码为基于STM32的独立看门狗工作原理实验,配置寄存器IWDG_KR ,设定预分频和计数器初值(This source code is based on STM32 independent watchdog working principle experiment, configuration register IWDG_KR, setting preset frequency and counter initial value.)
计数器
- 可以实现0~9999秒计数功能的计数器,每隔1s钟计数一次(Counter for 0-9999 seconds, one unit per second)