Description: 一、 使用键盘显示接口芯片8279接收按键键值,并在七段数码管上显示出来,通过判断键值进入相应音乐播放处理程序。在音乐播放程序中,使用定时器/计数器8253的计数器2,使其工作在方式¬ ¬ 3—方波发生器,通过查表依次取出乐曲频率值送入计数器作为计数初值,经out2输出方波,驱动扬声器发出不同频率的声音,在每个音阶之间加入相应的延迟时间,即实现了音乐的播放。-First, the use of a keyboard display interface chip receive keys keys 8279, and Seven-Segment LED display, through to determine the corresponding music player keys to enter the treatment program. Procedures in the music player, use the timer/counter 2 counter 8253 to work in the way ? ? 3- square-wave generator, followed by out music through the look-up table values into the counter as a frequency count of the initial value, the output side out2 waves, driven loudspeakers of different frequency sound, in between each scale by adding the appropriate delay time, namely, the realization of the music player. Platform: |
Size: 9216 |
Author:GFQ |
Hits:
Description: C#写的一个代码生成器
在实际变成工作中,我们要写大量的程序,比如说把一个表转为一个类对象或者写一个调用带n个参数的存储过程的方法等都需要手工去输入大量的代码,并且还有大量的重复代码。为了避免大量的重复劳动,同时也为了工作的方便,根据自己的需要写了这么一个功能比较简单的代码生成器。其功能如下:
功能1:
配置数据库连接服务器(包括数据库服务器的IP、数据库、登录帐户、登录密码),单击确定保存配置,保存成功后确定按钮不可用,同时弹出消息对话框。
功能2;
连接数据库,相应的用户表、存储过程、视图等都会列出来。
功能3:
生成代码,在类名文本框中输入要生成的类的名字,选中相应的表或存储过程或视图,单击生成代码按钮就会生成相应的代码。生成的代码保存在c盘的根目录下,同时也显示在文本框里。如果是用户表或视图,将生成带属性和构造函数的类;如果是存储过程,将生成一个带调用存储过程的方法的类。
使用方法,在使用前请先配置数据库。-A code generator
Into work in practice, we write a large number of procedures, for instance, a table to write a class or an object with n months to call the stored procedure parameters of the method have to be hand-to input a lot of code, and there are a large number of duplicate code. In order to avoid a lot of duplication of work, but also the convenience to work, according to their own needs such a feature to write relatively simple code generator. Its function is as follows:
Function 1:
Configure the database connection server (including the database server IP, database, log in to your account, login password), click OK to save configuration, save the OK button can not be successful and at the same time the news pop-up dialog box.
Function 2
Connect to database, the corresponding user table, stored procedure, view, etc. are listed.
Function 3:
Generated code, the class name in the text box to generate the name of the category, selec Platform: |
Size: 22528 |
Author:狐狸 |
Hits:
Description: 针对mysql数据写的一个程序,自动读取mysql数据库的表,并针对每一个表生成相应的javabean,javabean即含有各个表的字段属性,以及它们的getter,setter方法。压缩包中含有mysql的驱动。
改进了一些提示,另外,对于工具的使用人员,则不需要自己去建立一些环境,直接可以运行里面的mysqlGeneratorBean.bat(windows)或者mysqlGeneratorBean.sh(unix系列)
注意,这个工具实在jdk1.6的环境中开发的,如果你在使用时出现jre的错误,则提升你的jre版本,或者你用你自己的jdk重新编译里面的java文件。 -A procedure writes which in view of the mysql data, reads the mysql database automatically the table, and aims at each hypergene to become corresponding javabean, javabean namely to include each table field attribute, as well as their getter, setter method.In the compression package includes the mysql actuation.
Improved some prompts, moreover, regarding tool use personnel, then does not need own to establish some environment inside, may move directly mysqlGeneratorBean.bat(windows) or mysqlGeneratorBean.sh (the unix series)
pays attention, in this tool really jdk1.6 environment develops, if you in use time appears jre the mistake, then promotes your jre edition inside, or you use your jdk to translate the java document.
Platform: |
Size: 696320 |
Author:lejuo |
Hits:
Description: this document consists the idea for creating a dynamic time table generator ......hope u like it Platform: |
Size: 1512448 |
Author:oc00ll |
Hits:
Description: 用键盘显示接口芯片8279接收按键键值,并在七段数码管上显示出来,通过判断键值进入相应音乐播放处理程序。在音乐播放程序中,使用定时器/计数器8253的计数器2,使其工作在方式¬ ¬ 3—方波发生器,通过查表依次取出乐曲频率值送入计数器作为计数初值,经out2输出方波,驱动扬声器发出不同频率的声音,在每个音阶之间加入相应的延迟时间,即实现了音乐的播放-8279 with a keyboard and display interface chip receives key key, and on the seven-segment display, by determining the appropriate key to enter the music player process. In the music player, use the timer/counter 2 counter 8253 to work in the way ¬ ¬ 3- square wave generator, followed by table look-up music out into the frequency counter as the count initial value, the output side by out2 wave-driven speakers sound different frequencies in each scale by adding the appropriate delay between the time that the music player to achieve a Platform: |
Size: 1024 |
Author:梦记 |
Hits:
Description: actelIP核 的fircore
Core Generator
– Executable File Outputs Run-Time Library (RTL)
Code and Testbench Based on Input Parameters
– Self-Checking – Executable Tests Generated
Output against Algorithm
• Distributed Arithmetic (DA) Algorithm
– Multiplier-Free Computation
– Low Cost
– Optimized for Actel FPGAs
• Folding Architecture to Minimize Design Size
– Serialized Computation when System Clock
Rate is Faster than the Data Sample Rate
• Efficient Structure Using Embedded RAMs
– Lookup Tables Utilize Embedded RAMs
• On-Chip DA Lookup Table Generator for FPGA
with Embedded RAMs
• Embedded RAMs Initialized as DA Lookup Table
• DA Lookup Table ROM Synthesis for FPGA without
Embedded RAMs
• Multiple DA lookup Tables to Split Large Number
of Taps
• Actel FPGA-Optimized RTL Code
• Supports 2 to 128 Taps
• 1- to 32-Bit Input Data and Coefficient Precision-actelIPcore fircore
Core Generator
– Executable File Outputs Run-Time Library (RTL)
Code and Testbench Based on Input Parameters
– Self-Checking – Executable Tests Generated
Output against Algorithm
• Distributed Arithmetic (DA) Algorithm
– Multiplier-Free Computation
– Low Cost
– Optimized for Actel FPGAs
• Folding Architecture to Minimize Design Size
– Serialized Computation when System Clock
Rate is Faster than the Data Sample Rate
• Efficient Structure Using Embedded RAMs
– Lookup Tables Utilize Embedded RAMs
• On-Chip DA Lookup Table Generator for FPGA
with Embedded RAMs
• Embedded RAMs Initialized as DA Lookup Table
• DA Lookup Table ROM Synthesis for FPGA without
Embedded RAMs
• Multiple DA lookup Tables to Split Large Number
of Taps
• Actel FPGA-Optimized RTL Code
• Supports 2 to 128 Taps
• 1- to 32-Bit Input Data and Coefficient Precision Platform: |
Size: 1051648 |
Author:睿宸 |
Hits:
Description: 本设计基于数字频率合成技术,采用正弦查找表实现波形产生.直接数字频率合成技术(DDS)是一种先进的电路结构,能在全数字下对输出信号频率进行精确而快速的控制,DDS技术还在解决输出信号频率增量选择方面具有很好的应用,DDS所产生的信号具有频率分辨率高、频率切换速度快、频率切换时相位连续、输出相位噪声低和可以产生任意波形等诸多优点。 文中介绍了DDS的基本原理,对DDS的质谱及其散杂抑制进行了分析。程序设计采用超高速硬件描述语言VHDL描述DDS,在此基础上设计了正弦波、三角波、方波等信号发生器,。完成了软件和硬件的设计,以及实验样机的部分调试。-The design is based digital frequency synthesizer technology, using a sine lookup table to achieve waveform generation. Direct digital frequency synthesis (DDS) is an advanced circuit structure can fully digital output signal frequency under precise and fast control, DDS technology also solve the incremental output signal frequency selection signal having a very good application, DDS generated by high frequency resolution, frequency switching speed, phase-continuous frequency switching time, low phase noise output and can generate arbitrary waveforms, and many other advantages . This paper introduces the basic principles of the DDS, DDS MS for its bulk inhibition were analyzed. Programming using ultra high-speed hardware description language VHDL description DDS, on the basis of the design of the sine wave, triangle wave, square wave signal generator. Completed part of debugging software and hardware design, and the experimental prototype. Platform: |
Size: 4485120 |
Author:冯阳 |
Hits:
Description: 为了验证仿真的情况,需要把仿真部分转换为代码。
对于逆变,产生相应的控制占空比一般有2种方式:
1.通过计算sin公式,实时计算出输出值,送入epwm发生器中。
其中分2种,一种是直接计算,这种方式在简单的境况下可以使用,但是考虑到计算量对DSP比较大,一般不采用。另外一种是使用TI公司提供的IQmaths函数库里的函数,可以极大减少运算时间。
2.离线读表法。
通过实验发现,如果调用IQMATH直接计算,需要60us。由于开关频率为10K,整个控制的时间限定在100us以内。直接读表,则时间在10us内。
若是要加上闭环控制获得比较好的效果,必然得采用离线读表方式。
-In order to verify the simulation situation, it is necessary to convert part of the simulation code. For the inverter to yield the corresponding duty cycle is controlled generally in two ways: 1. By calculating formula sin, real-time calculation of the output value, into epwm generator. Which divided into two kinds, one is directly calculated in this way in a simple situation can be used, but considering the amount of computation of DSP is relatively large, generally not used. Another is to use IQmaths function library functions provided by TI, can greatly reduce the computation time. 2. Offline reading table method. Experiments found that, if the call IQMATH direct calculation requires 60us. Since the switching frequency is 10K, the entire time-controlled limited to less than 100us. Direct meter reading, the time within 10us. If you want to add closed-loop control to get better results, must give way to off-line reading table. Platform: |
Size: 218112 |
Author:林晓冬 |
Hits: