-
shuang-ji-tongxin
说明: 51单片机双机通信程序,keil环境。。。。。(51 keil communication between two machine)
- 2011-03-19 02:35:19下载
- 积分: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
-
Frequency_Protocol_for_nRF24XX
nrf24xx 2.4G无线鼠标跳频传输协议应用笔记,可用于无线鼠标,键盘等常见设备的灵活控制,采用跳频算法,避免其他信号源的干扰。(nrf24xx 2.4G wireless mouse hopping transport protocol, flexible control, to avoid interference with other signals.)
- 2011-10-31 14:33:51下载
- 积分:1
-
STOPWATCH
说明: 程序名: 简易秒表
功能描述:具有启动、暂停、记录8个历史记录、阅读历史纪录
和记录指示、名次指示、秒表清零等功能
1#键:清零、记录功能
2#键:阅读记录
3#键:启动、暂停功能( Procedures were: simple stopwatch Functional Description: The start, pause, record of eight history, read history and recording instructions, place instructions, cleared stopwatch functions 1# key: Clear, recording function 2# Key: reading records 3# key: start, pause function)
- 2009-08-02 09:02:10下载
- 积分:1
-
hs108-MC44BS373CA
hs108单片机控制两个MC44BS373CA实现载频为30MHz和50MHz的I2C通信(hs108 MCU control two MC44BS373CA achieve carrier frequency of 30MHz and 50MHz of I2C communication
)
- 2015-01-26 13:03:16下载
- 积分:1
-
sliding-mode-control-for-2-tank
Second Order Sliding Mode Control of
the Coupled Tanks System
- 2015-07-03 07:45:11下载
- 积分:1
-
ADS8326_1602
单片机控制ti公司的16位串行ADC-ADS8326采样(Ti SCM' s 16-bit serial ADC-ADS8326 sampling)
- 2021-04-26 09:58:46下载
- 积分:1
-
dm365-adc-linux_drive
DM365 内部ADC liunx驱动。本驱动使用DM365evm裸机ADC测试程序修改而来,只有原默认ADC配置。实现功能也相对简单,app可以使用read()函数一次读取6个通道的转换值。您可以在此驱动基础上稍作修改,实现app配置ADC功能。(DM365 internal ADC liunx drive. The driver uses DM365evm ADC testing procedures modified from bare metal, only the original default ADC configuration. Relatively simple to achieve functional, app can use read () function to convert the value of a read channel 6. You can drive a slightly modified on the basis of this, the realization app configure the ADC functions.)
- 2013-12-24 13:15:37下载
- 积分:1
-
CS4334
cs4334的驱动程序,使用STM32FMCU,可以使用。(cs4334 driver, use STM32FMCU, you can use.)
- 2020-06-28 17:40:02下载
- 积分:1
-
IIC实验
闪灯例程,很不错,分享下。。凑字数,一天天一,听音乐(Flash routines, very good, share.. Listen to the music one day at a time)
- 2017-11-15 16:57:12下载
- 积分:1