-
TCN_Autosaling_machine
公司开发的自动售货机文档,包括源代码,电路图,用户文档等(development of the company vending machine files, including source code, circuit diagrams, user documentation, etc.)
- 2007-02-03 09:18:37下载
- 积分:1
-
S-transform
S变换电能质量检测代码,可以实现电压暂升暂降中断等的扰动检测(power quilty detection using S transform)
- 2021-03-26 16:09:13下载
- 积分: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
-
at89c52yaokong
基于AT89C52的红外遥控学习机,调试成功,多年珍藏,对学习者有帮助(Based on AT89C52 infrared remote learning machine, commissioning successful years of collection and help learners)
- 2012-07-23 19:39:46下载
- 积分:1
-
tcpview
实时监听网上连接的程序 (as tcpview above)
- 2020-06-26 11:40:01下载
- 积分:1
-
第二代样机控制程序
采用单片机控制步进电机完成小车前进、后退等动作。(Single Chip Microcomputer Controls Car Forward and Backward Action.)
- 2020-06-16 03:00:01下载
- 积分:1
-
复旦微各系列MCU技术手册-2020.8.27更新
说明: 复旦微芯片个系列书册编程注意事项,用于复旦微芯片的嵌入式底层程序编辑工作(Notes on low power consumption of Fudan microchip)
- 2021-01-05 09:00:53下载
- 积分:1
-
USART1环形队列
说明: stm32的串口通信,环形队列接收,防止数据过多的时候发生丢失的情况(STM32 serial communication, ring queue receiving, to prevent data loss when too much)
- 2020-04-25 13:50:00下载
- 积分:1
-
csb
实现基于单片的超声波测距。
单片机每隔1秒发送一串40KHz的方波,开中断待接收到回拨时,响应进行报警。(Ultrasonic Distance-based monolithic. SCM every 1 second to send a bunch of 40KHz square wave, open interrupt to be received back, the response of the police.)
- 2011-06-06 10:41:00下载
- 积分:1
-
用vb写的数控仿真系统
仿真机床切割,可生产可编辑的轨迹代码,方便操作.(Simulated machine tool cutting, can produce editable trajectory code, easy to operate.)
- 2020-06-28 11:40:01下载
- 积分:1