-
USB—外部FLASH模拟U盘
此代码为stm32将外部flash如w25q32模拟成U盘,对内部数据进行读写操作,此工程已经验证通过,希望对大家用一定的帮助(This code is stm32, which simulates external flash such as w25q32 into a U disk to read and write internal data. This project has been verified and passed. I hope it will be of some help to you)
- 2020-12-30 13:58:59下载
- 积分: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
-
Template
板载三个灯同时亮灭,板子上可以看到灯发出闪烁的白光(On-board three lights turn on and off at the same time)
- 2020-06-23 14:00:02下载
- 积分:1
-
CClockSTProject
一个模拟电子表的程序,有兴趣的可以研究研究(a simulated electronic watches the proceedings, interested can studies)
- 2007-03-29 11:26:03下载
- 积分:1
-
ADC121S705DRIVER
12位ADC121S705DRIVER 大家互相学习
- 2011-04-25 12:32:54下载
- 积分:1
-
C
本程序基于单片机实现RTC实时时钟,简单易懂(The program is based MCU RTC real time clock, easy to understand)
- 2013-07-24 10:18:05下载
- 积分:1
-
snake
说明: 单片机实现贪吃蛇游戏,本人使用的是51单片机,显示器为16*16点整控制,此类方法适合初学者玩耍~~(Snake MCU)
- 2011-03-13 10:14:48下载
- 积分:1
-
ARM920T
嵌入式系统:基于ARM920T嵌入式音视频压缩系统设计(Embedded system: based on the ARM920T embedded audio and video compression system design)
- 2011-09-02 20:27:04下载
- 积分:1
-
小制作2.0_贪吃蛇
51的贪吃蛇小游戏,没什么算法,多看就明白了(51 Snake Eating Game, there is no algorithm, you can see more clearly.)
- 2020-06-21 10:00:02下载
- 积分:1
-
stm8s-PWM信号输出
说明: 基于stm8S系列单片机,利用内部定时器的pwm功能输出pwm波(Based on stm8S series single-chip microcomputer, PWM wave is output by PWM function of internal timer)
- 2020-05-12 10:55:16下载
- 积分:1