I / O units for data acquisition in fieldbus systems
By using the integrated synchronous serial interface and memory to directly access the control unit in the input/output unit of the fieldbus system, efficient data acquisition and transmission are achieved, solving the problems of high CPU resource usage and mismatch between sampling frequency and transmission frequency. , reducing costs and increasing execution speed.
Patent Information
- Application Number
- CN202080069265.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-10-02
- Filing Date
- 2020-09-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-09-29
AI Technical Summary
The input/output units in existing fieldbus systems have problems such as high CPU resource usage and mismatch between sampling frequency and transmission frequency during the data collection and transmission process, resulting in reduced program execution speed and high cost.
Design an input/output unit for fieldbus systems, using a standard microcontroller equipped with at least one integrated synchronous serial interface and a memory direct access control unit, reading data through the synchronous serial interface and packaging it in a scratchpad , using the second synchronous serial interface or bus interface whose second clock frequency is higher than the acquisition clock frequency for data output, reducing the execution of CPU-intensive routines and releasing CPU resources.
It simplifies the data collection and packaging process, reduces CPU load, improves data transmission efficiency, reduces the cost of input/output units, and enables efficient data collection and transmission without affecting CPU performance.
Smart Images

Figure CN114556316B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an input / output unit for data acquisition in a field bus system and also relates to a method for acquiring a digital signal curve through a microcontroller. Background Art
[0002] Such input / output units are used in various ways in the field of fieldbuses. Fieldbus systems are used in automation technology, process and technology technology and in general for controlling machines and plants, such as robots. Fieldbus systems are used there for the acquisition of measured values from sensors and for the output of switching signals for controlling the plant. For a long time, fieldbus systems have been used in particular to replace the previously common parallel wiring of binary signals and analog signal transmission in sensors with digital transmission technology.
[0003] Input / output units in the fieldbus sector are usually equipped with standard microcontrollers, which have so-called "general purpose input / output terminals (GPIO-Ports)". A typical I / O application is, for example, that the state of a digital input terminal must be sampled in very short time intervals in order to read in digital data. It is not always possible to transmit these data to the controller of the fieldbus system via the fieldbus at the required sampling frequency time interval. For this situation, it is necessary to combine "oversampling" technology with data packaging. In this case, the signal is sampled in the required short time interval, the sampled values are temporarily stored in a memory and transmitted cyclically at a higher transmission rate in a packaged manner and at a larger time interval (depending on the superior fieldbus system and its access conditions). For this purpose, the state of the GPIO-Ports of the CPU of the microcontroller is usually sampled "conventionally". Each time the sampling time point arrives, the state of the standard GPIO-Ports is collected and temporarily stored in registers one by one (bit by bit). In this process, it is necessary to call in "cumbersome" bit shift routines to collect the various states so that these states can be sent in packages. The sampling time points are usually preset by generating corresponding clock signals with the help of timer modules. Likewise, timers are programmed for certain bit or word shift operations, which generate timer interrupts after a predetermined time, through which the interrupt service routine (ISR) executed by the CPU is called.
[0004] It is known from document DE 10 2014 209 625 A1 to use an SPI interface in a microcontroller which is also equipped with a direct memory access controller (DMA controller). Via the SPI interface, a DMA controller is used to transfer data back and forth between the microcontroller and the external memory.
[0005] Document US2009 024 776A1 discloses a microcontroller which is also equipped with an SPI interface and a DMA controller. The DMA controller transmits data received from the SPI interface to a CPU core.
[0006] John Mangino's January 2007 review of SPI and DMA controllers, "Using DMA with High-Performance Peripherals to Maximize System Performance" (WW TMS470 Catalog Applications, SPNA 105), also revealed that a DMA controller is used to relieve CPU pressure when transferring data over the SPI interface. The external DMA controller writes the data received by the SPI to the memory.
[0007] However, the known solution has the following disadvantages: The data are transferred from the I / O unit to the working memory using processor registers for temporary storage. First, the processor reads the data into its internal registers in order to subsequently transfer them to the working memory in a further step. For this purpose, routines are executed which are triggered by a timer module and which require several clock cycles, during which the processor is not used to execute other instructions, so that the execution speed of the running program is reduced. In the known solution for transferring data from the SPI interface to the memory by direct memory access, the output of the data via the field bus is not considered.
[0008] Therefore, there is a need for an improved input / output unit for a fieldbus system which avoids the above-mentioned disadvantages. This can be achieved within the scope of the present invention. Summary of the invention
[0009] The solution for achieving the object of the present invention is an input / output unit for data acquisition in a field bus system, a method for acquiring a digital signal curve by a microcontroller, and a microcontroller.
[0010] The solution of the present invention is an input / output unit for data acquisition in a field bus system, the input / output unit having a standard microcontroller, the standard microcontroller having at least one integrated synchronous serial interface and a control unit for direct memory access. The solution is characterized in that the data input end of the at least one synchronous serial interface can be connected to a signal source of a digital signal, and the synchronous serial interface reads the data on the data input end at a first clock frequency. Preferably, the clock frequency of the read-in data is equivalent to the data transmission rate of the synchronous serial interface. This can greatly simplify the process of collecting and configuring each state (bit by bit) into a data packet, because there is no need to implement a bit shift routine and the timer interrupt required for this. In addition, the solution is that the control unit for direct memory access transfers the read-in data word to a temporary register, and extracts it from the temporary register from time to time and transfers it to a second synchronous serial interface or another field bus interface, wherein the second synchronous serial interface or the other bus interface is connected to the field bus interface, and outputs the read-in data word at a second clock frequency when the data is output, and the second clock frequency is higher than the first clock frequency when data is collected through the first synchronous serial bus interface. The advantage of this solution is that it is not necessary to call in CPU-intensive routines to acquire the data on the digital inputs and package the data for transmission via the fieldbus. The CPU is freed up from the data acquisition and transmission process and can perform other tasks. It is also possible to use a microcontroller with lower CPU performance, thus reducing the cost of the input / output unit.
[0011] Another advantageous measure is to extract the data words from the temporary memory in a packed manner. The DMA controller can be programmed accordingly so that the CPU also does not need to execute any routines for this.
[0012] The invention can be implemented particularly advantageously with a microcontroller having at least two synchronous serial interfaces of the type of SPI interface (Serial Peripheral Interface). This interface is widely used and is usually used in microcontrollers.
[0013] In a preferred embodiment, the input / output unit is designed such that the data input is connected to the MISO input of the first SPI interface (i.e., master input, slave output), and the outputs SCLK, MOSI, and CS of the first SPI interface (i.e., serial clock, master output, slave input, and chip select) are not connected or grounded. Thus, the first SPI interface operates as a master in a non-traditional manner, but the interface is not connected to other chips that also include an SPI interface.
[0014] It is also very advantageous to program the input / output unit in such a way that the second clock frequency is higher than the first clock frequency at least by a factor so that the second clock frequency corresponds to a multiple of the clock frequency of the first clock frequency, wherein the multiple is determined by the word length of the data words. This measure ensures that the acquired data can be transmitted in a packetized manner via the field bus.
[0015] In an extended embodiment, as an alternative to grounding or not being connected, the chip select signal is connected to one or more other SPI interfaces, so that one or more other SPI interfaces are selected from the plurality of SPI interfaces, and the data on the data input terminal (MISO) is read in at the first clock frequency and transmitted to the temporary register. In this way, multiple digital input terminals can be collected in the same way and output via the field bus.
[0016] In an advantageous embodiment, the data packets generated by the input / output station have a transmission format comprising a header, a transmission part data field and a user data field, wherein the header contains address information, the transmission part data field contains a sequence number and / or a time stamp, and the user data field contains a plurality of data words compiled into a data packet. This makes it possible to easily retrieve the time sequence of the data packets acquired by the digital signal in the superordinate control. The data packets are individually numbered. The packet numbers are assigned in the form of a sequence number and are thus increased with each new data packet transmitted to the fieldbus interface.
[0017] Another advantageous embodiment relates to an input / output unit, wherein the other bus interface is a UART-type, USART-type, I2C-type bus interface or a USB interface. These interfaces are already integrated in some standard microcontrollers.
[0018] Another technical solution of the present invention relates to a method for collecting digital signal curves by a microcontroller, wherein the standard microcontroller has at least one integrated synchronous serial bus interface with full-duplex function. In the method, the microcontroller reads the digital signal on the digital data input end of the integrated synchronous serial bus interface at a clock frequency, and the clock frequency is equivalent to the data transmission rate of the synchronous serial bus interface. The special feature is that the data output end of the synchronous serial bus interface, which is usually connected to the signal source connected to the data input end to achieve full-duplex operation, is not connected to the data source to establish a full-duplex connection. In this way, digital signals can be collected in a way that saves CPU resources.
[0019] The integrated synchronous serial bus interface preferably operates in a host operation mode, in which the bus interface automatically presets a clock for reading in digital signals. If the clock frequency is high enough, digital signals with corresponding good resolution can be collected.
[0020] Another embodiment of the invention relates to a microcontroller having at least one integrated synchronous serial bus interface with full-duplex functionality, wherein the microcontroller is adapted to implement the method of the invention, on the one hand by corresponding wiring of the inputs and outputs of the corresponding integrated synchronous serial interface, and on the other hand by adapting the microcontroller by software, when using the software, the data output of the integrated synchronous serial interface is not operated. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Several exemplary embodiments of the invention are shown in the drawings and are described in detail below in conjunction with the drawings.
[0022] in:
[0023] Figure 1 A fieldbus system having two components, an I / O unit and a controller;
[0024] Figure 2 A block diagram of a standard microcontroller that can be used in an electronic component of a fieldbus system;
[0025] Figure 3 is a first block diagram including an I / O unit, wherein a standard microcontroller is used in a first manner of the present invention;
[0026] Figure 4 is a signal diagram used to illustrate the "oversampling" technique when reading in a digital signal; and
[0027] Figure 5 for a data transmission process when outputting the read-in digital signal from the second bus interface to the field bus interface, and
[0028] Figure 6 is a second block diagram including an I / O unit, wherein a standard microcontroller is used in a second manner of the present invention. DETAILED DESCRIPTION
[0029] This specification describes the principles of the disclosure of the present invention. It is understood that those skilled in the art can design different arrangements, which are not explicitly described herein but embody the principles of the disclosure of the present invention and should also be protected in their scope.
[0030] Figure 1A simple fieldbus system with only two components is shown. Reference symbol 10 denotes an input / output unit (I / O unit). Reference symbols 20 and 30 denote a controller and the fieldbus itself. I / O units are used in various ways and are used to collect measured values. Sensor signals are usually collected. Reference symbol 17 denotes a sensor. Different types of sensors can be used, which are applied in the field of automation, process and technology or other machine controllers. Sensors include speed sensors, temperature sensors, light sensors, infrared sensors, touch sensors, microphones, cameras, etc., which are not exhaustive. The principle of a fieldbus system is that measured value collection is implemented in different sensors of a machine or device in the workshop through an I / O unit, but the control of the machine or device is implemented in a centrally arranged control unit 20, such as a PLC controller. The I / O data is transmitted to the control unit 20 via a fieldbus 30. Different known fieldbus solutions are considered as fieldbuses. Fieldbus systems are, for example, contact buses, process fieldbuses, industrial Ethernet, Ethernet, EtherCAT, CAN buses, HART, etc.
[0031] In addition to I / O units for acquiring sensor signals, you can also use I / O units to which control signals are sent that then switch on specific actuators, such as actuators, pumps, valves, motors, etc.
[0032] In the application of I / O units, signals, such as the state of digital or analog input signals, must be sampled at very short time intervals. For this purpose, standard microcontrollers are usually used in I / O units, which have so-called general purpose input / output terminals (GPIO). In this way, digital or analog signals can be collected / output periodically. Due to the increased traffic on the connected field bus 30, which also transmits other various data, and the corresponding bus allocation conflicts, it is not always possible to transmit the read-in data to the controller in the same way at the required time interval corresponding to the desired sampling frequency when reading in the data. For this situation, the so-called "oversampling" technology is applied, but this technology should not be confused with the technology of the same name in A / D conversion or D / A conversion. In this case, the signal is sampled in the required short time interval as required by the controller. These data are temporarily stored and transmitted cyclically in blocks at a higher transmission rate at larger time intervals (depending on the superior field bus system). In other words, the data always arrive at the controller block by block. If the rapidly transmitted data is put back into the required time grid, then these data are re-existing in the controller just as they were read into the I / O unit.
[0033] Figure 2The block diagram of such a standard microcontroller is shown. It is a microcontroller of the type L8051XC1 from Intel Corporation. The microcontroller is denoted by reference symbol 100. The microcontroller comprises the following components: CPU 110, timer module 112, real-time clock 114, monitoring circuit 116, interrupt controller 118, coprocessor 120, serial interface 122, general I / O unit 124, SPI interface 126, PC interface 128, debugging unit 130 and power supply unit 132. The technical principle for reading in digital data is as follows.
[0034] For this purpose, the state of a digital input terminal, such as a GPIO input terminal, is usually sampled "conventionally". Each time a sampling time point arrives, the state of the standard GPIO input terminal 124 is sampled and temporarily stored in a buffer memory bit by bit. Figure 2 In the embodiment, the temporary register is allocated in the externally connected storage module 140. Alternatively, an internal temporary register can also be set. However, in both cases, the CPU 110 needs to call in a "cumbersome" bit shift routine to store the individual bit states, so that these states are sent in the form of blocks. Usually, the sampling time point of the desired GPIO input terminal 124 is preset in some way by the timer module 112 of the microcontroller 100, so that after a predetermined time, the timer interrupt calls in the corresponding routine. This also applies when reading data from the temporary register. The CPU 110 must compile the data into a data packet and then transmit it to the fieldbus interface 150 via the external bus 134. Here, it is also necessary to call in the corresponding routine to read the data from the storage module 140 and configure it into a data packet. However, this will cause the CPU 110 to be overloaded.
[0035] Figure 3 A first embodiment of the solution of the invention is shown, in which it is shown how to implement I / O operations saving CPU resources with a standard microcontroller. Figure 3Another standard microcontroller 11 is shown. This microcontroller can be, for example, the following commercially available Codex Mx type, where x is a natural number [0, 1, 2, ...]. For example, a commercially available microcontroller of the type STM32T103xC, STM32T103xD or STM32T103xE of the manufacturer STMicroelectronics. The microcontroller is equipped with an internal memory, and the temporary register 18 can also be allocated there. The first SPI interface is represented by the reference symbol 12, and the second SPI interface is represented by the reference symbol 14. I / O operations that save CPU resources can be realized by using the SPI interfaces 12 and 14 for I / O processes. The SPI interfaces 12 and 14 are equivalent to the peripheral modules of the SPI bus that are now standardized, which exist partially in dual or triple locations in most microcontrollers. However, these peripheral modules are used in a manner different from the preset. No credible data is generated in its originally preset working mode. However, the required oversampling can be realized in a simple manner with the help of the concept described here. Its premise is that the standard microcontroller has at least one SPI interface. In the example shown, the standard microcontroller has two SPI interfaces 12 , 14 .
[0036] The SPI interface (Serial Peripheral Interface) is standardized. It refers to a synchronous serial data bus, which can be used to connect digital circuits together according to the master-slave principle. For further details of the SPI interface, see US Pat. No. 4,816,996, to which reference is made for the detailed disclosure.
[0037] There are three common wires connecting each node:
[0038] 1.SCLK (serial clock), this clock is output from the host for synchronization.
[0039] 2.MOSI (Master Out, Slave In), which is the output terminal when operating as a master and the input terminal when operating as a slave.
[0040] 3. MISO (Master Input, Slave Output), which is the input terminal when operating as a master and the output terminal when operating as a slave.
[0041] A fourth common conductor may also be provided, a so-called chip select signal.
[0042] 4.CS (chip select).
[0043] In a multi-slave system, SPI can select a slave through the CS signal. The original digital input "oversampling" does not require a chip select signal.
[0044] However, this signal can also be used to "trigger" specific processes in the SPI slave, so that data are already available at the start of data transmission, that is, at the point in time when the serial clock signal starts to synchronize.
[0045] Alternatively, this signal can also be used in such a way that in an I / O unit having a plurality of digital inputs, a digital input is selected, for example, "from eight" by a chip select signal, at which "oversampling" is to be performed. Alternatively, the digital inputs can also be selected "from eight" or "from eight" depending on the specific "performance" of the microcontroller, and the "oversampling" technique can be applied to these inputs.
[0046] The first SPI interface 12 is used to read in data. This SPI interface 12 operates in SPI master mode. The signals on the input / output terminals SCLK and MOSI (master output, slave input) "go to the void". In the case shown, the signal is simply grounded. Only the input / output terminal MISO (master input, slave output) is connected to the signal source 17 (a sensor that sends a digital signal). Therefore, this input / output terminal is used as a "digital input terminal". The data currently read in from the SPI interface 12 working in SPI master mode is the state of the digital signal source 17 after level matching is implemented with the corresponding level matching circuit 13. The data is sampled and read in at a sampling rate equivalent to the data transmission rate of the SPI master 12. Different SCLK frequencies can be designed. The frequency range that can be set in a traditional SPI interface is between several kHz and several MHz. These data are transmitted to the field bus interface 15 via the second SPI interface 14. For this purpose, the module for the field bus interface 15 also includes the SPI interface 14.
[0047] Now also with the help of Figure 4 The "oversampling" technique is explained in more detail. The digital signal shown in the upper row is emitted from a signal source 17. A typical example of such a signal source is a sensor that generates a digital output signal. It can be a light barrier, for example. This digital signal should be acquired. The acquisition is carried out using the SPI interface 12. This interface operates in master mode and sets a clock frequency that is sufficient to implement oversampling of the digital signal. The SCLK clock signal used for sampling is at Figure 4 In the middle row. The sampled values are given in the row below. Every 8 sampled values are combined into one data word. These data words are given in hexadecimal in the bottom row. In the conventional approach, one sampling process is sufficient to read in the corresponding digital state. In "oversampling", each digital state is read in multiple times.
[0048] This makes it possible to greatly simplify the process of collecting and configuring the individual bit states read in (bit by bit) into a data word, since there is no need to implement a bit shift routine that causes a high CPU load and the timer interrupts required for this. The data words are extracted from the SPI interface 12 using the on-chip DMA module 16 of the microcontroller 11. This module can write the data to the temporary register 18 without the involvement of the CPU (not shown).
[0049] The data is output to the fieldbus interface 15 connected to the interface via the second SPI interface 14. To this end, the DMA module 16 is programmed so that it immediately extracts data from the temporary memory 18 with the correct data packet size and outputs it to the second SPI interface 14. Among them, the second SPI interface 14 is programmed so that it transmits the extracted data packets to the fieldbus interface 15 in a timely and orderly manner at a faster data rate, that is, a higher SCLK clock frequency. This greatly reduces the pressure on the CPU and can provide computing power for other tasks because the SPI modules 12, 14 and the DMA controller 16 work in the background. Advantageously, in addition to the read-in data words, management data related to the fieldbus are also transmitted together. In order to simply control the time sequence of the digital signal data packets in the superior controller 20, a timestamp or packet number can be added. The packet number is assigned in the form of a serial number and increases with each new data packet transmitted to the fieldbus interface 15. The timestamp can also have been entered. Alternatively, the timestamp can also be updated by the fieldbus interface 15 when the data packet is output to the fieldbus. Figure 5 The structure of a data packet DP is shown. The first part of the data packet format, the header HD, contains management data, such as the destination address and the sender address. The middle part, the transmission part data field TF, contains the timestamp and the packet number. This is followed by the actual user data field PL and the data words. For example, 8 data words can be contained in the user data field PL. The time intervals between the data packets are also shown.
[0050] Figure 6 A second embodiment of the invention is shown in which a standard microcontroller is used to implement I / O operations that save CPU resources. Figure 3 The same components. The difference is that in the microcontroller 11, the second SPI interface is not used, but another serial or parallel bus interface is used to output the read data words to the field bus interface 15. As shown in the figure, a serial interface in the form of a UART interface is used. Accordingly, a UART module 19 is used in the module 15 for the field bus interface, which is connected to the UART module 19, for example, via TX and RX lines.
[0051] In other embodiments, other serial or parallel interfaces may be used, such as a USART interface, an RS232 interface, an l2C interface, a USB interface, or a Firewire interface.
[0052] It should be understood that the proposed method and corresponding device can be implemented in different forms of hardware, software, firmware, special processors or combinations thereof. In a preferred embodiment, a microcontroller with integrated RAM memory and integrated I / O interface is used. The processor may include an application specific integrated circuit (ASICs), a reduced instruction set computer (RISC) and / or a field programmable gate array (FPGAs). The proposed method and device are preferably implemented as a combination of hardware and software. The software is preferably installed on a program storage device as an application. It generally refers to a machine based on a computer platform, with hardware, such as one or more central processing units (CPUs), a random access memory (RAM) and one or more input / output (I / O) interfaces. An operating system is also generally installed on the computer platform. The different processes and functions described herein can be part of an application, or a part executed by an operating system.
[0053] The disclosure is not limited to the embodiments described herein. There is room for various modifications and variations that a person skilled in the art would consider to also belong to the disclosure based on his / her professional knowledge.
[0054] Description of Reference Numerals
[0055] Input / output unit 10
[0056] Standard microcontroller 11
[0057] First SPI interface 12
[0058] Level matching circuit 13
[0059] Second SPI interface 14
[0060] Fieldbus interface 15
[0061] DMA controller 16
[0062] Data input terminal 17
[0063] Register 18
[0064] UART interface 19
[0065] Control unit 20
[0066] Fieldbus 30
[0067] Standard microcontroller 100
[0068] CPU 110
[0069] Timer module 112
[0070] Real time clock module 114
[0071] Monitoring circuit 116
[0072] Interrupt controller 118
[0073] Coprocessor 120
[0074] Serial interface 122
[0075] GPIO-Ports 124
[0076] SPI interface 126
[0077] PC interface 128
[0078] Debug unit 130
[0079] Power supply unit 132
[0080] System bus 134
[0081] External memory 140
[0082] Fieldbus interface 150
[0083] The first data pin MISO
[0084] Clock signal pin SCLK
[0085] The second data pin MOSI
[0086] Select pin CS
[0087] Data Packet DP
[0088] Head HD
[0089] Transmit partial data field TF
[0090] User data area PL
Claims
1. An input / output unit (10) for data acquisition in a field bus system, the input / output unit having a microcontroller, the microcontroller having at least one integrated synchronous serial bus interface and a control unit (16) for direct memory access, It is characterized in that The digital data input end of the first synchronous serial bus interface (12) of the at least one integrated synchronous serial bus interface is configured to connect a signal source (17) of a digital signal, the first synchronous serial bus interface (12) is configured to read in the digital signal on the digital data input end at a first clock frequency, the first clock frequency being equivalent to the data transmission rate of the first synchronous serial bus interface (12), the control unit (16) for direct memory access is configured to transfer the read-in digital signal as a data word to a temporary register (18), and to extract it from the temporary register (18) from time to time and transfer it to a second synchronous serial bus interface (14) or other bus interface (19) of the at least one integrated synchronous serial bus interface, wherein the second synchronous serial bus interface (14) or the other bus interface (19) can be connected to a field bus interface (15) and is configured to output the data word to the field bus interface (15) at a second clock frequency, the second clock frequency being higher than the first clock frequency when data is collected through the first synchronous serial bus interface (12).
2. The input / output unit (10) as claimed in claim 1, wherein the data words are retrieved from the temporary memory (18) in a packed manner.
3. The input / output unit (10) according to claim 1 or 2, wherein at least one of the first synchronous serial bus interface (12), the second synchronous serial bus interface (14) and other bus interfaces (19) of the integrated synchronous serial bus interface is a SPI interface, i.e., a serial peripheral interface.
4. The input / output unit (10) according to claim 3, wherein the first synchronous serial bus interface (12) is a first SPI interface, the signal source (17) is connected to a digital data input terminal of the first SPI interface, the digital data input terminal is a MISO input terminal, i.e., a host input and a slave output, and the output terminals SCLK, MOSI and CS of the first SPI interface, i.e., a serial clock, a host output, a slave input and a chip select, are not connected or are grounded.
5. An input / output unit (10) according to claim 2, wherein the second clock frequency is higher than the first clock frequency by at least a certain factor, so that the second clock frequency corresponds to a multiple of the clock frequency of the first clock frequency, wherein the multiple is determined by the word length of the data word.
6. The input / output unit (10) according to claim 3, wherein the first synchronous serial bus interface (12) is a first SPI interface, the signal source (17) is connected to a digital data input terminal of the first SPI interface, the digital data input terminal is a MISO input terminal, i.e., a host input slave output, and the output terminals SCLK and MOSI of the first SPI interface, i.e., a serial clock and a host output slave input, are not connected or are grounded, and the output terminal CS of the first SPI interface, i.e., a chip select, outputs a chip select signal for selecting one or more other input / output terminals from a plurality of input / output terminals of the first SPI interface, and the data on the digital data input terminal is read into the other input / output terminals at the first clock frequency and transmitted to the register (18).
7. An input / output unit (10) according to claim 1, wherein the data packet has a transmission format, including a header (HD), a transmission part data field (TF) and a user data field (PL), wherein the header (HD) contains address information, the transmission part data field (TF) contains a sequence number and / or a timestamp, and the user data field (PL) contains a plurality of data words compiled into the data packet.
8. The input / output unit (10) according to claim 1, wherein the other bus interface (19) is a UART type, USART type, I2C type bus interface or a USB interface.
9. A method for collecting a digital signal curve by means of a microcontroller (11), the microcontroller having at least one integrated synchronous serial bus interface with full-duplex function, It is characterized in that The microcontroller (11) reads a digital signal at a digital data input terminal through a first synchronous serial bus interface (12) of the at least one integrated synchronous serial bus interface at a first clock frequency, wherein the first clock frequency corresponds to a data transmission rate of the first synchronous serial bus interface (12), and does not connect a data output terminal of the first synchronous serial bus interface (12) to a signal source (17) connected to the digital data input terminal to establish a full-duplex connection, and The digital signal is output to the field bus interface (15) at a second clock frequency through a second synchronous serial bus interface (14) or other bus interface (19) of the at least one integrated synchronous serial bus interface, wherein the second clock frequency is higher than the first clock frequency. 10 . The method according to claim 9 , wherein the integrated synchronous serial bus interface operates in a host operation mode, and in the host operation mode, the bus interface automatically presets the clock for reading in the digital signal.
11. A microcontroller having at least one integrated synchronous serial bus interface, It is characterized in that The microcontroller is suitable for implementing the method according to claim 9 or 10 .
