-
实验1 跑马灯实验
说明: stm32F407的跑马灯实验,库函数版本,原子哥的原版(stm32F407 Horse Lantern Experiments)
- 2020-06-18 09:00:01下载
- 积分: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
-
RS485 大师 (PIC 16F877A)
使用 PIC 16F877A RS 485 通信。我的项目包括 2 奴隶和 1 大师。
- 2022-01-22 15:59:53下载
- 积分:1
-
TabDemo
主要实现MFC Tabctrl控件的按Tab快捷键改变控件焦点的功能。焦点可在TabCtrl控件,子窗口,父窗口之间自由切换。(The main realization of MFC Tabctrl control, press the Tab shortcut keys change the focus of the control function. The focus can be freely switched between the TabCtrl control, child window, and parent window.)
- 2017-06-30 08:55:00下载
- 积分:1
-
C# 文件编码转换工具(支持UTF-8/UTF-7/Unicode/ASCII/GB2312(简体中文)/BIG5 (繁体中文)等编码转换 )
文件编码转换工具,批量转换文件到UTF8,支持自识别原格式,支持备份。
- 2019-06-28下载
- 积分:1
-
clanguage
C51音乐程序(八月桂花)
[功能] 通过单片机演奏音乐
//本例采用89C52, 晶振为11.0592MHZ
//关于如何编制音乐代码, 其实十分简单,各位可以看以下代码.
//频率常数即音乐术语中的音调,而节拍常数即音乐术语中的多少拍 (C51 music program (August Osmanthus) [function] through Singlechip music// this case, using 89C52, crystal for 11.0592MHZ// on how to prepare music code is actually very simple, you can see the following code.// Frequency music terminology that is constant in tone, and the beat of music terminology that is constant in the number of pictures)
- 2008-06-24 16:25:24下载
- 积分:1
-
MPU6050
MPU6050_Arduino 计算三轴陀螺仪的姿态变换计算其角度(MPU6050_Arduino calculate the three-axis gyroscope attitude transformation to calculate the angle)
- 2014-05-07 21:36:46下载
- 积分:1
-
PCA人脸识别
opencv下,用PCA主成分分析的方式做人脸识别(Using PCA principal component analysis to do face recognition)
- 2018-03-03 17:31:38下载
- 积分:1
-
c 语言 hello Word
Hello World 中文意思是『你好,世界』。因为《The C Programming Language》中使用它做为第一个演示程序,非常著名,所以后来的程序员在学习编程或进行设备调试时延续了这一习惯。
中文名你好,世界外文名Hello, World!创造者
- 2022-07-16 20:55:32下载
- 积分:1
-
VC_examples
实例12-1:使用用户界面线程实例。源代码在光盘中“12InterfaceThread”目录下。
实例12-2:使用工作者线程实例。源代码在光盘中“12ControlThread”目录下。
实例12-3:多线程实例。源代码在光盘中“12WQDemo”目录下。
实例12-4:线程间的通信。源代码在光盘中“12ThreadCommu”目录下。
实例13-1:动态链接库(Dll)实例。源代码在光盘中“13dlltest ”目录下。
实例13-2:鼠标钩子应用实例。源代码在光盘中“13MouseHook”目录下。
实例13-3:键盘钩子应用实例。源代码在光盘中“13KeyboardHook”目录下。
实例14-1:WinSock网络程序:聊天室。源代码在光盘中“14WinSocketChat”目录下。
实例14-2:利用MSComm控件进行串口数据传输。源代码在光盘中“14MSComm”目录下。
实例14-3:简单的WinInet应用程序。源代码在光盘中“14SimpleNet”目录下。
实例15-1:创建Access数据库。源代码在光盘的“15Info”中。
实例15-2:MFC的ODBC数据库实例。源代码在光盘中“15Enroll”目录下。
实例15-3:利用ADO查询并操作数据库实例。源代码在光盘中“15AdoTest”目录下。(InterfaceThread
ControlThread
ThreadCommu
)
- 2009-11-17 23:23:22下载
- 积分:1