-
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
-
codelock
用共阴极数码管做的密码锁,可修改密码
( this is a codelock )
- 2009-02-28 18:55:30下载
- 积分:1
-
STFOC
ST2.0库的FOC程序,现在已经精简了,用起来更加方便和容易理解。(ST2.0 library FOC procedures, streamline now, it is more convenient to use and easy to understand)
- 2017-04-21 12:34:12下载
- 积分:1
-
avr_mmc_sd
用ATMEL AVR单片机开发的SD/MCC卡的程式(with ATMEL AVR development of the SD/MCC card programs)
- 2005-04-12 10:18:51下载
- 积分:1
-
zhiliudianliuyuan
本系统以直流电流源为核心,AT89S52单片机为主控制器,通过键盘来设置直流电源的输出电流,设置步进等级可达1mA,并可由数码管显示实际输出电流值和电流设定值。本系统由单片机程控输出数字信号,经过D/A转换器(AD7543)输出模拟量,再经过运算放大器隔离放大,控制输出功率管的基极,随着功率管基极电压的变化而输出不同的电流。单片机系统还兼顾对恒流源进行实时监控,输出电流经过电流/电压转变后,通过A/D转换芯片,实时把模拟量转化为数据量,再经单片机分析处理, 通过数据形式的反馈环节,使电流更加稳定,这样构成稳定的压控电流源。实际测试结果表明,本系统输出电流稳定,不随负载和环境温度变化,并具有很高的精度,输出电流误差范围±5mA,输出电流可在20mA~2000mA范围内任意设定,因而可实际应用于需要高稳定度小功率恒流源的领域。(the system to DC current source to the core, MCU AT89S52 main controller, through the keyboard to set up DC power supply output current, set up to 1mA Stepping grades, digital control can be shown by the actual output current value and current setting. The system consists of programmable microcontroller digital signal output, after the D/A converters (AD7543) analog output. After Operational Amplifiers isolation, amplification and control of the output power base. With the power of the base voltage changes in the output current. SCM system also takes on the constant current source for real-time monitoring, after current output current/voltage changes, the A/D converter chip, real-time conversion from analog to the volume of data and then analyzed by the MCU, through data link in the )
- 2006-06-27 08:41:38下载
- 积分:1
-
pwm-out-capyure
说明: 可应用按键实时改变pwm输出占空比,同时有端口进行相应的pwm捕获。相应的端口配置在程序注释处。(It can change the duty cycle of PWM output in real time by using keys, and at the same time, it has ports to capture the corresponding pwm.)
- 2019-02-27 10:19:42下载
- 积分:1
-
AWR_exp1
基于AWR微波仿真软件的设计仿真微带线分支线定向耦合器实验报告(AWR Microwave simulation based on the design of simulation software microstrip line branch line directional coupler experimental report)
- 2006-10-17 13:17:59下载
- 积分:1
-
DCJ200-10-A-XX-X_REVA
说明: HELO MI NAME IS PANCHO NICE
- 2020-03-14 04:02:45下载
- 积分:1
-
9346SU
AT89S52的C5193C46储存数字的程序,已经编译通过。(AT89S52 the C51 93C46 stored procedures figures have been compiled through.)
- 2009-06-24 19:19:08下载
- 积分:1
-
ZONGTU
1.集成计数器、译码器或数据选择器、逻辑门、数码管、开关等分立元件若干;
2.+5V电源一个;
(1. Integrated counter, decoder or data selector, logic gates, digital control, a number of discrete components, such as switches
2.+5 V supply one )
- 2014-01-06 18:42:45下载
- 积分:1