-
homepage
测量频率的低电平保持时间,用来测量汽车喷油嘴喷油的时间,单位ms(The low level holding time of measuring frequency is used to measure the injection time of automobile nozzle, unit Ms.)
- 2018-12-12 20:34:51下载
- 积分: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
-
IIC-MPU6050
说明: stm32f429 iic mpu6050 mdk环境(Stm32f429 IIC mpu6050 MDK environment)
- 2020-06-16 00:20:02下载
- 积分:1
-
ADF4351模块资料-V1.0
说明: ADF4351锁相环的stm32程序,包括stm32f1和stm32f4程序,初始化晶振为25MHz,晶振可调(ADF4351 is a pll ,l provide the chengxu about the configution for adf4351)
- 2020-06-23 04:00:01下载
- 积分:1
-
Keyboard_MC96F6432
现代单片机驱动矩阵键盘,通过UART口收发键值(ABOV MCU drive matrix keyboard, send and receive key value through UART port)
- 2017-12-12 10:06:00下载
- 积分:1
-
ALIENTEK MINISTM32 实验2 按键实验
正点原子Mini板实验二 按键实验,为新手准备的基础源码,基于C语言,芯片为STM32F103RC(Punctuality atomic Mini board experiment two button experiment, for beginners to prepare the basic source code, based on C language, chip STM32F103RC)
- 2018-04-28 13:12:36下载
- 积分:1
-
基本例程-按键(中断方式)
说明: 关于stm32系列所有芯片的内部IC的读取操作,属于高级历程;(About the high-level application of STM32 chip part of the code process, STM32 code.)
- 2020-06-18 07:00:02下载
- 积分:1
-
ADF4351
里面含有2015年全国大学生电子竞赛的简易频谱分析仪的全部程序,基于STM32的ADF4351以及AD8310对数检波原理图(includeing based on STM32 sADF4351andAD8310)
- 2021-05-14 15:30:02下载
- 积分:1
-
16F877A
基于16F877A的温度湿度传感器c程序(Temperature and humidity sensors based 16F877A c program)
- 2014-09-01 23:27:17下载
- 积分:1
-
Template
亲测ZLG-LPC1788开发板上RT-Thread的最小系统模板(LwIP开启)
LPC1788基于RTT源码实现的模板程序(Pro-test ZLG-LPC1788 development board minimum system RT-Thread template (LwIP open) LPC1788 RTT source template-based program implementation)
- 2013-12-27 22:36:42下载
- 积分:1