| As a widely used and extremely basic technical method,signal acquisition technology has an indispensable position in the industrial production,aerospace,measurement and other fields.NiosⅡ system has become more and more widely used in the field of signal acquisition for its tailorable characteristic,and easily to transplant,etc.as a successful combination of the reconfigurable signal acquisition equipment and the NiosⅡ technology,it can achieve USB communication with the host computer by USB interface chip and achieve the analysis of the control command in the NiosⅡ system.The equipment of signal acquisition will also achieve the control of peripheral devices according to the instructions,and achieve the function of output and signal acquisition function by multi-channel,even will achieve the function of operation decision based on the collected data for the equipment under test.Fanally,the equipment of signal acquisition will show the result or data to users when the result or data has been unpload to the host computer through the USB bus or the RS422 bus.With regard to the realization of signal acquisition based on NiosⅡ system,the main contents of this paper are as follows:1、Build NiosⅡ soft-core processor system.The UART IP core,Interval Timer IP core,PIO IP core,EPCS module and other modules are all integrated into the soft core.With the help of serial port interrupt,timer interrupt,PIO interrupt,and in conjunction with other peripheral circuits,NiosⅡ system finally reach the target of the hardware and the software which has been designed.2、The design and the implementation of USB communication function.This paper uses CY7C68013 A chip to achieve the USB protocol processing,and achieve the initialization for the USB chip and the management for user-defined requests in accordance with its firmware framework,and finally achieve the function that the host computer controls the equipment and communicate with the device through endpoint 0 in control transport type.3、The design and implementation of the WDM driver and the dynamic link library.As a part of the direct interaction to the users,on the basis of the completion of WDM driver,according to the functional requirements of equipment,the modular design idea is used to design the function of the device driving library.4、In order to ensure the reliability of equipment function,finally with the application software on the host computer,the various functional modules of the acquisition equipment were tested and verified.The test results finally show that the reconfigurable signal acquisition equipment based on NiosⅡ system can run steadily for a long time,and can realize the "reassembling" characteristic of the device,and can achieve the function of driving the output and signal acquisition.The whole device is designed based on hierarchical and modular design ideas,having good scalability and flexibility. |