CN105342609A - Portable auditory evoked potential detection system and realization method thereof - Google Patents
Portable auditory evoked potential detection system and realization method thereof Download PDFInfo
- Publication number
- CN105342609A CN105342609A CN201510811544.0A CN201510811544A CN105342609A CN 105342609 A CN105342609 A CN 105342609A CN 201510811544 A CN201510811544 A CN 201510811544A CN 105342609 A CN105342609 A CN 105342609A
- Authority
- CN
- China
- Prior art keywords
- buffer area
- dma controller
- stimulation
- detection system
- sound
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 230000000763 evoking effect Effects 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims abstract description 11
- 230000004936 stimulating effect Effects 0.000 claims abstract description 8
- 230000000638 stimulation Effects 0.000 claims description 121
- 230000003068 static effect Effects 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 9
- 238000013523 data management Methods 0.000 claims description 6
- 238000012546 transfer Methods 0.000 claims description 4
- 101150043088 DMA1 gene Proteins 0.000 description 9
- 101150090596 DMA2 gene Proteins 0.000 description 7
- 210000004556 brain Anatomy 0.000 description 7
- 238000013461 design Methods 0.000 description 7
- 238000005070 sampling Methods 0.000 description 7
- 238000000151 deposition Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 210000003128 head Anatomy 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- GTKRFUAGOKINCA-UHFFFAOYSA-M chlorosilver;silver Chemical group [Ag].[Ag]Cl GTKRFUAGOKINCA-UHFFFAOYSA-M 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 208000016621 Hearing disease Diseases 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 210000000133 brain stem Anatomy 0.000 description 1
- 210000003710 cerebral cortex Anatomy 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000011534 incubation Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 210000000653 nervous system Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 210000004761 scalp Anatomy 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
The invention discloses a portable auditory evoked potential detection system and a realization method thereof. The system comprises an analog front end amplifier, an auditory stimulator, and a microprocessor which uses double DMA controllers cooperating with a double-storage area in-turn storage mechanism to synchronously play stimulating sound and acquire electroencephalogram. The microprocessor is connected with the analog front end amplifier and the auditory stimulator. The method comprises synchronously playing stimulating sound and acquiring electroencephalogram by using the double-storage area in-turn storage mechanism. Through the system, a single-core processor architecture can be used to realize synchronization of stimulating sound playing and electroencephalogram acquisition. Thus, two subsets which respectively independently work are not needed, thereby greatly reducing volume of the detection system, saving placing space, and providing convenience for detection personnel to carry, operate and use. The portable auditory evoked potential detection system and the realization method thereof can be widely applied in the field of medical instruments.
Description
Technical field
The present invention relates to medical device technology, particularly relate to a kind of portable auditory evoked potential detection system and its implementation.
Background technology
Auditory evoked potential (auditoryevokedpotential, AEP) be after people's ear receives Sound stimulat, a series of electrophysiologic responses that auditory nervous system and cerebral cortex produce, can be divided into auditory brainstem response by incubation period, middle latency responses and late latency reaction.And auditory evoked potential is one of important means of research hearing disorders, be widely used clinical.But the clinical practice of current AEP is also in conceptual phase, need further to explore and promote, therefore, convenient and reliable checkout equipment is necessary.
The design that the auditory evoked potential detection system that tradition is commonly used usually adopts stimulus signal and EEG signals to separate and processes realizes, therefore, traditional auditory evoked potential detection system generally includes two large autonomous devices, the brain wave acquisition equipment being respectively independently sound stimulation device and being mated.But traditional auditory evoked potential detection system has many shortcomings, such as: 1, because sound stimulation device and brain wave acquisition equipment are two subsets independently worked, therefore, the volume of system is large, and is not easy to carry and put; 2, current sound stimulation device and brain wave acquisition equipment all adopt special commercial equipment to realize, and therefore, price is very expensive.
Summary of the invention
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of portable auditory evoked potential detection system.
Another object of the present invention is to provide a kind of implementation method of portable auditory evoked potential detection system.
The technical solution adopted in the present invention is: a kind of portable auditory evoked potential detection system, comprise AFE (analog front end) amplifier, sound stimulation device and deposit for utilizing two dma controller to work in coordination with double memory area wheel the microprocessor that mechanism synchronously carries out the broadcasting of stimulation sound and eeg signal acquisition, described microprocessor is connected with AFE (analog front end) amplifier and sound stimulation device respectively.
Further, described microprocessor comprises kernel, the first dma controller, the second dma controller, virtual address map device and static RAM, described kernel is connected with the first dma controller, virtual address map device and the second dma controller respectively, and described first dma controller, virtual address map device and the second dma controller are all connected with static RAM;
Described sound stimulation device is connected with the first dma controller, and described AFE (analog front end) amplifier is connected with kernel and static RAM respectively.
Further, described static RAM comprises the second buffer area and the 3rd buffer area of the EEG signals stimulating the first buffer area of acoustical signal for buffer memory and transmitted by AFE (analog front end) amplifier for alternately buffer memory, described first buffer area is connected with the first dma controller, and described second buffer area is all connected with the second dma controller and virtual address map device with the 3rd buffer area.
Further, also comprise for storing stimulation acoustical signal and stimulation acoustical signal being transferred to the SD card that the first buffer area carries out buffer memory.
Further, also comprise host computer, described host computer is connected with kernel, the first buffer area and the second dma controller respectively.
Further, also comprise for EEG signals being carried out gathering and the EEG signals collected being transferred to the electrode of AFE (analog front end) amplifier, described electrode is connected with AFE (analog front end) amplifier.
Further, also comprise the earphone for playing stimulation sound, described earphone is connected with sound stimulation device.
Further, described host computer comprises communication module, additional function modules, stimulus modelity module, signal detection module and data management module.
Another technical scheme of the present invention is: a kind of implementation method of portable auditory evoked potential detection system, and the method comprises:
A, kernel start the first dma controller work, the stimulation acoustical signal of stimulation duration single in the first buffer area is transferred to sound stimulation device by described first dma controller, thus carry out the broadcasting of stimulation sound, simultaneously, kernel sends enabled instruction to AFE (analog front end) amplifier, thus make AFE (analog front end) amplifier carry out the collection of EEG signals, and the EEG signals collected is transferred to the second buffer area by described AFE (analog front end) amplifier carries out buffer memory, the starting position that described EEG signals is deposited is after the sync mark position of the second buffer area;
After the stimulation acoustical signal of single stimulation duration is all transferred to sound stimulation device by B, the first dma controller, kernel triggers the first dma controller and interrupts, and then enters interrupt handling routine;
In interrupt handling routine, kernel starts the second dma controller work, sync mark position in second buffer area and EEG signals are uploaded in host computer by described second dma controller, and kernel is the address of the 3rd buffer area by the buffer area address maps that the next one to be used for buffer memory EEG signals by virtual address map device, and journey number of times is swept in stimulation add 1, then interrupt handling routine terminates;
C, judge that stimulation is swept journey number of times and whether is less than preset times, if so, then return to execution steps A; Otherwise, then terminate.
Further, be also provided with before described steps A and initialize this step, described initialization comprises:
It is 0 that journey number of times is swept in initialization stimulation;
Initialize the second buffer area and the 3rd buffer area, all write these two data of 0x700000 and 0xFFFFFF at the head of the second buffer area and the 3rd buffer area, and 0x700000 and 0xFFFFFF occurred continuously is defined as sync mark position.
The invention has the beneficial effects as follows: detection system of the present invention is provided with takes turns for utilizing two dma controller to work in coordination with double memory area the microprocessor that mechanism of depositing synchronously carries out the broadcasting of stimulation sound and eeg signal acquisition, therefore can obtain thus, detection system of the present invention utilizes the framework of a single core processor just can realize stimulation sound and plays and eeg signal acquisition synchronous, so then without the need to adopting two subsets independently worked, thus greatly reduce the volume of detection system, save placing space, testing staff can be convenient to and carry with operation use.And system of the present invention also has, and cost is low, structure simple, be easy to the advantages such as realization.
Another beneficial effect of the present invention is: the implementation method of the application of the invention, stimulation sound can be realized play and eeg signal acquisition synchronous in the framework of a single core processor, so then without the need to adopting two subsets independently worked, thus the volume of detection system can be greatly reduced, save placing space, be convenient to testing staff and carry with operation use.And method of the present invention also have step simple, be easy to the advantages such as realization.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further:
Fig. 1 is the structural principle block diagram of a kind of portable auditory evoked potential detection system of the present invention;
Fig. 2 is a specific embodiment structural principle block diagram of microprocessor in a kind of portable auditory evoked potential detection system of the present invention;
Fig. 3 is the flow chart of steps of the implementation method of a kind of portable auditory evoked potential detection system of the present invention;
Fig. 4 is a specific embodiment flow chart of steps of the implementation method of a kind of portable auditory evoked potential detection system of the present invention.
Detailed description of the invention
As shown in Figure 1, a kind of portable auditory evoked potential detection system, comprise AFE (analog front end) amplifier, sound stimulation device and deposit for utilizing two dma controller to work in coordination with double memory area wheel the microprocessor that mechanism synchronously carries out the broadcasting of stimulation sound and eeg signal acquisition, described microprocessor is connected with AFE (analog front end) amplifier and sound stimulation device respectively.Wherein, described microprocessor is single core processor, and for described AFE (analog front end) amplifier, it is specially medical grade AFE (analog front end) amplifier.
Be further used as preferred embodiment, described microprocessor comprises kernel, the first dma controller, the second dma controller, virtual address map device and static RAM, described kernel is connected with the first dma controller, virtual address map device and the second dma controller respectively, and described first dma controller, virtual address map device and the second dma controller are all connected with static RAM;
Described sound stimulation device is connected with the first dma controller, and described AFE (analog front end) amplifier is connected with kernel and static RAM respectively.Described kernel is specially the kernel of microprocessor.
Be further used as preferred embodiment, described static RAM comprises the second buffer area and the 3rd buffer area of the EEG signals stimulating the first buffer area of acoustical signal for buffer memory and transmitted by AFE (analog front end) amplifier for alternately buffer memory, described first buffer area is connected with the first dma controller, and described second buffer area is all connected with the second dma controller and virtual address map device with the 3rd buffer area.
Be further used as preferred embodiment, also comprise and stimulate acoustical signal for storing and stimulation acoustical signal is transferred to the SD card that the first buffer area carries out buffer memory.
Be further used as preferred embodiment, also comprise host computer, described host computer is connected with kernel, the first buffer area and the second dma controller respectively.Described host computer can be preferably portable computer, IPAD or smart mobile phone etc.
Be further used as preferred embodiment, also comprise for EEG signals being carried out gathering and the EEG signals collected being transferred to the electrode of AFE (analog front end) amplifier, described electrode is connected with AFE (analog front end) amplifier.
Be further used as preferred embodiment, also comprise the earphone for playing stimulation sound, described earphone is connected with sound stimulation device.
Be further used as preferred embodiment, described host computer comprises communication module, additional function modules, stimulus modelity module, signal detection module and data management module.Wherein, described communication module is preferably USB communication module.
Present system one specific embodiment
As depicted in figs. 1 and 2, a kind of portable auditory evoked potential detection system, it specifically comprises: host computer, SD card, take turns mechanism of depositing and synchronously carry out for utilizing two dma controller to work in coordination with double memory area microprocessor, medical grade AFE (analog front end) amplifier, sound stimulation device, the electrode be connected with medical grade AFE (analog front end) amplifier and the earphone be connected with sound stimulation device that the broadcasting of stimulation sound uploads with eeg signal acquisition;
Described microprocessor comprises kernel, the first dma controller DMA1, the second dma controller DMA2, virtual address map device and static RAM SRAM, described kernel is connected with the first dma controller DMA1, virtual address map device and the second dma controller DMA2 respectively, and described first dma controller DMA1, virtual address map device and the second dma controller DMA2 are all connected with static RAM SRAM;
Described sound stimulation device is connected with the first dma controller DMA1, and described medical grade AFE (analog front end) amplifier is connected with kernel and static RAM SRAM respectively;
Described static RAM SRAM comprises the second buffer area A1 and the 3rd buffer area A2 of the EEG signals stimulating the first buffer area Vd of acoustical signal for buffer memory and transmitted by AFE (analog front end) amplifier for alternately buffer memory, described first buffer area Vd is connected with the first dma controller DMA1, and described second buffer area A1 is all connected with the second dma controller DMA2 and virtual address map device with the 3rd buffer area A2;
Described host computer is connected with kernel, the first buffer area Vd and the second dma controller DMA2 respectively;
Described SD card is connected with the first buffer area Vd;
In addition, in present system, it also includes for the power circuit for microprocessor power supply and the button be connected with microprocessor and LCD screen, i.e. LCD display.
For the various piece of the invention described above system, their specific descriptions are as follows.
For above-mentioned earphone, its be preferably ear-shield type dual-channel headphone, for shielding extraneous sound interference, and according to sound stimulation device export stimulation acoustical signal so that play multiple corresponding stimulation sound.
For above-mentioned sound stimulation device, it is based on audio decoder chip design, and it passes through I
2c and I
2s bus and described microprocessor carry out data communication, stimulation acoustical signal is transferred to sound stimulation device by microprocessor, then after the D/A D/A converter module in sound stimulation device converts digitized stimulation acoustical signal to analog electrical signal, exports the broadcasting that described ear-shield type dual-channel headphone realizes stimulation sound to.
For above-mentioned electrode, it is preferably silver-silver chloride disk electrode, for contacting the sensor as gathering evoked brain potential with scalp, and the EEG signals that will collect, i.e. AEP signal, transfer to medical grade AFE (analog front end) amplifier.
For above-mentioned medical grade AFE (analog front end) amplifier, it designs based on a medical simulation front-end chip, and it is connected with microprocessor communications by spi bus.Described silver-silver chloride disk electrode collect the EEG signals of brain cortex surface, after the inner integrated programmable gain amplifier PGA of medical grade AFE (analog front end) amplifier carries out differential amplification, digital signal is converted to by its inner 24 high-precision A/D analog-to-digital conversion modules, and in the second buffer area A1 on the sheet being imported into microprocessor by spi bus in buffer area and the 3rd buffer area A2.
For above-mentioned SD card, it carries out buffer memory for storing to stimulate acoustical signal and stimulation acoustical signal is transferred to the first buffer area Vd.Described stimulation acoustical signal includes the stimulation sound data of several fixing stimulus modelity.And by the SD card described in adopting, then can for without using the user of training provide a stimulus modelity scheme fast and easily.
For above-mentioned power circuit, it is multi-level pmultistage circuit, adopts floating form of power to design, and object is to reduce Hz noise in Acquisition Circuit, can improve the common mode rejection ratio of present system.In the present embodiment, + 5V the voltage that described power circuit utilizes DC/DC isolating chip, LDO power supply chip and reversing pump power supply chip to be provided by the USB port of described host computer carries out voltage transitions, for detection system of the present invention provides analog voltage ± 2.5V, digital voltage+3.3V and reference voltage+1.024V respectively.
For above-mentioned LCD screen, the display of its setting for stimulus modelity and system operational parameters, stimulus modelity parameter, for user provides friendly experience.
For above-mentioned host computer, it is for realizing the data storage management of the EEG signals of system, the functions such as EEG Processing.Host computer is connected with microprocessor and power circuit by USB interface, realizes the transmission of the data receiver of described EEG signals and the stimulation sound data of stimulus modelity.There is the host computer desktop programs that VisualC# software platform is write in described host computer, contain: USB communication module, additional function modules, signal detection module, stimulus modelity module and data management module.And the specific descriptions of USB communication module, additional function modules, signal detection module, stimulus modelity module and data management module are as follows:
Described USB communication module, for completing the EEG signals that real-time reception is transmitted by usb bus by microprocessor and the stimulation sound data sending stimulus modelity, realizes the instruction issuing between host computer and slave computer and data upload;
Described additional function modules, for reading the impedance and temperature data that microprocessor collects, and is shown by parametric form;
Described stimulus modelity module, for arranging the stimulation sound data of stimulus modelity, comprising stimulation sound, stimulating the parameters such as number of times, stimulus intensity and tested auditory meatus;
Described signal detection module, for carrying out Digital Signal Processing to the EEG signals received, and shows testing result in real time by graphical and parametric form;
Described data management module, for setting up subject information's archives, preserving the initial data of subject information, stimulus modelity and AEP signal, and printing AEP testing result.
For above-mentioned microprocessor, it can preferably adopt the microprocessor STM32 of ARM framework to realize, it is the acp chip of whole system, acoustical signal is stimulated for exporting to sound stimulation device, receive the EEG signals from medical grade AFE (analog front end) amplifier, and set up communication by usb bus and host computer, EEG signals in the second buffer area A1 and the 3rd buffer area A2 is uploaded to host computer.
Particularly, in described microprocessor, burning has program curing, includes USB communication program, SD card fetch program, audio generation programs, signal data acquisition program, additional function program, wherein:
Described USB communication program, it is for setting up the communication of microprocessor and host computer, realizes the transmission of EEG signals and the transmission of stimulus modelity instruction;
The described SD card fetch program, embedded FatFS file system, for reading the internal data of the SD card be connected with the SDIO interface of microprocessor, store the stimulation sound data of several conventional stimulus modelity in described SD card, and described stimulation sound data comprise stimulation sound, stimulate the parameters such as number of times, stimulus intensity and tested auditory meatus;
Described audio generation programs, for passing through I
2c host-host protocol reads and writes the internal register of described sound stimulation device, and passes through I
2s host-host protocol imports the stimulation sound data of the stimulus modelity stored in set by host computer or described SD card into sound stimulation device, and then realizes the broadcasting of stimulation sound;
Described signal data acquisition program, for being completed initialization and the data communication of described medical grade AFE (analog front end) amplifier by SPI host-host protocol, the brain electric analoging signal that described silver-silver chloride disk electrode gathers is converted to brain electricity digital signal, and transfers to described USB communication program to transfer in described host computer;
Described additional function program, comprises electrode-skin impedance detection program, system operating temperatures monitoring programme and LCD display routine;
Wherein, electrode-skin impedance detection program can complete the impedance detection between electrode and skin, for the effect of laying of electrode provides a detection method; The temperature of system operating temperatures monitoring programme energy real-time detecting system circuit board, allows user understand system current operating temperature; LCD display routine, it is for showing the various parameters of stimulus modelity, comprises and stimulates number of times, stimulation sound sequence names, parameter such as stimulation sound intensity and tested auditory meatus etc., for user provides visual display interface to selected stimulus modelity.
In addition, according to the general knowledge of this area, the detection method of AEP needs to use phase-locked superposed average algorithm process, improves signal to noise ratio, extract the object of EEG signals to reach in strong background noise.But phase-locked superposed average algorithm requires the broadcasting of stimulation sound and the collection stringent synchronization in time of EEG signals, for the phase-locked superposed average computing of AEP data.And at present, most auditory evoked potential checkout equipment is all based on dual core processors design on the market, two processors are adopted to control the broadcasting of stimulation sound and the data acquisition of EEG signals respectively.In order to the data collection synchronous of the broadcasting and EEG signals that realize stimulation sound, extra synchronous circuit must be introduced, so not only make the volume of system large, be not easy to carry with use, and design procedure is complicated, increase the work load of designer, and increase cost.In order to address these problems, system of the present invention then adopts the framework based on single core processor, works in coordination with double memory area wheel mechanism of depositing synchronously carry out the broadcasting of stimulation sound and the collection of EEG signals by two dma controller.
Work in coordination with double memory area wheel mechanism of depositing and synchronously carry out stimulation sound in order to realize the two dma controller of described utilization and play and this step of eeg signal acquisition, first it need in sram, initialize three segment data buffer areas, be respectively the first buffer area Vd, the second buffer area A1 and the 3rd buffer area A2, wherein, the first described buffer area Vd is used for buffer memory stimulates acoustical signal, and size is the data length of the stimulation acoustical signal of single stimulation duration L, and unit is Byte; And for the second buffer area A1 and the 3rd buffer area A2, their size is [3*(
f s× L+2)], unit is Byte, wherein,
f sbe expressed as the signal sampling rate of medical grade AFE (analog front end) amplifier, L is expressed as single stimulation duration.
During work, the described double memory area wheel mechanism of depositing that utilizes synchronously carries out the broadcasting of stimulation sound and this step of eeg signal acquisition, and it specifically comprises:
Step one, kernel starts the first dma controller DMA1 and works, the stimulation acoustical signal of stimulation duration single in the first buffer area Vd is transferred to sound stimulation device by described first dma controller DMA1, thus carry out the broadcasting of stimulation sound, meanwhile, kernel sends enabled instruction to medical grade AFE (analog front end) amplifier, thus make medical grade AFE (analog front end) amplifier carry out the collection of EEG signals, and the EEG signals collected is transferred to the second buffer area A1 by described medical grade AFE (analog front end) amplifier carries out buffer memory, the starting position that described EEG signals is deposited is after the sync mark position of the second buffer area A1,
Step 2, after the stimulation acoustical signal of single stimulation duration is all transferred to sound stimulation device by the first dma controller DMA1, kernel triggers the first dma controller DMA1 and interrupts, and then enters interrupt handling routine;
In interrupt handling routine, kernel starts the second dma controller DMA2 and works, sync mark position in second buffer area A1 and EEG signals are uploaded in host computer by described second dma controller DMA2, and kernel is the address of the 3rd buffer area A2 by the buffer area address maps that the next one to be used for buffer memory EEG signals by virtual address map device, and journey times N is swept in stimulation add 1, then interrupt handling routine terminates, and namely an AEP signal sampling period terminates;
Step 3, judge that stimulation is swept journey times N and whether is less than preset times, if so, then return to and perform step one, start next AEP signal sampling period; Otherwise then jump out loop body, the operation of AEP signal sampling terminates.
Preferably, be also provided with before step one and initialize this step, described initialization comprises:
It is 0 that journey number of times is swept in initialization stimulation;
Initialize the second buffer area and the 3rd buffer area, all write these two data of 0x700000 and 0xFFFFFF at the head of the second buffer area and the 3rd buffer area, and 0x700000 and 0xFFFFFF occurred continuously is defined as sync mark position.
Can obtain from above, utilize and above-mentioned utilize double memory area to take turns the mechanism of depositing to make full use of the transmission data of dma controller and not take the advantage of CPU, can under the framework of single core processor, realize stimulation sound to play and synchronously the carrying out of eeg signal acquisition, the system of such the application of the invention, just can greatly reduce the volume of system, saves placing space, be convenient to staff and carry with operation use, and reduce the difficulty of design and the cost of product-specific investments.
As shown in Figure 3, a kind of implementation method of portable auditory evoked potential detection system, the method comprises:
A, kernel start the first dma controller work, the stimulation acoustical signal of stimulation duration single in the first buffer area is transferred to sound stimulation device by described first dma controller, thus carry out the broadcasting of stimulation sound, simultaneously, kernel sends enabled instruction to AFE (analog front end) amplifier, thus make AFE (analog front end) amplifier carry out the collection of EEG signals, and the EEG signals collected is transferred to the second buffer area by described AFE (analog front end) amplifier carries out buffer memory, the starting position that described EEG signals is deposited is after the sync mark position of the second buffer area;
After the stimulation acoustical signal of single stimulation duration is all transferred to sound stimulation device by B, the first dma controller, kernel triggers the first dma controller and interrupts, and then enters interrupt handling routine;
In interrupt handling routine, kernel starts the second dma controller work, sync mark position in second buffer area and EEG signals are uploaded in host computer by described second dma controller, and kernel is the address of the 3rd buffer area by the buffer area address maps that the next one to be used for buffer memory EEG signals by virtual address map device, and journey number of times is swept in stimulation add 1, then interrupt handling routine terminates;
C, judge that stimulation is swept journey number of times and whether is less than preset times, if so, then return to execution steps A; Otherwise, then terminate.
Be further used as preferred embodiment, be also provided with before described steps A and initialize this step, described initialization comprises:
It is 0 that journey number of times is swept in initialization stimulation;
Initialize the second buffer area and the 3rd buffer area, all write these two data of 0x700000 and 0xFFFFFF at the head of the second buffer area and the 3rd buffer area, and 0x700000 and 0xFFFFFF occurred continuously is defined as sync mark position.
Preferably, be also provided with this step of system start-up before this step of described initialization, this step of described system start-up, it specifically includes:
(1), system electrification, initializes system parameters, comprising: system process frequency, interrupt priority level, system delay parameter setting etc.;
(2), the self-inspection of start up system ancillary equipment, detect whether connect and be in normal operating conditions, ancillary equipment comprises SD card, sound stimulation device, medical grade AFE (analog front end) amplifier, button and LCD display and host computer;
(3) testing impedance between skin-electrode, system operating temperatures monitoring, is started;
(4), obtain the stimulation sound data of constant stimulus pattern from SD card or host computer, comprising: stimulation sound, stimulate number of times, stimulus intensity and tested auditory meatus etc.;
(5), initialize sound stimulation device and medical grade AFE (analog front end) amplifier, comprising: sample rate, programmable analog amplifier PGA and carry frequency filtering etc.
The inventive method one specific embodiment
As shown in Figure 4, a kind of implementation method of portable auditory evoked potential detection system, it specifically comprises:
S1, initializing stimulation, to sweep journey times N be 0;
S2, initialize the second buffer area and the 3rd buffer area, all write two continuous 24 bit data 0x700000 and 0xFFFFFF at the head of the second buffer area and the 3rd buffer area;
Because the analog-digital converter adopted in present system adopts 24 A/D analog-digital converters of reference voltage+1.024V, therefore, 0x700000 and 0xFFFFFF corresponds to+1.024V and-1.024V analog voltage signal respectively, and due to these two numerical value be that the probability of 0x700000, the 0xFFFFFF occurred continuously in the AEP signal acquisition process of uV level is almost nil in amplitude, therefore, 0x700000 and 0xFFFFFF occurred continuously in the second buffer area and the 3rd buffer area is defined as sync mark position;
S3, kernel starts the first dma controller work, the stimulation acoustical signal of stimulation duration single in the first buffer area is transferred to sound stimulation device by described first dma controller, thus carry out the broadcasting of stimulation sound, meanwhile, kernel sends enabled instruction to medical grade AFE (analog front end) amplifier, thus make AFE (analog front end) amplifier start to carry out the collection of EEG signals, and the EEG signals collected is transferred to the second buffer area by spi bus and carries out buffer memory by described medical grade AFE (analog front end) amplifier, the starting position that described EEG signals is deposited is after the 0xFFFFFF of the sync mark position of the second buffer area,
After the stimulation acoustical signal of single stimulation duration is all transferred to sound stimulation device by S4, the first dma controller, kernel triggers the first dma controller and interrupts, and then enters interrupt handling routine;
In interrupt handling routine, kernel starts the second dma controller work, sync mark position in second buffer area and EEG signals are uploaded in host computer by described second dma controller, and kernel is the address of the 3rd buffer area by the buffer area address maps that the next one to be used for buffer memory EEG signals by virtual address map device, and journey times N is swept in stimulation add 1, then interrupt handling routine terminates, and namely an AEP signal sampling period terminates;
S5, judge that stimulation is swept journey times N and whether is less than preset times, if so, then return to and perform step S3, start next AEP signal sampling period; Otherwise then jump out loop body, the operation of AEP signal sampling terminates.
More than that better enforcement of the present invention is illustrated, but the invention is not limited to described embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to spirit of the present invention, and these equivalent distortion or replacement are all included in the application's claim limited range.
Claims (10)
1. a portable auditory evoked potential detection system, it is characterized in that: comprise AFE (analog front end) amplifier, sound stimulation device and deposit for utilizing two dma controller to work in coordination with double memory area wheel the microprocessor that mechanism synchronously carries out the broadcasting of stimulation sound and eeg signal acquisition, described microprocessor is connected with AFE (analog front end) amplifier and sound stimulation device respectively.
2. a kind of portable auditory evoked potential detection system according to claim 1, it is characterized in that: described microprocessor comprises kernel, the first dma controller, the second dma controller, virtual address map device and static RAM, described kernel is connected with the first dma controller, virtual address map device and the second dma controller respectively, and described first dma controller, virtual address map device and the second dma controller are all connected with static RAM;
Described sound stimulation device is connected with the first dma controller, and described AFE (analog front end) amplifier is connected with kernel and static RAM respectively.
3. a kind of portable auditory evoked potential detection system according to claim 2, it is characterized in that: described static RAM comprises the second buffer area and the 3rd buffer area of the EEG signals stimulating the first buffer area of acoustical signal for buffer memory and transmitted by AFE (analog front end) amplifier for alternately buffer memory, described first buffer area is connected with the first dma controller, and described second buffer area is all connected with the second dma controller and virtual address map device with the 3rd buffer area.
4. a kind of portable auditory evoked potential detection system according to claim 3, is characterized in that: also comprise and stimulate acoustical signal for storing and acoustical signal will be stimulated to transfer to the SD card that the first buffer area carries out buffer memory.
5. a kind of portable auditory evoked potential detection system according to claim 3, it is characterized in that: also comprise host computer, described host computer is connected with kernel, the first buffer area and the second dma controller respectively.
6. a kind of portable auditory evoked potential detection system according to any one of claim 1-5, it is characterized in that: also comprise for EEG signals being carried out gathering and the EEG signals collected being transferred to the electrode of AFE (analog front end) amplifier, described electrode is connected with AFE (analog front end) amplifier.
7. a kind of portable auditory evoked potential detection system according to any one of claim 1-5, is characterized in that: also comprise the earphone for playing stimulation sound, described earphone is connected with sound stimulation device.
8. a kind of portable auditory evoked potential detection system according to claim 5, is characterized in that: described host computer comprises communication module, additional function modules, stimulus modelity module, signal detection module and data management module.
9. an implementation method for portable auditory evoked potential detection system, is characterized in that: the method comprises:
A, kernel start the first dma controller work, the stimulation acoustical signal of stimulation duration single in the first buffer area is transferred to sound stimulation device by described first dma controller, thus carry out the broadcasting of stimulation sound, simultaneously, kernel sends enabled instruction to AFE (analog front end) amplifier, thus make AFE (analog front end) amplifier carry out the collection of EEG signals, and the EEG signals collected is transferred to the second buffer area by described AFE (analog front end) amplifier carries out buffer memory, the starting position that described EEG signals is deposited is after the sync mark position of the second buffer area;
After the stimulation acoustical signal of single stimulation duration is all transferred to sound stimulation device by B, the first dma controller, kernel triggers the first dma controller and interrupts, and then enters interrupt handling routine;
In interrupt handling routine, kernel starts the second dma controller work, sync mark position in second buffer area and EEG signals are uploaded in host computer by described second dma controller, and kernel is the address of the 3rd buffer area by the buffer area address maps that the next one to be used for buffer memory EEG signals by virtual address map device, and journey number of times is swept in stimulation add 1, then interrupt handling routine terminates;
C, judge that stimulation is swept journey number of times and whether is less than preset times, if so, then return to execution steps A; Otherwise, then terminate.
10. the implementation method of a kind of portable auditory evoked potential detection system according to claim 9, is characterized in that: be also provided with before described steps A and initialize this step, described initialization comprises:
It is 0 that journey number of times is swept in initialization stimulation;
Initialize the second buffer area and the 3rd buffer area, all write these two data of 0x700000 and 0xFFFFFF at the head of the second buffer area and the 3rd buffer area, and 0x700000 and 0xFFFFFF occurred continuously is defined as sync mark position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510811544.0A CN105342609B (en) | 2015-11-19 | 2015-11-19 | A kind of portable auditory evoked potential detecting system and its implementation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510811544.0A CN105342609B (en) | 2015-11-19 | 2015-11-19 | A kind of portable auditory evoked potential detecting system and its implementation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105342609A true CN105342609A (en) | 2016-02-24 |
CN105342609B CN105342609B (en) | 2018-04-03 |
Family
ID=55318790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510811544.0A Expired - Fee Related CN105342609B (en) | 2015-11-19 | 2015-11-19 | A kind of portable auditory evoked potential detecting system and its implementation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105342609B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106983509A (en) * | 2017-04-24 | 2017-07-28 | 华南理工大学 | A kind of portable brain electric acquisition system with real-time mark function |
CN110833407A (en) * | 2019-09-17 | 2020-02-25 | 首都医科大学宣武医院 | MATLAB-based cortical-intercortical evoked potential data processing method |
CN112604161A (en) * | 2020-12-24 | 2021-04-06 | 上海交通大学医学院附属第九人民医院 | Artificial auditory midbrain stimulator |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060094935A1 (en) * | 2004-10-20 | 2006-05-04 | Coulbourn Instruments, L.L.C. | Portable psychophysiology system and method of use |
CN101500471A (en) * | 2005-08-02 | 2009-08-05 | 脑仪公司 | Method for assessing brain function and portable automatic brain function assessment apparatus |
US20110144520A1 (en) * | 2009-12-16 | 2011-06-16 | Elvir Causevic | Method and device for point-of-care neuro-assessment and treatment guidance |
CN102500058A (en) * | 2011-10-28 | 2012-06-20 | 广西师范大学 | Neurologic disease physiotherapeutic instrument based on brain waves and use method thereof |
CN103989471A (en) * | 2014-05-08 | 2014-08-20 | 东北大学 | Fatigue driving detection system and method based on EEG identification |
-
2015
- 2015-11-19 CN CN201510811544.0A patent/CN105342609B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060094935A1 (en) * | 2004-10-20 | 2006-05-04 | Coulbourn Instruments, L.L.C. | Portable psychophysiology system and method of use |
CN101500471A (en) * | 2005-08-02 | 2009-08-05 | 脑仪公司 | Method for assessing brain function and portable automatic brain function assessment apparatus |
US20110144520A1 (en) * | 2009-12-16 | 2011-06-16 | Elvir Causevic | Method and device for point-of-care neuro-assessment and treatment guidance |
CN102500058A (en) * | 2011-10-28 | 2012-06-20 | 广西师范大学 | Neurologic disease physiotherapeutic instrument based on brain waves and use method thereof |
CN103989471A (en) * | 2014-05-08 | 2014-08-20 | 东北大学 | Fatigue driving detection system and method based on EEG identification |
Non-Patent Citations (7)
Title |
---|
张洋等: "《原子教你玩STM32 库函数版》", 30 April 2013 * |
李大鹏: "基于STM32的16位多通道生理信号采集系统的设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
李成龙: "表面肌电信号在下肢康复训练中的应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
王乐凡: "基于STM32的三导联微弱脑电信号提取方法研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
蒋建春等: "《嵌入式系统原理及应用实例》", 31 August 2015 * |
赵瑞: "物联网中生物电信号采集终端的关键问题研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
韩云端: "新型植入式胃肠电刺激系统的研究", 《中国优秀硕士学位论文全文数据库 医药卫生科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106983509A (en) * | 2017-04-24 | 2017-07-28 | 华南理工大学 | A kind of portable brain electric acquisition system with real-time mark function |
CN110833407A (en) * | 2019-09-17 | 2020-02-25 | 首都医科大学宣武医院 | MATLAB-based cortical-intercortical evoked potential data processing method |
CN112604161A (en) * | 2020-12-24 | 2021-04-06 | 上海交通大学医学院附属第九人民医院 | Artificial auditory midbrain stimulator |
Also Published As
Publication number | Publication date |
---|---|
CN105342609B (en) | 2018-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150238109A1 (en) | Multi-function health monitor | |
CN102894973B (en) | ECoG (electrocorticogram) signal amplifier | |
CN104545885A (en) | Patch type dynamic electrocardiograph recorder | |
CN105030230B (en) | Electrocardial signal acquisition device, electrocardiogram processing system and processing method | |
CN109497988A (en) | Multi-modal electro-physiological signals monitor system for domestic sleeping monitoring field | |
CN205758549U (en) | A kind of Low Power Consumption Portable electrocardiogram monitor system | |
CN105395193A (en) | Miniature wearable electroencephalogram acquisition device | |
CN105342609A (en) | Portable auditory evoked potential detection system and realization method thereof | |
CN204428026U (en) | A kind of SMD dynamic electrocardiogram recording instrument | |
CN114795243A (en) | Portable brain machine device with multi-channel brain electricity collection and brain electricity stimulation functions | |
CN209107350U (en) | The detection of the biofeedback type disturbance of consciousness and wake-up system | |
Lili et al. | Portable ecg monitoring system design | |
CN202739988U (en) | Wireless pulse data monitoring system | |
CN202636935U (en) | Brainwave detector with voice prompt module | |
CN204889979U (en) | Electrocardio signal collector and electrocardiogram processing system | |
CN107589700B (en) | Electroencephalogram signal simulation generating device | |
CN103610448A (en) | Traditional Chinese medicine pulse condition topographic map instrument with wireless transmission | |
CN203122371U (en) | Cell-phone-based heart rate testing and electrocardiogram diagnosis apparatus | |
CN205411183U (en) | Portable parkinson tremble signal storage and processing apparatus | |
CN106073775A (en) | A kind of myoelectric signal collection apparatus and acquiring and processing method thereof | |
CN108968954A (en) | Wearable EEG signals and electromyography signal amplifier based on ADS1299 | |
CN204734479U (en) | Wearable sleep information acquisition device of wireless low -power consumption | |
CN209285498U (en) | Wearable EEG signals and electromyography signal amplifier based on ADS1299 | |
CN202128702U (en) | Biomechanical parameter testing analysis system for commonly used acupuncture manipulations of scalp acupuncture | |
Tsai et al. | A multi-lead ECG acquisition device base on Bluetooth microcontroller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180403 |
|
CF01 | Termination of patent right due to non-payment of annual fee |