-
ASM_CRCTEST
modbus的CRC源程序,单片机89S52,汇编语言代码(Modbus CRC source, the microcontroller 89S52, assembly language code)
- 2005-05-09 15:50:29下载
- 积分:1
-
51dianpianjidi1760
以c51单片机为核心,利用1760芯片进行语音报时,51单片机控制(With c51 microcontroller core, the use of 1760 chip for voice timekeeping, 51 MCU control)
- 2013-11-28 09:41:59下载
- 积分: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
-
STM32系列芯片库,包含209个STM32系列芯片原理图
STM32系列芯片库,包含209个STM32系列芯片原理图,可用于altium designer原理图设计(STM32 series chip library containing 209 STM32 series chip schematics, can be used for altium designer schematic design)
- 2013-09-10 15:37:59下载
- 积分:1
-
2
说明: 这是购买周立功的试验箱时候松的源代码。很经典的代码。希望学习单片机的朋友好好研究。短小精悍。有意思。这是第二部分。(This is the purchase of weeks Ligong Song of the chamber when the source code. Classic code. Singlechip friends want to learn on this issue. Dapper. Interesting. This is the second part.)
- 2008-04-16 11:16:20下载
- 积分:1
-
G2553P12864(3wires)
pt100高精度测量电路,精度误差小,速度快,arm9 c51均可实现 ,仅供学习 参考(PT100 high precision measurement circuit, precision error is small, fast, C51 ARM9 can be achieved, only for learning reference
)
- 2015-11-16 17:08:02下载
- 积分:1
-
include
ATMEGA48 头文件 适用于 ICCAVR7.0 有些版本没有ATMEGA48的头文件(ATMEGA48 )
- 2013-08-08 22:45:19下载
- 积分:1
-
PMSM FOC V2.0 SENSORLESS(SPEED MODE)
说明: 基于STM32 V2.0电机库的无传感器FOC控制(Sensorless FOC control based on STM32 V2.0 motor Library)
- 2021-04-27 13:08:45下载
- 积分:1
-
BattTestV2.0
一个通过USB->UART读取C8051F060的程序,实现曲线分析、放大、报表等,采用多线程。
驱动从www.silabs.com下载,要用NI的UI控件。完整版。(a USB-)
- 2007-01-21 13:10:10下载
- 积分:1
-
GCCAVR
gccavr书籍内容包含gcc应用安装及对avr下载说明和电路的配置(gccavr books contain the installation and application of gcc right avr download notes and circuit configuration)
- 2007-07-02 12:57:53下载
- 积分:1