CN103412833A - CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof - Google Patents

CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof Download PDF

Info

Publication number
CN103412833A
CN103412833A CN2013103891624A CN201310389162A CN103412833A CN 103412833 A CN103412833 A CN 103412833A CN 2013103891624 A CN2013103891624 A CN 2013103891624A CN 201310389162 A CN201310389162 A CN 201310389162A CN 103412833 A CN103412833 A CN 103412833A
Authority
CN
China
Prior art keywords
cpci bus
fpga
operating system
adc
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013103891624A
Other languages
Chinese (zh)
Inventor
潘大为
刘连胜
李俊峰
奚成义
彭宇
彭喜元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN2013103891624A priority Critical patent/CN103412833A/en
Publication of CN103412833A publication Critical patent/CN103412833A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备及其控制方法,涉及一种CPCI总线扫描ADC功能模块的驱动设备及控制方法,本发明为解决现有CPCI总线扫描ADC功能模块驱动开发过程复杂、难度大的问题。本发明所述VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备包括FPGA、采集电路、八路模拟开关、隔离调理电路、CPCI总线接口控制器、配置电路、配置供电电路和CPCI总线;基于上述设备的控制方法为:数据端口打开,加载驱动程序;设置通道号,启动采集通道;采集信号;读取采集的信号;关闭数据端口,卸载驱动程序。本发明用于VxWorks操作系统下CPCI总线扫描ADC功能模块。

Figure 201310389162

CPCI bus scanning ADC functional module driving device and control method thereof under VxWorks operating system, relate to a kind of driving device and control method of CPCI bus scanning ADC functional module, the present invention is to solve existing CPCI bus scanning ADC functional module driver development process complexity, Difficult question. CPCI bus scanning ADC function module driving equipment under the VxWorks operating system of the present invention comprises FPGA, acquisition circuit, eight-way analog switch, isolation conditioning circuit, CPCI bus interface controller, configuration circuit, configuration power supply circuit and CPCI bus; Based on the above-mentioned equipment The control method is as follows: open the data port, load the driver program; set the channel number, start the acquisition channel; collect the signal; read the collected signal; close the data port, and unload the driver program. The invention is used for the CPCI bus scanning ADC function module under the VxWorks operating system.

Figure 201310389162

Description

Cpci bus scan A/D C functional module driving arrangement and control method thereof under vxworks operating system
Technical field
The present invention relates to a kind of driving arrangement and control method of cpci bus scan A/D C functional module.
Background technology
Under vxworks operating system, cpci bus scan A/D C functional module, as test module important in Auto-Test System, is applied in every field widely.
Scan A/D C driver of modules based on cpci bus under traditional vxworks operating system is developed, as required, realize corresponding power function interface, and be packaged into I/O interface (the I/O interface of seven standards of standard, open () for example, close (), read () etc.), be registered in the system drive list, be articulated under the I/O subsystem.In this process, drive the data structure that the developer need to take out equipment, the establishment of finishing equipment and the installation of device driver, this process more complicated, bring a lot of inconvenience for the driving developer.
Summary of the invention
The present invention seeks to drive in order to solve existing cpci bus scan A/D C functional module the process complexity of exploitation, the problem that development difficulty is larger, provide cpci bus scan A/D C functional module driving arrangement and control method thereof under vxworks operating system.
Cpci bus scan A/D C functional module driving arrangement under vxworks operating system of the present invention, it comprises FPGA, Acquisition Circuit, 4 eight path analoging switch, isolation modulate circuit, cpci bus interface controller, configuration circuit, configuration feed circuit and cpci bus
The cpci bus FPDP of cpci bus interface controller connects cpci bus, and the local bus port of cpci bus interface controller connects the data address bus of FPGA, and the configuration data port of cpci bus interface controller connects the FPDP of configuration circuit,
The input end of isolation modulate circuit is 32 road input end of analog signal, 32 signal output parts of isolation modulate circuit are divided into four groups, 8 signal output parts in every group connect respectively eight input end of analog signal of 1 eight path analoging switch, 4 analog signal outputs of 4 eight path analoging switch connect respectively 4 input end of analog signal of Acquisition Circuit, the digital signal output end of Acquisition Circuit connects the digital signal input end of FPGA, FPGA connects for electrical input the power supply output terminal that configures feed circuit, four groups of analog switch control signal output terminals of FPGA connect respectively the control signal input end of 4 eight path analoging switch.
Control method based on cpci bus scan A/D C functional module driving arrangement under vxworks operating system of the present invention, the process of this control method is:
The FPDP of step 1, FPGA is opened, the load driver program;
Step 2, FPGA arrange the channel number of wanting collection signal, start corresponding acquisition channel;
Step 3, Acquisition Circuit start collection signal;
It is complete that step 4, FPGA judge whether signal gathers, and if it is performs step five, if otherwise return to step 3;
Step 5, FPGA read the signal that Acquisition Circuit gathers;
Step 6, FPGA close FPDP, the unloading driver.
The present invention proposes Driver Design and the encapsulation of cpci bus scan A/D C functional module under vxworks operating system, according to the common operation to the ADC functional module, propose a kind of new scan A/D C and drive the interface encapsulation form, realizing to the ADC functional module can greatly reducing the development difficulty that drives the developer in effective control.
The objective of the invention is to invent Driver Design and the encapsulation of cpci bus scan A/D C functional module under a kind of vxworks operating system, characteristics according to scan A/D C functional module, the exploitation driver is realized the control to scan A/D C functional module, a kind of driving interface encapsulation form of new scan A/D C functional module is provided simultaneously, application program-oriented method directly defines the form that drives interface, directly the encapsulation function interface function.In the process that drives exploitation, the design, the equipment that do not relate to the device data structure of traditional scan A/D C functional module create and drive installation, on large program, have reduced very much the development difficulty that drives the developer like this.
Advantage of the present invention:
1), the ADC functional module driver that provides of this method can be realized the effective control to functional module;
2), the direct user oriented application program of ADC functional module driver that provides of this method provides general driving function interface;
3), the ADC functional module Driver Design that provides of this method and encapsulation reduce the difficulty that drives exploitation greatly;
4), this method the ADC functional module Driver Design and the encapsulation that provide have independence and versatility, can be applicable to other design.
The accompanying drawing explanation
Fig. 1 is the structural representation of cpci bus scan A/D C functional module driving arrangement under vxworks operating system of the present invention;
Fig. 2 is the FB(flow block) based on the control method of cpci bus scan A/D C functional module driving arrangement under vxworks operating system of the present invention;
Fig. 3 is the method flow block diagram that the FPDP of FPGA of the present invention is opened;
Fig. 4 is the method flow block diagram that the FPDP of FPGA of the present invention is closed;
Fig. 5 is the FB(flow block) of ADC functional module of the present invention read operation;
Fig. 6 is the FB(flow block) of ADC functional module Real-Time Monitoring of the present invention.
Embodiment
Embodiment one: present embodiment is described below in conjunction with Fig. 1, cpci bus scan A/D C functional module driving arrangement under the described vxworks operating system of present embodiment, it comprises FPGA1,2,4 eight path analoging switch 3 of Acquisition Circuit, isolation modulate circuit 4, cpci bus interface controller 5, configuration circuit 6, configuration feed circuit 7 and cpci bus 8
The cpci bus FPDP of cpci bus interface controller 5 connects cpci bus 8, the local bus port of cpci bus interface controller 5 connects the data address bus of FPGA1, the configuration data port of cpci bus interface controller 5 connects the FPDP of configuration circuit 6
The input end of isolation modulate circuit 4 is 32 road input end of analog signal, 32 signal output parts of isolation modulate circuit 4 are divided into four groups, 8 signal output parts in every group connect respectively eight input end of analog signal of 1 eight path analoging switch 3, 4 analog signal outputs of 4 eight path analoging switch 3 connect respectively 4 input end of analog signal of Acquisition Circuit 2, the digital signal output end of Acquisition Circuit 2 connects the digital signal input end of FPGA1, FPGA1 connects for electrical input the power supply output terminal that configures feed circuit 7, four groups of analog switch control signal output terminals of FPGA1 connect respectively the control signal input end of 4 eight path analoging switch 3.
In present embodiment, need cpci bus interface controller 5 between cpci bus 8 and scan A/D C functional circuit, cpci bus interface controller 5 adopts the PCI9054 interface chip of PLX company to realize, cpci bus is transformed into to local bus.PCI9054 local bus side is used FPGA to realize bus interface decoding, and simultaneously, FPGA indoor design control register, realize the control to scan A/D C functional circuit.Scan A/D C funtion part forms 32 tunnel scan A/D C functional circuits by the AD7865 data acquisition chip of 1 successive approximation, 48 path analoging switch chips and 32 AD202 isolating chips, and 32 paths are isolated from each other.
Embodiment two: below in conjunction with Fig. 1, present embodiment is described, present embodiment is described further embodiment one, and described Acquisition Circuit 2 adopts the AD7865 acquisition chip to realize, arrives the conversion of digital quantity be used to realizing analog quantity.
Embodiment three: present embodiment is described below in conjunction with Fig. 1, present embodiment is described further embodiment one, described isolation modulate circuit 4 is 32 tunnel isolation modulate circuits, 32 AD202 isolating chips, consists of, for realizing isolation and the signal condition to simulating signal.
Embodiment four: below in conjunction with Fig. 1, present embodiment is described, present embodiment is described further embodiment one, and described cpci bus interface controller 5 adopts the PCI9054 interface chip to realize.
In present embodiment, complete compatible with PCI 2.2 standards of PCI9054 interface chip, and burst transfers of data speed is high, and the interface chip price is low simultaneously, and versatility is good, can effectively reduce development difficulty.
Embodiment five: below in conjunction with Fig. 2, present embodiment is described, the described control method based on cpci bus scan A/D C functional module driving arrangement under vxworks operating system of present embodiment, the process of this control method is:
The FPDP of step 1, FPGA1 is opened, the load driver program;
Step 2, FPGA1 arrange the channel number of wanting collection signal, start corresponding acquisition channel;
Step 3, Acquisition Circuit 2 start collection signal;
It is complete that step 4, FPGA1 judge whether signal gathers, and if it is performs step five, if otherwise return to step 3;
Step 5, FPGA1 read the signal that Acquisition Circuit 2 gathers;
Step 6, FPGA1 close FPDP, the unloading driver.
In the present invention, ADC functional module driving arrangement is called for short ADC functional module board, and ADC functional module board operates in the CPCI cabinet.Operate in the application program of controlling on computing machine, realize the control to ADC functional module board by cpci bus, therefore need the driver of exploitation based on cpci bus scan A/D C functional module.
Embodiment six: below in conjunction with Fig. 3, present embodiment is described, present embodiment is described further embodiment five, and the concrete grammar that the FPDP of the described FPGA1 of step 1 is opened is:
Step one by one, FPGA1 transmits the plate card number of the ADC functional module board that will open;
Step 1 two, FPGA1 judge in function body whether the plate card number is correct, if otherwise return to step one by one, if it is perform step one or three;
Step 1 three, ADC functional module memory-mapped base value is assigned to a global variable;
Step 1 four, FPDP have been opened.
Embodiment seven: below in conjunction with Fig. 4, present embodiment is described, present embodiment is described further embodiment five, and the concrete grammar that the FPDP of the described FPGA1 of step 6 is closed is:
Step 6 one, FPGA1 transmit the parameter of ADC functional module plate card number;
Step 6 two, FPGA1 judge in function body whether plate is number correct, if otherwise return to step 6 one, if it is perform step six or three;
Step 6 three, the global variable zero clearing that will preserve ADC functional module memory-mapped plot;
Step 6 four, FPDP have been closed.
In the present invention, ADC functional module driving arrangement is inserted in the CPCI cabinet and moves, and controls computing machine and realizes the read-write of scan A/D C functional module is controlled by cpci bus.Between cpci bus and scan A/D C functional circuit, need to realize the cpci bus interface controller, the cpci bus interface controller adopts the PCI9054 interface chip of PLX company to realize, cpci bus is transformed into to local bus.Complete compatible with PCI 2.2 standards of PCI9054 interface chip, and burst transfers of data speed is high, and the interface chip price is low simultaneously, and versatility is good, can effectively reduce development difficulty.PCI9054 local bus side is used FPGA to realize bus interface decoding, and simultaneously, FPGA indoor design control register, realize the control to scan A/D C functional circuit.Scan A/D C funtion part forms 32 tunnel scan A/D C functional circuits by the AD7865 data acquisition chip of 1 successive approximation, 48 path analoging switch chips and 32 AD202 isolating chips, and 32 paths are isolated from each other.
Scan A/D C functional module operates in the CPCI cabinet, operates in the application program of controlling on computing machine, realizes the control to scan A/D C functional module by cpci bus, therefore needs the driver of exploitation based on cpci bus scan A/D C functional module.The Driver Design of scan A/D C functional module mainly comprises initialization apparatus, the realization of power function interface and encapsulation.
First, initialization apparatus: initialization apparatus is as the important step of CPCI Development of device driver, being mainly to be the hardware distributing system resource, is mainly facility information, device memory mapping and the Break Link obtained based on the scan A/D C functional module of cpci bus here.
Obtain the facility information based on the scan A/D C functional module of cpci bus
After the PCI device power, BIOS can PCI allocation equipment.The BIOS of target machine has the information such as interrupt number that the PCI equipment that finds and Vendor ID, Device ID, device type, distribution are listed in an interface when starting.
The initialization function first utilizes function pciFindDevice () to find corresponding equipment according to equipment Vendor ID and Device ID, according to Vendor ID, Device ID and identical device serial number (in a system, identical PCI equipment may be arranged), scan bus, find out BUS No, Device No and the Func No at equipment place.Then according to Bus number, device number and function number, call register base address and the interrupt number that pciConfigInLong () and pciConfigInByte () function are determined equipment.Again base address and I/O mask bit phase with obtain internal register base address on real plate.
2, device memory mapping
VxWorks provides the MMU(memory management unit of standard), the user can distribute with MMU the memory headroom of PCI equipment.After clear and definite base address and memory headroom size, call function sysMmuMapAdd () function can be configured to MMU by memory headroom.After having completed the device memory mapping of ADC functional module, can, by the access to device memory, realize the control to equipment.
3, Break Link
In vxworks operating system, use intConnect () link interruption service routine (ISR), but for CPCI equipment, the general pciIntConncet () that adopts articulates interruption, the main difference of it and intConnect () is that the interrupt vector that intConnect () is used monopolizes, and pciIntConncet () can make a plurality of external interrupt share an interrupt vector.PciIntConncet () is defined in pciIntLib.c, should comprise header file pciIntLib.h during use.Should notice that ventor is interrupt vector, need to be by the INUM_TO_IVEC acquisition that converts.
After under the VxWorks system, using pciIntConnect () function to interrupt and specifically c program couples together, this function interrelates the C function of appointment and the interrupt vector of appointment, and the address of function will be stored in this interrupt vector.When an interrupt occurs, system will be called this specific c program function, i.e. interrupt service routine.
The second, the realization of power function interface and encapsulation:
The realization of power function interface
The power function interface is used for realizing the concrete operations to the ADC functional module, and for the operation of ADC functional module, common mainly containing opened, closed, read data and Real-Time Monitoring in place operation.To the major control process of ADC functional module as shown in Figure 2.
The major control process of ADC functional module as shown in Figure 2, at first application program is carried out and is opened the operation of specifying ADC module board, load the driver of ADC module, next step calls the adc data acquisition interface, application program is imported ADC module board number and channel number into, start corresponding ADC passage, start collection signal, it is complete that next step judges whether signal gathers, then read the signal gathered, next step stops the acquisition function of ADC module respective channel, finally closes the board operation, the unloading driver.Above-mentioned is once the operation of complete ADC module collection signal, and application program completes the signals collecting operation of other passages by repeating above step.
Performed operation in A/D functional circuit control procedure, the driving hardware interface register handbook according to the hardware design personnel provide, operate concrete control register, can realize above operation.
According to the common operation that will realize the ADC functional module, the detailed design of each power function interface is as follows:
1, open the ADC functional module, as shown in table 1, the specific implementation flow process of program as shown in Figure 3.
Table 1
At first the ADC module board card number that will open of application passes, in function body, judge whether plate is number correct, if ADC functional module memory-mapped base value correct that obtain after the initialization function is carried out is assigned to a global variable, last function returns to OK, if not being the user, the plate parameter do not allow, the Returning plate mistake.
2, close the ADC functional module, as shown in table 2, the specific implementation process flow diagram of program as shown in Figure 4.
Table 2
At first the appointment ADC module board number that will close of application passes, in function body, whether the plate parameter that judgement is transmitted is correct, if correct, the global variable zero clearing that will preserve memory base address, function returns to OK, if plate card number mistake, Returning plate mistake.
3, the read operation of ADC functional module, as shown in table 3, and the specific implementation process flow diagram of program as shown in Figure 5.
Table 3
Figure BDA0000374704920000072
At first application passes will be carried out ADC module board number and the channel number parameter of signals collecting, in function body, whether the plate number that first judgement is transmitted is that the user allows the plate number of inputting, if, further whether the channel number of judgement transmission is that the user allows the channel number of inputting again, if, start and specify the dedicated tunnel of ADC module to carry out signals collecting, next step judges whether signal has gathered, if gathered, read the signal of collection, next step reads the correction factor of ADC module, the signal value of collection is converted into to magnitude of voltage and preserves, last function returns to OK, if the process of above-mentioned judgement occurs, according in process flow diagram, carrying out.
4, ADC functional module Real-Time Monitoring, as shown in table 4, and the specific implementation process flow diagram of program as shown in Figure 6.
Table 4
At first application passes is specified ADC functional module plate number, in function body, whether the plate number that judgement is transmitted is the plate number that the user allows, if, next step calls PciFindDevice () function, whether the rreturn value that judges PciFindDevice () function is OK, and if so, function interface returns to OK.If above-mentioned judgement occurs, press the respective operations processing in process flow diagram, explain no longer in detail here.
Performed operation in ADC functional module control procedure, the driving hardware interface register handbook according to the hardware design personnel provide, operate concrete control register, can realize above operation.

Claims (7)

1.VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备,其特征在于,它包括FPGA(1)、采集电路(2)、4个八路模拟开关(3)、隔离调理电路(4)、CPCI总线接口控制器(5)、配置电路(6)、配置供电电路(7)和CPCI总线(8),1. CPCI bus scanning ADC function module drive device under VxWorks operating system, characterized in that it includes FPGA (1), acquisition circuit (2), four eight-way analog switches (3), isolation conditioning circuit (4), CPCI bus interface controller (5), configuration circuit (6), configuration power supply circuit (7) and CPCI bus (8), CPCI总线接口控制器(5)的CPCI总线数据端口连接CPCI总线(8),CPCI总线接口控制器(5)的本地总线端口连接FPGA(1)的数据地址总线,CPCI总线接口控制器(5)的配置数据端口连接配置电路(6)的数据端口,The CPCI bus data port of the CPCI bus interface controller (5) is connected to the CPCI bus (8), the local bus port of the CPCI bus interface controller (5) is connected to the data address bus of the FPGA (1), and the CPCI bus interface controller (5) The configuration data port is connected to the data port of the configuration circuit (6), 隔离调理电路(4)的输入端为32路模拟信号输入端,隔离调理电路(4)的32个信号输出端分成四组,每组中的8个信号输出端分别连接1个八路模拟开关(3)的八个模拟信号输入端,4个八路模拟开关(3)的4个模拟信号输出端分别连接采集电路(2)的4个模拟信号输入端,采集电路(2)的数字信号输出端连接FPGA(1)的数字信号输入端,FPGA(1)的供电输入端连接配置供电电路(7)的供电输出端,FPGA(1)的四组模拟开关控制信号输出端分别连接4个八路模拟开关(3)的控制信号输入端。The input terminals of the isolation conditioning circuit (4) are 32 analog signal input terminals, the 32 signal output terminals of the isolation conditioning circuit (4) are divided into four groups, and the 8 signal output terminals in each group are respectively connected to an eight-channel analog switch ( 3) The eight analog signal input terminals, the four analog signal output terminals of the four eight-way analog switches (3) are respectively connected to the four analog signal input terminals of the acquisition circuit (2), and the digital signal output terminals of the acquisition circuit (2) Connect to the digital signal input terminal of FPGA (1), connect the power supply input terminal of FPGA (1) to the power supply output terminal of configuration power supply circuit (7), and connect the four groups of analog switch control signal output terminals of FPGA (1) to four eight-way analog The control signal input terminal of the switch (3). 2.根据权利要求1所述VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备,其特征在于,所述采集电路(2)采用AD7865采集芯片实现,用于实现模拟量到数字量的转换。2. According to the described VxWorks operating system of claim 1, the CPCI bus scanning ADC function module driving device is characterized in that, the acquisition circuit (2) is realized by adopting the AD7865 acquisition chip, and is used to realize the conversion from analog to digital. 3.根据权利要求1所述VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备,其特征在于,所述隔离调理电路(4)为32路隔离调理电路,由32片AD202隔离芯片组成,用于实现对模拟信号的隔离及信号调理。3. according to claim 1 under the described VxWorks operating system, the CPCI bus scans the ADC functional module drive device, wherein the isolation conditioning circuit (4) is a 32-way isolation conditioning circuit, composed of 32 AD202 isolation chips, used for Realize the isolation and signal conditioning of analog signals. 4.根据权利要求1所述VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备,其特征在于,所述CPCI总线接口控制器(5)采用PCI9054接口芯片实现。4. According to the described VxWorks operating system of claim 1, the CPCI bus scanning ADC function module driving device is characterized in that, the CPCI bus interface controller (5) is implemented by a PCI9054 interface chip. 5.基于权利要求1所述VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备的控制方法,其特征在于,该控制方法的过程为:5. based on the control method of CPCI bus scanning ADC functional module drive equipment under the VxWorks operating system described in claim 1, it is characterized in that, the process of this control method is: 步骤一、FPGA(1)的数据端口打开,加载驱动程序;Step 1: Open the data port of FPGA (1) and load the driver; 步骤二、FPGA(1)设置要采集信号的通道号,启动相应的采集通道;Step 2, FPGA (1) sets the channel number of the signal to be collected, and starts the corresponding collection channel; 步骤三、采集电路(2)开始采集信号;Step 3, the acquisition circuit (2) starts to acquire signals; 步骤四、FPGA(1)判断信号是否采集完毕,如果是则执行步骤五,如果否则返回步骤三;Step 4, FPGA (1) judges whether the signal is collected, if yes, execute step 5, otherwise return to step 3; 步骤五、FPGA(1)读取采集电路(2)采集的信号;Step 5, FPGA (1) reads the signal collected by the acquisition circuit (2); 步骤六、FPGA(1)关闭数据端口,卸载驱动程序。Step 6. FPGA (1) closes the data port and unloads the driver. 6.根据权利要求5所述基于VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备的控制方法,其特征在于,步骤一所述FPGA(1)的数据端口打开的具体方法为:6. according to claim 5 based on the control method of CPCI bus scanning ADC function module driving device under the VxWorks operating system, it is characterized in that, the specific method that the data port of FPGA (1) described in step 1 is opened is: 步骤一一、FPGA(1)传递要打开的ADC功能模块板卡的板卡号;Step 11, FPGA (1) transmits the board number of the ADC function module board to be opened; 步骤一二、FPGA(1)在函数体中判断板卡号是否正确,如果否则返回步骤一一,如果是则执行步骤一三;Step 12, FPGA (1) judges whether the board number is correct in the function body, if not, return to step 11, if yes, execute step 13; 步骤一三、将ADC功能模块内存映射基址值赋给一个全局变量;Step 13, assigning the ADC function module memory mapping base address value to a global variable; 步骤一四、数据端口打开完成。Step 14, the data port is opened. 7.根据权利要求5所述基于VxWorks操作系统下CPCI总线扫描ADC功能模块驱动设备的控制方法,其特征在于,步骤六所述FPGA(1)的数据端口关闭的具体方法为:7. according to claim 5 based on the control method of the CPCI bus scanning ADC function module driving device under the VxWorks operating system, it is characterized in that, the specific method that the data port of FPGA (1) described in step 6 closes is: 步骤六一、FPGA(1)传递ADC功能模块板卡号的参数;Step 61, FPGA (1) transmits the parameters of the board number of the ADC function module; 步骤六二、FPGA(1)在函数体中判断板号是否正确,如果否则返回步骤六一,如果是则执行步骤六三;Step 62, FPGA (1) judge whether the board number is correct in the function body, if not, return to step 61, if yes, execute step 63; 步骤六三、将保存有ADC功能模块内存映射基址的全局变量清零;Step 63, clearing the global variable that preserves the memory mapping base address of the ADC function module; 步骤六四、数据端口关闭完成。Step 64, the closing of the data port is completed.
CN2013103891624A 2013-08-30 2013-08-30 CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof Pending CN103412833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103891624A CN103412833A (en) 2013-08-30 2013-08-30 CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103891624A CN103412833A (en) 2013-08-30 2013-08-30 CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof

Publications (1)

Publication Number Publication Date
CN103412833A true CN103412833A (en) 2013-11-27

Family

ID=49605846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103891624A Pending CN103412833A (en) 2013-08-30 2013-08-30 CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof

Country Status (1)

Country Link
CN (1) CN103412833A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677856A (en) * 2014-01-07 2014-03-26 哈尔滨工业大学 Method for designing CPCI bus switching-value output function unit driving program under the VxWorks operating system
CN103761199A (en) * 2014-01-03 2014-04-30 哈尔滨工业大学 CPCI bus digital-analog input module hardware architecture under VxWorks and CPCI bus digital-analog input timing-configurable driving method under VxWorks
CN104021102A (en) * 2014-05-26 2014-09-03 北京佳讯飞鸿电气股份有限公司 CPCI serial port plate based on state machine and on-chip bus and working method of CPCI serial port plate
CN106597184A (en) * 2016-12-30 2017-04-26 陕西海泰电子有限责任公司 Automation test system based on hardware scanning technique, and test method thereof
CN109542804A (en) * 2018-11-21 2019-03-29 国网福建省电力有限公司 A kind of secondary device hardware board automatic identifying method based on pci bus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206690A1 (en) * 2004-09-08 2007-09-06 Ralph Sperschneider Device and method for generating a multi-channel signal or a parameter data set
CN102420877A (en) * 2011-12-01 2012-04-18 中国船舶重工集团公司第七○九研究所 Multi-mode high-speed intelligent asynchronous serial port communication module and implementation method
CN102694530A (en) * 2012-05-11 2012-09-26 蔡远文 Pulse signal test device of inertial platform for launch vehicle
CN102722463A (en) * 2012-05-11 2012-10-10 蔡远文 System for acquiring and processing multi-type information based on cPCI bus
CN102999381A (en) * 2011-09-09 2013-03-27 中国航天科工集团第三研究院第八三五七研究所 Compact peripheral component interconnect (CPCI) device interrupt multiplexing method for improving realtime performance of VxWorks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206690A1 (en) * 2004-09-08 2007-09-06 Ralph Sperschneider Device and method for generating a multi-channel signal or a parameter data set
CN102999381A (en) * 2011-09-09 2013-03-27 中国航天科工集团第三研究院第八三五七研究所 Compact peripheral component interconnect (CPCI) device interrupt multiplexing method for improving realtime performance of VxWorks
CN102420877A (en) * 2011-12-01 2012-04-18 中国船舶重工集团公司第七○九研究所 Multi-mode high-speed intelligent asynchronous serial port communication module and implementation method
CN102694530A (en) * 2012-05-11 2012-09-26 蔡远文 Pulse signal test device of inertial platform for launch vehicle
CN102722463A (en) * 2012-05-11 2012-10-10 蔡远文 System for acquiring and processing multi-type information based on cPCI bus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱欣华 等: "《基于PCI总线的CAN接口卡及其VxWorks环境下驱动程序的设计》", 《电子器件》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761199A (en) * 2014-01-03 2014-04-30 哈尔滨工业大学 CPCI bus digital-analog input module hardware architecture under VxWorks and CPCI bus digital-analog input timing-configurable driving method under VxWorks
CN103677856A (en) * 2014-01-07 2014-03-26 哈尔滨工业大学 Method for designing CPCI bus switching-value output function unit driving program under the VxWorks operating system
CN104021102A (en) * 2014-05-26 2014-09-03 北京佳讯飞鸿电气股份有限公司 CPCI serial port plate based on state machine and on-chip bus and working method of CPCI serial port plate
CN104021102B (en) * 2014-05-26 2017-05-24 北京佳讯飞鸿电气股份有限公司 CPCI serial port plate based on state machine and on-chip bus and working method of CPCI serial port plate
CN106597184A (en) * 2016-12-30 2017-04-26 陕西海泰电子有限责任公司 Automation test system based on hardware scanning technique, and test method thereof
CN109542804A (en) * 2018-11-21 2019-03-29 国网福建省电力有限公司 A kind of secondary device hardware board automatic identifying method based on pci bus
CN109542804B (en) * 2018-11-21 2024-02-09 国网福建省电力有限公司 Automatic recognition method for secondary equipment hardware board card based on PCI bus

Similar Documents

Publication Publication Date Title
CN103412833A (en) CPCI (Compact Peripheral Component Interconnect) bus scanning ADC (Analog-to-Digital Converter) function module driver under VxWorks operating system and control method thereof
CN101937222B (en) Board Level Test System
CN103412841A (en) Driver and driving method for CPCI (Compact Peripheral Component Interconnect) bus RS422 communication module under VxWorks operating system
CN203480022U (en) Super-high speed general radar signal processing board
CN109307833A (en) Apparatus for testing chip and chip detecting method
CN102479132A (en) Multi-chip test system and its test method
US20210173992A1 (en) Fpga chip-based handler simulation test system and a test method
CN207198253U (en) A kind of servo rotary transformer analog device based on FPGA
CN106773892A (en) The digital and analogue signals harvester of industry is equipped towards electrician
CN101666855A (en) Universal test system and method of integrated circuit
CN108536925A (en) A kind of isolated form dynamic overall process Real Time Hybrid Simulation interface system
CN207529173U (en) A kind of 16 path thermocouple input modules
CN108153624B (en) Test circuit board suitable for NGFF slot
CN102654847A (en) PXIe zero-slot controller
CN106134077A (en) Programmable switch capacitor block
CN105589026A (en) Large switch matrix testing device
CN208888804U (en) A kind of multi-processor electronic device
CN110647431B (en) Test box for board card and complete machine diagnosis test
CN104077200A (en) Individual testing device for CPCI (Compact Peripheral Component Interconnect) module separated from main engine
CN216771895U (en) Power supply management system
CN219574799U (en) Multi-bus bridge based on AMBA bus and system on chip thereof
CN103713908A (en) Method for designing digital quantity input functional unit driving program of CPCI (compact peripheral component interface) bus under VxWorks operating system
CN104022933A (en) Vehicle bus debugging system based on multi-mode signal conversion
US10109369B2 (en) Test device and test system having the same
CN110068801B (en) Short wave digital receiver based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131127