-
achieve-DA-function
单片机去控制PCF8591T去实现DA功能。
这个代码也要在示波器上才能观测到,DA输出一个正弦波。(Microcontroller to control PCF8591T to achieve DA function. This code also can be observed on an oscilloscope, DA output a sine wave.)
- 2013-07-24 15:03:19下载
- 积分:1
-
Control
对一些控件进行操作使用,初学者必看的金典实例(Operation of some controls to use, beginners must-see typical examples of gold)
- 2011-05-20 17:03:42下载
- 积分: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
-
fluent边界造波完整udf程序wavefunction
fluent边界造波完整udf程序,希望对大家有用~(Complete procedure of boundary wave-making, I hope it will be useful to all of you.~)
- 2020-07-09 10:48:56下载
- 积分:1
-
二叉树的前序非
二叉树中序遍历的非递归算法-Binary preorder non- recursive algorithm
- 2022-07-10 01:31:27下载
- 积分:1
-
Post
说明: UG编程新代后处理,深孔钻用,,,,,,(UG-POST,New generation postprocessing of UG programming for deep hole drilling)
- 2020-04-29 13:31:47下载
- 积分:1
-
LPLD_PWM
Kinetis_K60底层驱动开发包PWM部分开发,有助于此开发板的底层开发(Kinetis_K60 underlying driver development kit PWM part of the development, contribute to the bottom of this development board development)
- 2013-09-18 09:22:20下载
- 积分:1
-
基于stm32的编码器和串口激光测距笔
可以同编码器作为滚轮测曲线,通过串口激光测直线stm32l103oled12832 iicRCWL-0801模块 VL53L0X激光测距传感器模块 串口直接输出距离值按键
- 2022-07-24 12:26:06下载
- 积分:1
-
无线模块
说明: 基于stm8l151开发的lora模块,批量出货的产品。非常稳定。(Based on the Lora module developed by stm8l151, the products are shipped in batches. Very stable.)
- 2020-08-28 17:52:27下载
- 积分:1
-
小班子驱动器的转接板子
can转接rs232小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子小班子驱动器的转接板子
- 2022-12-10 22:50:05下载
- 积分:1