搜索资源列表
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的状态
uCOS
- UCOS工程,采用keil开发工具开发,程序中基于stm32v100处理器. 在uC/OS-II中建立3个任务Taskled、Tasktep、Taskadc和三个中断。 Taskled初始化时,LED 依次点亮,当按下 Key 键时产生中断。 中断服务子程序内容:灯全部熄灭,2 秒钟后发光二极管全部点亮,再过 1 秒钟后中断返回。 Tasktep用来实时检测温度传感器u4的温度。STM32通过IIC接口获取温度传感器的温度。 Task
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
STM-Tim2
- 关于STM32时钟的应用调试代码。对于想熟悉STM32的朋友很有帮助的。-The application of the clock on the STM32 debug code. Familiar with the STM32 friends who want to be helpful.
PWM_Output_Input
- 用TIM3定时器在PA6、PA7、PB0、PB1输出四种频率相同占空比分别是50 、37.5 、25 、12.5 的信号。 用TIM2的PWM_Input功能,从PA1口捕获PWM信号的频率及占空比,并用USART1输出测量信息。-At TIM3 timer with PA6, PA7, PB0, PB1 output frequency of the same four are 50 duty cycle, respectively, 37.5 , 25 , 12.5 of the
spwm
- STM32产生SPWM波形,包括RCC,GPIO,TIM2,TIM1,NVIC的设置。-STM32 produce the the SPWM main program, including the RCC, GPIO, the NVIC, TIM2 ,TIM1
STM32_TIM2
- STM32的一个tim2的例子代码,有详细的关于TIM2的配置和使用方法等。测试平台STM32F103C8t6-Tim2 of the STM32 code examples, detailed on the TIM2 the configuration and use. Test platform STM32F103C8t6
PWM
- STM32 TIM2的定时器控制4路PWM 控制电机的速度-The STM32 TIM2 timer control the speed of the the 4 PWM control motor
TIM2-CH1
- STM32 中的TIME2捕获中断CH1通道应用 -The STM32 in TIME2 capture interrupts CH1 channel applications
TIM2-output-two-PWM-signal.
- STM32 在keil环境下的编程 定时器TIM2能够输出两路PWM信号。-STM32 Timer programming in keil environment is the TIM2 able to output two PWM signal.
STM32-triangle-wave
- stm32生产三角波程序利用内部DAC和TIM2,不使用DMA,三角波由PA4输出-stm32 triangular wave production process using internal DAC and TIM2, do not use DMA, triangle wave output by the PA4
STM32-AD-TIM
- 基于STM32单片机的TIM2定时器触发AD转换,控制AD的转换速率,弥补DMA传输速度过快导致数据处理混乱的问题。-Trigger AD conversion is based STM32 microcontroller TIM2 timer controls the AD conversion rate to make up for excessive speed DMA transfer of data processing leads to confusion problems.
stm32-modbus-USART1-TIM2
- 用stm32的usart1和tim2模块实现了modbus从站协议。IAR编译环境。-usart1 and tim2 module implements modbus slave protocol. IAR compiler environment.
STM32-ADC-oversampling
- 使用STM32单片机ADC模块的过采样技术使采样值更稳定,是一种时间换精度的方法。-This firmware gives the STM32 ADC oversampling using triangular dither. This method consists on adding a triangular signal to the input signal and sampling it with a rate. The timer TIM2 is used to g
master-tim2-slave-tim4-PWM
- stm32定时器的例程,功能就是采用主定时器tim2 从定时器为tim4 输出指定脉冲数-stm32 timer routine function is to use the master timer tim2 tim4 output the timer to specify the number of pulses
stm32f10x_temple-nb-1401011140
- stm32开发板上通过配置tim2的通道1通道2和tim3的4个通道,产生六路pwm输出波,与l298n模块相连接,控制并实现三个减速电机的变速(STM32 development board, through configuring TIM2 channels, 1 channels, 2 and tim3 4 channels, generates six PWM output waves, and is connected with L298N module, controlling an
Motor_Control - A)O
- 使用STM32F103C8T6的TIM2四路按键可控PWM输出程序(Using STM32F103C8T6's TIM2 four button controlled PWM output program)
8路PWN
- 用两个定时器TIM2和TIM4输出8路的PWM(Output 8-channel PWM with two timers)
TIM-高级控制定时器PWM输出
- stm32F103 TIM1输出7路PWM STM32F103ZET6总共有8个定时器,TIM1和TIM8是高级控制定时器,TIM2、3、4、5是通用定时器, TIM6和TIM7是基本定时器。 本例程实现高级控制定时器TIM1总共7个功能引脚输出PWM波形。(STM32F103ZET6 has 8 timers in total, TIM1 and TIM8 are advanced control timers. This routine implements an advance
pid
- 基于stm32的寻迹小车PID算法解析 开发目标1:TIM1的4个通道生成PWM,CH1—PWM1 CH2—PWM2 CH3—PWM3 CH4—PWM4 TIM8的4个通道生成PWM,CH1—PWM5 CH2—PWM6 CH3—PWM7 CH4—PWM8 开发目标2:TIM7作为定时器中断,产生固定的时间间隔,便于计算电机及落地码盘的速度(单位时间间隔脉冲增量) 开发目标3:TIM2、TIM3、TIM4、TIM5作为编码器接口,读取编码器