-
SPI(STC15F204PNRF24L01)
STC51单片机GPIO口模拟串口,实现包含UART、SPI、IIC等(STC51 microcontroller GPIO port simulation serial port and realize UART, SPI, IIC, etc
)
- 2015-09-05 14:51:26下载
- 积分:1
-
Ex006
VS2010 C++学习(6):ListCtrl用法及ADO方式读写Access程序(VS2010 C++ learning (6): ListCtrl Usage and Access ADO literacy program)
- 2014-04-28 17:53:25下载
- 积分:1
-
progjess
The progress of the color gradient(The progress of The color gradient)
- 2017-03-13 16:40:23下载
- 积分:1
-
AD9851
msp430 ad9851 按键控制输出不同频率的正弦波已经调试成功(msp430 ad9851 keys to control the output frequency of the sine wave has been successful commissioning)
- 2021-04-12 16:38:57下载
- 积分:1
-
RTX51-Tiny-led
搭建RTX51-Tiny 的 C51项目,AT89C52单片机,KEIL4编译环境,LED灯轮流闪烁.(RTX51-Tiny structures of C51 project, AT89C52 microcontroller, KEIL4 compiler environment, LED lights flashing alternately.)
- 2015-12-03 10:17:26下载
- 积分:1
-
nlm
用于模块化多电平逆变器最低电平调制程序,很好的控制方法(Minimum level modulation program for modular multilevel inverters)
- 2016-04-29 00:00:02下载
- 积分:1
-
lcd_driver
单片机LCD显示,显示屏是12864,功能能实现。(Single-chip LCD display, the display is 12864, the function can be achieved.)
- 2014-02-08 22:23:03下载
- 积分:1
-
200711-0054-05
TMS28335初始化完成之后,
1、 先DDS产生73.35hz的方波。(问流量管固定频率)
2、 乘法器的另一个数字端输入乘数直接给一个固定值(按照5v),系数是固定的就是对应PID输出的那个接口,串行十二位信号输出(需要先定好一个GPIO接口)。
3、 再延迟一定的时间0.1s或其他时间之后,开始ad采集信号,分别采两路AD信号,此时不稳定(为什么要等到一定的幅值才开始采集AD信号)
4、 选择250点估计一个频率,频率估计的方法采用计算峰值次数的方法或者过零点,总之是为了保证精度采用时域估计的算法,这一块主要是一个扫频子程序,计算频率共振点。
5、 之后改变DDS的输出频率,循环对512点的数据进行扫频的处理
6、 频率控制完成之后,就可以缓慢降低PID控制输出的参数,此时暂时不计算频率,通过不断调整系数使AB的幅度保持在1 的范围内。
7、 测试幅度控制稳定之后a、采用幅度和频率同时控制b。采集数据进入频率估计和相位差估计的后续程序的大循环
8、 注意:采样和控制是同时进行的,所以要设置中断,以及看懂AD的程序,以及内部存储以及数据处理资源的分配。
(TMS28335 initialization is complete,
1, the first DDS generated square wave of 73.35hz. (Q flow tube fixed frequency)
2, another digital side of the multiplier input multiplier directly to a fixed value (in accordance with 5v), the coefficient is fixed corresponding PID output interface, serial twelve signal output (need to be a good one GPIO interface).
3, and then after a certain time delay 0.1s or other time, ad signal acquisition were collected two AD signal instability (Why wait until a certain amplitude began collecting AD signal)
4, 250 point estimate a frequency, frequency estimation method using the method of calculation of the number of peak or zero crossing, in short, in order to ensure the accuracy of time-domain estimation algorithm, this piece is a sweep subroutine to calculate the frequency resonance point.
5, after the change of the output frequency of the DDS data of 512 points, the loop processing Sweep
6, after the completion of the frequency control, it can sl)
- 2013-04-07 15:03:14下载
- 积分:1
-
ADC0804_DAC0832
51单片机控制ADC和DAC转换的程序,仅供参考(51 MCU control ADC and DAC conversion process, for reference only)
- 2013-06-18 18:51:09下载
- 积分:1
-
LCD1602
ARM7开发板,lpc2378芯片,LCD1602的驱动程序(ARM7board lpc2378 lcd1602driver)
- 2021-01-06 11:18:53下载
- 积分:1