-
cks32f103c8t6控制步进电机与舵机
cks32f103c8t6控制步进电机与舵机,步进电机是28byj48,舵机频率是50hz,本人小白,希望和大家一起学习(Cks32f103c8t6 controls stepper motor and steering gear. The stepper motor is 28byj48 and the steering gear frequency is 50hz.)
- 2020-06-18 09:40:01下载
- 积分:1
-
IIC-MPU6050-DMP
stm32 iic mpu6050 dmp mdk环境(Stm32f429 IIC mpu6050 dmp MDK environment)
- 2020-06-16 02: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
-
o4YBAFs2hi2ALj9CADJYXiLpGo8556
stm32-超声波避障 联合开发网 - pudn.com
- 2020-06-19 12:40:02下载
- 积分:1
-
virtual-serial-port
单片机虚拟串口仿真图,里面有虚拟串口软件和串口调试助手,还有用proteus进行的仿真图,不用开发板一样进行仿真,只能说proteus太强大了。只要你想不到的,没有他做不到的!(Virtual serial port emulation chip chart, which has a virtual serial port software and serial debugging assistant, as well as performed with proteus simulation map, not the same simulation development board can only say proteus too strong. As long as you think, no he can not do!)
- 2013-07-31 16:19:11下载
- 积分:1
-
hx711get
称重模块代码,详细,易实现,精度高,2018年电赛(Weighing module code, detailed, easy to implement, high precision)
- 2020-06-20 02:40:01下载
- 积分:1
-
ATT7022E_STM32
基于STM32的电量计量芯片ATT7022E的程序,实现基本测量功能。未实现校准表功能(The program of STM32 based on ATT7022E, to realize the function of basic measurement. Self Calibration function is not implemented)
- 2015-10-23 14:29:55下载
- 积分:1
-
jianpan
单片机键盘控制,可用外接键盘来向单片机输入数字(control of the keyboard)
- 2011-12-21 19:26:13下载
- 积分:1
-
STC8_Delay
次代码是针对STC8系列的单片机的延时函数,使用
此代码可以直接添加调用,程序自动获取内部系统时
钟后初始化延时函数。只要是ISP软件默认的时钟频
率都可以应用(特殊频率除外)
该代码为初版,还存在很多缺陷,请各位大佬勿喷,谢谢!
注意:
次代码仅适用于STC公司最新的STC8系列单片机(Delay Function of Single Chip Microcomputer)
- 2019-03-14 19:14:08下载
- 积分:1
-
bisai
单片机,,12c5a60s2, mpu 6050
跷跷板平衡(12c5a60s2, mpu 6050)
- 2015-06-24 12:17:18下载
- 积分:1