-
111
步进电机驱动,微处理器为S3C2410,具有调节转速功能(Stepper motor drive, microprocessor S3C2410, adjust the speed function with)
- 2011-05-21 21:36:05下载
- 积分:1
-
DW5743225432
STM32项目实战之RTC时间戳功能实现代码,对于初学者来说,是有非常的帮助效果的(RTC time stamp function STM32 project combat the realization of the code, for beginners, it is very help effect)
- 2016-03-15 09:43:35下载
- 积分:1
-
example6_TIM
本例展示了如何设置TIM,用它来测量一个外部输入信号的频率和占空比。
TIM2时钟设置为72MHz,预分频设置为0,TIM2计数器时钟可表达为:
TIM2 counter clock = TIMxCLK / (Prescaler +1) = 72 MHz,因此可测量的最小频率值为1100Hz。
设置TIM2工作在PWM输入模式(PWM Input Mode),把外部信号作为输入连接到TIM2通道2。
利用TIM2计数器中断来测量信号的频率和占空比。在TIM2_IRQHandler中,计算信号的频率和占空比,方法如下:
变量"Frequency"为由下式得到的外部信号频率:
Frequency = TIM2 counter clock / TIM2_CCR2 单位Hz
变量"Duty_Cycle"为由下式得到的外部信号占空比:
Duty_Cycle = (TIM2_CCR1*100)/(TIM2_CCR2) 单位
(This example shows how to set up the TIM, and use it to measure the frequency and duty cycle of an external input signal. TIM2 clock set to 72MHz and the prescaler is set to 0, TIM2 is counter clock can be expressed as: TIM2 is counter clock = TIMxCLK/(prescaler. Ppls1) = 72 MHz, the minimum measurable frequency value of 1100 Hz. Set TIM2 PWM input mode (PWM Input Mode), the external signal as an input connected to the the TIM2 Channel 2. TIM2 counter interrupt signal to measure frequency and duty cycle. Calculate the frequency and duty cycle of the signal in TIM2_IRQHandler as follows: variable " Frequency" on the grounds of the external signal frequency by the following formula: Frequency = TIM2 is counter clock/TIM2_CCR2 unit Hz variable Duty_Cycle " on the grounds of the following formula to get external duty cycle: Duty_Cycle = (TIM2_CCR1* 100)/(TIM2_CCR2) in )
- 2012-05-18 18:28:47下载
- 积分:1
-
STC15W4K56S4
STC15W4K56S4 4串口均已初始化,可正常使用。(STC15W4K56S4 four uarts.)
- 2020-12-09 10:59:19下载
- 积分:1
-
GrOrderedSet
Removes the item indicated by an iterator. The iterator will not be valid afterwards.
- 2015-07-20 21:52:26下载
- 积分:1
-
msp-430
说明: msp430的中文手册,原理图,示例程序,来自合肥工业大学,请勿用于商业用途(Chinese manual, schematic diagram, sample program of msp430, from Hefei University of Technology, please do not use for commercial purposes)
- 2020-06-18 16:20:02下载
- 积分:1
-
模糊自适应整定PID控制程序
基于STM32的PID模糊自适应PID控制程序,具有隶属度函数,PWM波形,传感器输入(PID fuzzy adaptive PID control program based on STM32, with membership function, PWM waveform, sensor input)
- 2021-01-28 16:58:34下载
- 积分:1
-
BRTTimer0-interrup
stc单片机BRT编程脉冲输出-Timer0中断取反IO输出(stc SCM BRT-Timer0 interrupt programming pulse output negated IO output)
- 2013-08-05 23:15:35下载
- 积分:1
-
UCGUI3.90notes
UCGUI3.90notes应用于STM32,移植到STM32非常实用(UCGUI3.90notes applied STM32, STM32 very practical transplanted to)
- 2013-07-09 15:47:36下载
- 积分:1
-
EM78P153S-simp
EM78P153中文资料,此文件如有侵权行为请通知删除,文件正确性请以芯片厂商的资料为准,些文档供学习参考(EM78P153Chinese data, this file if any infringement please inform delete files, correct please to chip manufacturer data shall prevail, some documents for learning reference)
- 2013-12-27 12:09:26下载
- 积分:1