-
bai7
my solution for some dynamic algothrimth
- 2014-12-04 21:38:45下载
- 积分:1
-
595程序
51单片机连接74HC595,点亮多个LED灯(51 Single Chip Microcomputer Connects 74HC595 to Light Multiple LED Lamps)
- 2020-06-16 02:20:06下载
- 积分:1
-
51单片机的eeprom和iic通信软件模拟程序
说明: 51单片机的eeprom和iic通信软件模拟程序(Eeprom and IIc communications in 51 single chip machines)
- 2020-06-19 12:00:06下载
- 积分:1
-
OV7670照相模组硬件应用指南1.01 OVT
说明: OV7725摄像头驱动教程(霸道开发板)介绍,希望大家喜欢(OV7725 Camera Driver Tutorial (Hegemonic Development Board), I hope you like it.)
- 2020-06-18 20:00:02下载
- 积分: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
-
12864
带字库12864液晶详解----Detailed character LCD with 12864(Detailed character LCD with 12864)
- 2009-05-13 14:29:36下载
- 积分:1
-
Wireless-multi-channel-switch
无线多路开关选择,51单片机上调试成功!希望对大家有帮助!(Wireless multi-channel switch, the successful commissioning)
- 2012-06-09 08:55:19下载
- 积分:1
-
实验1 跑马灯实验
正点原子STM32F103精英板跑马灯例程(Punctual Atomic STM32F103 Elite Board Horselight Routine)
- 2020-06-21 11:00:02下载
- 积分:1
-
Magic-ball-lamp(M0516)
基于M0516的魔球灯控制程序,内含原理图,功能有内置PWM加模拟PWM线性调光,炫耀的自走程序与声控程序,主从控制模式,IIC协议,485通讯DMX512协议,74HC595控制四位3461共阴数码管,ULN2803电机驱动程序(M0516 based magic ball lamp control procedures, the enclosed schematic diagram, function has a built-in PWM analog PWM linear dimming, showing off the go program with voice control, master-slave control mode, the IIC agreement, 485 communication DMX512 protocol, 74 hc595 are needed to control the four digital tube, 3461, a total of Yin ULN2803 motor drivers)
- 2016-12-29 15:32:58下载
- 积分:1
-
AT25XXXEEPROM
说明: spi读取AT25128例程,全面解析底层,与I2C兼容。(The SPI reads AT25128 routines, comprehensively parses the underlying, and is compatible with I2C.)
- 2020-12-17 15:19:13下载
- 积分:1