Potentiostat acquisition system and device

Through the linkage of the timer, SPI controller and cache module, the problem of high CPU usage and low real-time performance during high-speed sampling of the potentiostat is solved, more efficient data collection and storage is achieved, high-priority interrupts are avoided, and the efficiency is improved Real-time performance of the collection system.

CN221669863UActive Publication Date: 2024-09-06TAN KAH KEE INNOVATION LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420032501.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-09-06
Estimated Expiration
2034-01-05

AI Technical Summary

Technical Problem

The existing potentiostat acquisition system occupies a large amount of CPU resources during high-speed sampling, resulting in low communication speed and low real-time performance, and is easily interrupted by high-priority events.

Method used

Using multi-module linkage of timers, SPI controllers, cache modules and ADC chips, ADC acquisition and data storage are realized through PWM signals and pulse signals, reducing processor occupancy, avoiding the impact of high-priority interrupts, and improving real-time acquisition.

Benefits of technology

It effectively reduces the processor occupancy time, avoids the impact of high-priority interrupts, and improves the real-time performance and collection rate of potentiostat collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221669863U
    Figure CN221669863U
Patent Text Reader

Abstract

The utility model relates to the technical field of data acquisition, in particular to a potentiostat acquisition system and a potentiostat acquisition device, and the potentiostat acquisition system comprises an SP I controller, a processor, a cache module, an ADC chip and a timer, the timer comprises a PWM generation module and a trigger reading module; the PWM generation module is electrically connected with the ADC chip and is used for generating a PWM signal and triggering the ADC chip to output an ST signal to obtain acquisition information; the trigger reading module is electrically connected with the ADC chip through the SP I controller and is used for generating a pulse signal and triggering the SP I controller to read acquisition information on the ADC chip; the SP I controller is further electrically connected with the processor through the cache module so as to be used for storing the collected information in the cache module, and the processor reads the collected information through the cache module. Through the arrangement, the occupation of acquisition work on the processor can be effectively reduced, and the real-time performance of acquisition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of data acquisition, in particular to a constant potential instrument acquisition system and device. Background Art

[0002] The potentiostat is an important instrument in electrochemical analysis and testing. It applies voltage to the electrolyte to measure the change in current and explore the characteristics of the electrolyte. The potentiostat needs to obtain the current through multiple ADC high-speed sampling. Due to the high sampling rate and fixed sampling interval, the real-time performance of the acquisition system is very high. At present, the existing acquisition system needs to occupy a large amount of CPU when collecting data, resulting in a low communication rate. And due to the low real-time performance, it is easy to be affected by higher priority events and be interrupted and preempted. Utility Model Content

[0003] In order to solve at least one shortcoming of the above-mentioned constant potential instrument in the prior art, the utility model provides a constant potential instrument acquisition system, including an SPI controller, a processor, a cache module, an ADC chip and a timer.

[0004] The timer includes a PWM generating module and a trigger reading module; the PWM generating module is electrically connected to the ADC chip to generate a PWM signal and trigger the ADC chip to output an ST signal to obtain acquisition information; the trigger reading module is electrically connected to the ADC chip through the SPI controller to generate a pulse signal and trigger the SPI controller to read the acquisition information on the ADC chip; the SPI controller is also electrically connected to the processor through the cache module to store the acquisition information in the cache module, and the processor reads the acquisition information through the cache module.

[0005] In one embodiment, the SPI controller, processor, cache module, and timer are mounted on a single-chip microcomputer, and the ADC chip has an SPI pin and an ST pin, the SPI pin is electrically connected to the SPI controller, and the ST pin is electrically connected to the timer.

[0006] In one embodiment, the single chip microcomputer is STM32, and the timer is a built-in timer of STM32.

[0007] In one embodiment, the timer also includes a setting module, which is used to set a fixed interval time value for periodically generating the ST signal and a comparison time value for periodically generating the pulse signal; the fixed interval time value is determined based on the acquisition cycle of the ADC chip, and the comparison time value is determined based on the interval time required between the acquisition cycle of the ADC chip and the reading cycle of the SPI controller.

[0008] In one embodiment, the processor comprises a CPU.

[0009] In one embodiment, the cache module includes a DMA, and the DMA is configured with a double buffer area.

[0010] In one embodiment, a communication module connected to the processor is further included, and the communication module includes a wireless communication module and / or a wired communication module.

[0011] In one embodiment, a reference electrode is further included, and the reference electrode is electrically connected to the ADC chip.

[0012] The utility model also provides a constant potential instrument device, which adopts the constant potential instrument acquisition system of any of the above embodiments.

[0013] Based on the above, compared with the prior art, the constant potentiostat acquisition system provided by the utility model adopts multi-module linkage of timer, cache module, processor, SPI controller, and ADC chip to realize ADC acquisition and data storage, which can not only reduce the occupancy of the processor by the acquisition work and avoid the influence of high-priority interrupts, but also effectively improve the real-time performance of the acquisition.

[0014] Other features and beneficial effects of the utility model will be described in the subsequent description, and partly become apparent from the description, or understood by practicing the utility model. The purpose and other beneficial effects of the utility model can be achieved and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The positional relationship of the drawings in the following description, unless otherwise specified, is based on the direction in which the components are drawn in the diagram.

[0016] Figure 1 A structural block diagram of a constant potential instrument acquisition system provided in one embodiment of the utility model;

[0017] Figure 2 A structural block diagram of a constant potential instrument acquisition system provided by another embodiment of the utility model;

[0018] Figure 3 FIG. 4 is a timing diagram of the ST signal and the clk signal in one embodiment. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the utility model clearer, the technical solutions in the embodiments of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, rather than all of the embodiments; the technical features designed in different implementation modes of the utility model described below can be combined with each other as long as they do not conflict with each other; based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the utility model.

[0020] In the description of the present invention, it should be noted that all terms (including technical terms and scientific terms) used in the present invention have the same meanings as those generally understood by ordinary technicians in the field to which the present invention belongs, and cannot be understood as limitations on the present invention; it should be further understood that the terms used in the present invention should be understood to have meanings consistent with the meanings of these terms in the context of this specification and in the relevant fields, and should not be understood in an idealized or overly formal sense, unless explicitly defined in this utility model.

[0021] See also Figure 1 The utility model provides a constant potential instrument acquisition system, which at least includes an SPI controller, a processor, a cache module, an ADC chip and a timer.

[0022] The potentiostat acquisition system also includes a reference electrode, a working electrode and a counter electrode for being placed in the electrolytic cell. The potentiostat controls the constant potential output by feeding back the current of the reference electrode. Among them, the ADC chip is used in the potentiostat to connect with the reference electrode to collect the collection information fed back by the reference electrode. It should be noted that those skilled in the art can also replace the ADC chip with other conventional sampling circuits, such as ADC differential sampling circuits, etc.

[0023] The timer includes a PWM generation module and a trigger reading module. That is, the timer should be selected with a model equipped with a PWM generation function and a trigger reading function. The specific model can be reasonably selected according to actual needs and is not limited here. Among them, the PWM generation module is electrically connected to the ADC chip to generate a PWM signal and trigger the ADC chip to output an ST signal to obtain the acquisition information; the trigger reading module is electrically connected to the ADC chip through the SPI controller to generate a pulse signal and trigger the SPI controller to read the acquisition information on the ADC chip. In addition, the PWM generation module can be a PWM trigger, which is specifically composed of conventional components to generate a PWM signal; the trigger reading module can be a trigger comparator, which can also be composed of conventional components to output a pulse signal. This embodiment can achieve the synchronization effect of triggering ADC acquisition and triggering SPI reading by using a timer.

[0024] Wherein, the timer also includes a setting module, which is used to set a fixed interval time value for periodically generating ST signals and a comparison time value for periodically generating pulse signals; the fixed interval time value is determined based on the acquisition period of the ADC chip, and the comparison time value is determined based on the interval time required between the acquisition period of the ADC chip and the reading period of the SPI controller. The specific setting parameters can be reasonably selected according to actual needs and are not limited here. In this embodiment, the acquisition period of the ADC chip can be controlled by adjusting the fixed interval time value, and the interval between the start of the ADC chip acquisition and the reading of the SPI controller can be controlled by adjusting the comparison time value.

[0025] Specifically, the PWM generation module of the timer periodically generates a PWM signal to the ADC chip according to a fixed interval time value to trigger the ADC chip to periodically collect information, and the collected information is the actual collected signal or data, such as the constant potential instrument collecting current signals through the reference electrode. The trigger reading module of the timer periodically outputs a pulse signal to the SPI controller according to the comparison time value to trigger the SPI controller to read the collected information from the ADC chip. For example Figure 3 As shown, the ST signal and the clk signal (i.e., the SPI controller read signal) in the constant potential instrument acquisition system provided in this embodiment are captured by a logic analyzer. When the ST signal is at a rising edge, it indicates that the ADC chip acquisition action starts. When the ST signal is at a falling edge, the clk signal triggers the action. The clk signal is within the falling edge time of the ST signal to ensure the orderliness of the acquisition.

[0026] like Figure 1As shown, the SPI controller is also electrically connected to the processor through a cache module, so as to store the read acquisition information in the cache module, and the processor reads the acquisition information through the cache module. Preferably, the cache module includes a DMA, and the DMA is configured with a double cache area to facilitate alternating switching of the cache. The processor includes a CPU. Among them, the cache module can also use other components with a data cache function, and the processor can use other components that can meet the requirements of the constant potential instrument to process relevant data, which are not limited here.

[0027] In specific implementation, each time the SPI controller receives a collection of information, it will generate a request to the cache module, and the cache module will move the received collection information to the cache area in sequence. For example, it can be set to switch to cache in sequence every time 80 collection information is moved, that is, the 1st to 80th collection information is stored in one cache area, and the 81st to 160th collection information is stored in another cache area. At this time, the time interval for the processor to upload the collection information to the host computer can be set to 1.25*80=100us. This setting allows the processor to have sufficient time to process the collection information and transmit it to the host computer, and further improve the collection rate.

[0028] Compared with the traditional potentiostat in which the CPU and timer are directly connected to the ADC chip, the potentiostat acquisition system provided by the utility model can effectively reduce the processor occupancy of the acquisition work and will not be interrupted by the high priority of the processor, thereby more effectively improving the real-time performance of the potentiostat acquisition.

[0029] In a preferred embodiment, see Figure 2 , the SPI controller, processor, cache module, and timer are mounted on the single-chip microcomputer. The ADC chip has an SPI pin and an ST pin. The SPI pin is electrically connected to the SPI controller, and the ST pin is electrically connected to the timer. The single-chip microcomputer adopts STM32, and the timer is a built-in timer of STM32.

[0030] For other embodiments, please refer to Figure 2 The constant potential instrument acquisition system also includes a communication module connected to the processor, and the communication module includes a wireless communication module and / or a wired communication module. The wired communication module can use but is not limited to USB serial port communication, and the wireless communication module can use but is not limited to WIFI, Bluetooth communication, etc. The constant potential instrument acquisition system is connected to the host computer through the communication module to facilitate the transmission of relevant data.

[0031] The utility model also provides a constant potential instrument device, which adopts the constant potential instrument acquisition system of any of the above embodiments to effectively improve the performance of the constant potential instrument device.

[0032] In summary, compared with the prior art, the constant potentiostat acquisition system and device provided by the utility model realizes ADC acquisition and data storage through the linkage of independent peripheral components such as timers, SPI controllers, and cache modules. It can not only reduce the processing time occupied by the processor, but also avoid the interruption of the acquisition work due to the high priority of the processor, improve the real-time performance of the acquisition, and has good application prospects.

[0033] In addition, those skilled in the art should understand that, although there are many problems in the prior art, each embodiment or technical solution of the utility model can be improved in only one or several aspects, without having to solve all the technical problems listed in the prior art or background technology at the same time. Those skilled in the art should understand that the content not mentioned in a claim should not be used as a limitation on the claim.

[0034] Although the terminology such as SPI controller, processor, cache module, ADC chip, timer, etc. is used more frequently in this article, the possibility of using other terms is not excluded. The use of these terms is only for the purpose of more conveniently describing and explaining the essence of the utility model; interpreting them as any additional restrictions is contrary to the spirit of the utility model; the terms "first", "second", etc. (if any) in the specification and claims of the embodiment of the utility model and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0035] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model, rather than to limit it. Although the utility model has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the utility model.

Claims

1. A constant potential instrument acquisition system, characterized in that: include: SPI controller, processor, cache module, ADC chip and timer; The timer includes a PWM generation module and a trigger reading module; The PWM generation module is electrically connected to the ADC chip to generate a PWM signal and trigger the ADC chip to output an ST signal to obtain acquisition information; the trigger reading module is electrically connected to the ADC chip through the SPI controller to generate a pulse signal and trigger the SPI controller to read the acquisition information on the ADC chip; The SPI controller is also electrically connected to the processor through the cache module, so as to store the collected information in the cache module, and the processor reads the collected information through the cache module.

2. The potentiostat acquisition system according to claim 1, characterized in that: The SPI controller, processor, cache module and timer are mounted on a single chip microcomputer. The ADC chip has an SPI pin and an ST pin. The SPI pin is electrically connected to the SPI controller, and the ST pin is electrically connected to the timer.

3. The potentiostat acquisition system according to claim 2, characterized in that: The single chip microcomputer is STM32, and the timer is a STM32 built-in timer.

4. The potentiostat acquisition system according to claim 1, characterized in that: The timer also includes a setting module, which is used to set a fixed interval time value for periodically generating the ST signal and a comparison time value for periodically generating the pulse signal; the fixed interval time value is determined based on the acquisition cycle of the ADC chip, and the comparison time value is determined based on the interval time required between the acquisition cycle of the ADC chip and the reading cycle of the SPI controller.

5. The potentiostat acquisition system according to claim 1, characterized in that: The processor includes a CPU.

6. The potentiostat acquisition system according to claim 1, characterized in that: The cache module includes a DMA, and the DMA is configured with a double cache area.

7. The potentiostat acquisition system according to claim 1, characterized in that: It also includes a communication module connected to the processor, and the communication module includes a wireless communication module and / or a wired communication module.

8. The potentiostat acquisition system according to claim 1, characterized in that: It also includes a reference electrode, which is electrically connected to the ADC chip.

9. A potentiostat device, characterized in that: A constant potential instrument acquisition system as described in any one of claims 1 to 8 is used.