登录
首页 » c » 单片机智能定时器

单片机智能定时器

于 2022-01-28 发布 文件大小:2.05 kB
0 44
下载积分: 2 下载次数: 1

代码说明:

可以进行精准定时,并在数码管上显示

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ATIHardwareShading
    ATIHardwareShading.pdf shader编程(ATIHardwareShading.pdf shader programming)
    2009-10-24 10:23:53下载
    积分: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
  • heat transfer coffecient FLUENT udf
    说明:  这个文件是计算传热系数的初级程序,希望对大家有帮助(This file is a preliminary procedure for calculating the heat transfer coefficient)
    2021-03-31 16:19:09下载
    积分:1
  • mesh_distance
    无线传感器网络RSSI定位算法的研究与应用,提出了理论上的改进算法,并且有MATLAB实现,另外有硬件实现,具体是在MICA2上,基于tinyos操作系统,根据测得的RSSI值算出距离(RSSI location algorithm for wireless sensor networks for research and application, Tichu a theoretical 改进 algorithms and You MATLAB implementation, there are other hardware Shi Xian, Juti yes Zai MICA2 Shang, tinyos-based operating system, according to the measured RSSI Zhi calculated Juli)
    2010-08-18 16:01:25下载
    积分:1
  • Trend Arrows
    A great indicator for binary options that works upon market trends.
    2020-06-18 09:20:02下载
    积分:1
  • MLS-diedai
    自己编写的迭代小程序,小程序,没问题额的啊(I have written a small program iteration, a small program, the amount of, ah no problem)
    2011-09-27 08:32:47下载
    积分:1
  • mytabctrl
    自已绘制tab的标签,支持横向和纵向显示(customized tab control.)
    2020-12-03 18:39:26下载
    积分:1
  • 解析yaml文件
    这是一个linux下用c语言写的解析yaml的完整工程,makefile也有。
    2022-03-13 22:18:32下载
    积分:1
  • 4533566799
    分形树~~可以设置分形树的各类参数,而且较为简单(fractal tree ~ ~ fractal can set various parameters of the tree, but is much simpler)
    2005-04-15 20:05:50下载
    积分:1
  • Angular-precision
    基于均匀圆阵的信号二维方向角高精度估计 (Angular precision estimates based on two-dimensional uniform circular array signal direction)
    2013-12-08 17:06:55下载
    积分:1
  • 696518资源总数
  • 104321会员总数
  • 14今日下载