Multiplexed drive multiplexing system, method, electronic device, and medium
By using a multiplexed drive system, the problem of unreasonable design of multiple communication channels in FPGA engineering is solved, achieving resource saving and improved program stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHENGDU TYTANTEST TECHNOLOGY CO LTD
- Filing Date
- 2024-07-05
- Publication Date
- 2026-04-24
Smart Images

Figure CN118780224B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of programmable integrated circuit design, and more particularly to multiplexed drive systems, methods, electronic devices, and media. Background Technology
[0002] Currently, in the development process of FPGA engineering, especially when multiple communication channels are involved, the current development design cannot be reasonably designed while meeting the functional requirements. Furthermore, the current development design needs to directly reuse the driver module, which wastes too much FPGA LUT resources, and the program is not very stable. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide a multiplexing system, method, electronic device, and medium.
[0004] In a first aspect, embodiments of this application provide a multiplexed drive system, the system comprising: a control module, multiple drive modules, a channel selection module, and multiple output modules;
[0005] The control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements, generate a drive signal according to the target output module, and call the corresponding target drive module from the plurality of drive modules according to the drive signal; the target output module includes M communication channels.
[0006] The control module is communicatively connected to the target driving module and the channel selection module, and is also used to generate communication data and channel selection signals according to actual functional requirements.
[0007] The target driving module is communicatively connected to the channel selection module and is used to generate an enable signal based on the communication data and the driving signal.
[0008] The channel selection module is communicatively connected to the target output module and is used to enable the target driving module to communicate with the target output module according to the channel selection signal and the enable signal.
[0009] The target driving module is used to generate a communication signal after being communicatively connected to the target output module;
[0010] The control module accesses the N communication channels sequentially according to a default order. Once all N communication channels have been accessed, the communication connection is considered to have ended.
[0011] In one embodiment, the control module is used to control the target driving module to perform data acquisition to generate the enable signal. After receiving the communication signal fed back by the target driving module, the control module updates the channel selection signal and performs multiplexing selection on the M communication channels of the target output module according to the channel selection signal to determine the N communication channels of the target output module to be used, where M is greater than or equal to N.
[0012] In one embodiment, the target driving module is used to determine the type of data operation of the target output module;
[0013] The control module is configured to determine that communication between the target driver module and the target output module is complete after receiving a communication completion signal sent by the target driver module and the read data corresponding to the read operation if the data operation is a read operation.
[0014] The control module is configured to determine, upon receiving a communication failure signal from the target driver module, that communication between the target driver module and the target output module has failed if the data operation is a read operation.
[0015] In one embodiment, the control module is configured to determine that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module if the data operation is a write operation.
[0016] The control module is configured to determine, upon receiving the communication failure signal sent by the target driver module, that communication between the target driver module and the target output module has failed if the data operation is a write operation.
[0017] In one embodiment, the plurality of output modules include: an I2C interface, an SPI interface, and a UART interface; the control module is used to determine the target output module from the plurality of output modules according to actual functional requirements.
[0018] In one embodiment, the driving signal includes: an I2C driving signal, an SPI driving signal, and a UART driving signal; the plurality of driving modules include: an I2C driving module, an SPI driving module, and a UART driving module;
[0019] The control module is used to invoke the target drive module according to the drive signal.
[0020] Secondly, embodiments of this application provide a multiplexing method for multiplexing drivers, applied to the multiplexing system of the first aspect, the method comprising:
[0021] The control module determines the target output module from the plurality of output modules according to the actual functional requirements, generates a drive signal according to the target output module, and calls the corresponding target drive module from the plurality of drive modules according to the drive signal;
[0022] The control module generates communication data, drive signals, and channel selection signals according to actual functional requirements;
[0023] The target driving module generates an enable signal based on the communication data and the driving signal;
[0024] The target driving module generates a communication signal after establishing a communication connection with the target output module.
[0025] After receiving the communication signal from the target driver module, the control module updates the channel selection signal and sequentially accesses the N communication channels of the target output module according to the default order. When the access of the N communication channels of the target output module is completed, the communication connection is determined to end.
[0026] In one embodiment, the target driving module determines the type of data operation of the target output module;
[0027] If the data operation is a read operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module and reading the data; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0028] If the data operation is a write operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0029] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the multiplexing method provided in the second aspect when the processor is running.
[0030] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the multiplexing method provided in the second aspect.
[0031] The above-described multiplexing system, method, electronic device, and medium provided in this application include: a control module, multiple drive modules, a channel selection module, and multiple output modules; the control module is configured to determine a target output module from the multiple output modules according to actual functional requirements, generate a drive signal based on the target output module, and call the corresponding target drive module from the multiple drive modules according to the drive signal; the target output module includes M communication channels; the control module is communicatively connected to the target drive module and the channel selection module respectively, and is also configured to generate communication data and a channel selection signal according to actual functional requirements; the target drive module is communicatively connected to the channel selection module and is configured to generate an enable signal based on the communication data and the drive signal; the channel selection module is communicatively connected to the target output module and is configured to enable the target drive module to communicate with the target output module based on the channel selection signal and the enable signal; the target drive module generates a communication signal after communicating with the target output module; the control module sequentially accesses N of the M communication channels according to a default order, and determines the communication connection ends when the access to the N communication channels is completed. This application achieves the goal of saving resources while making reasonable and effective designs, and adds a control module to call the driver module, thereby improving the stability of program operation. Attached Figure Description
[0032] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.
[0033] Figure 1 A schematic diagram of a module of a multiplexed drive system is shown.
[0034] Figure 2 This illustration shows another module of the multiplexing system provided in an embodiment of this application;
[0035] Figure 3 A flowchart of a multiplexing method for multiplexing drivers provided in an embodiment of this application is shown;
[0036] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0037] Icons: 10-Control module; 20-Driver module; 30-Channel selection module; 40-Output module; 21-I2C driver module; 22-SPI driver module; 23-UART driver module; 41-I2C output module; 42-SPI output module; 43-UART output module; 400-Electronic device; 401-Transceiver; 402-Processor; 403-Memory. Detailed Implementation
[0038] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0039] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0040] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.
[0041] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0042] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0043] Example 1
[0044] This application provides a multiplexing system for multiplexed drivers. Current multiplexing systems require direct multiplexing of the driver module 20, resulting in excessive waste of FPGA LUT resources. Therefore, this application proposes a multiplexing system that does not require direct multiplexing of the driver module 20, thereby improving the operational stability of the system program.
[0045] See Figure 1 The system includes: a control module 10, multiple drive modules 20, a channel selection module 30, and multiple output modules 40. The control module 10 is used to determine a target output module from the multiple output modules 40 according to actual functional requirements, generate a drive signal based on the target output module, and call the corresponding target drive module 20 from the multiple drive modules 20 according to the drive signal. The target output module includes M communication channels. The control module 10 is communicatively connected to the target drive module 20 and the channel selection module 30 respectively, and is also used to generate communication data and channel selection signals according to actual functional requirements. The target driving module 20 is communicatively connected to the channel selection module 30 and is used to generate an enable signal based on the communication data and the driving signal. The channel selection module 30 is communicatively connected to the target output module and is used to enable the target driving module 20 to communicate with the target output module based on the channel selection signal and the enable signal. The target driving module 20 generates a communication signal after communicating with the target output module. The control module 10 sequentially accesses the N communication channels according to a default order, and determines that the communication connection ends when the access of the N communication channels is completed.
[0046] It should be noted that the control module 10 determines the target output module from the plurality of output modules 40 according to the actual functional requirements, generates a drive signal according to the target output module, and calls the corresponding target drive module 20 from the plurality of drive modules 20 according to the drive signal.
[0047] To further explain, the control module 10 determines the number of channels based on functional requirements and hardware circuit design. The control module 10 generates a channel selection signal and simultaneously controls the target driver module to acquire output or input signals. It then multiplexes and selects the specific channel from which the communication signal is output or received. Specifically, if the requirement necessitates communication using 10 interfaces, communication must begin with the first channel. After the current channel has completed communication, the next channel is selected, and this process continues until all channels have completed communication.
[0048] In FPGA logic development, taking I2C driver multiplexing as an example, a single I2C target driver module 20 occupies nearly 170 lookup table resources. In the entire project design, the number of downstream I2C devices may range from zero to several hundred. In this case, directly calling the target driver module 20 is clearly not feasible. Therefore, the multiplexing system designed in this application can be used to meet the functional design requirements. See also... Figure 2 , Figure 2 A schematic diagram of another module of the multiplexing system provided in an embodiment of this application is shown.
[0049] The control module 10 is used to control the target driving module 20 to perform data acquisition to generate the enable signal. After receiving the communication signal fed back by the target driving module 20, it updates the channel selection signal and performs multiplexing selection on the M communication channels of the target output module according to the channel selection signal to determine the N communication channels of the target output module to be used, where M is greater than or equal to N.
[0050] Furthermore, the control module 10 is used to control the target driving module 20 to acquire data and generate the enable signal, and to multiplex and select multiple channels according to the channel selection signal to determine the multiple communication channels to be used. The multiple communication channels to be used are then used sequentially for communication, and the communication results fed back by the target driving module 20 are recorded. It is then determined whether all the determined communication channels have completed communication. If communication is confirmed to be complete, the communication ends.
[0051] In one embodiment, the plurality of output modules 40 includes: an I2C output module 41, an SPI output module 42, and a UART output module 43; the control module 10 is used to determine the target output module from the plurality of output modules 40 according to actual functional requirements.
[0052] Among them, I2C output module 41 is an I2C interface, SPI output module 42 is an SPI interface, and UART output module 43 is a UART interface.
[0053] Specifically, based on functional requirements, the target output module needs to use the I2C interface for communication, so the control module 10 needs to call the I2C driver module 21 during the design.
[0054] In one embodiment, the driving signal includes: an I2C driving signal, an SPI driving signal, and a UART driving signal; the plurality of driving modules 20 include: an I2C driving module 21, an SPI driving module 22, and a UART driving module 23; the control module 10 is used to invoke the target driving module 20 according to the driving signal.
[0055] In this embodiment, the control module 10 generates the data to be transmitted, read / write commands, and I2C drive signals to the I2C drive module 21, and simultaneously generates a channel selection signal to the channel selection module 30. The target drive module 20 generates SCL and SDA signals according to the I2C protocol and transmits the SCL and SDA signals to the channel selection module 30. The channel selection module 30 connects the SCL and SDA signals to the corresponding channel according to the channel selection signal provided by the control module 10. At this time, the I2C drive module 21 can communicate with the I2C output module 41 of the corresponding channel on the hardware circuit.
[0056] In one embodiment, the target driving module 20 is used to determine the type of data operation of the target output module; the control module 10 is used to determine that communication between the target driving module 20 and the target output module is complete after receiving the communication completion signal sent by the target driving module 20 and the read data if the data operation is a read operation.
[0057] The control module 10 is configured to determine, upon receiving a communication failure signal sent by the target driver module 20, that communication between the target driver module 20 and the target output module has failed if the data operation is a read operation.
[0058] It should be noted that data operations may involve read operations or only write operations. When a read operation is involved, in this embodiment, upon successful communication, the I2C driver module 21 will return a communication completion signal and the read data to the control module 10; if communication fails, the I2C driver module 21 will send a communication failure signal back to the control module 10. After receiving the feedback from the I2C driver module 21, the control module 10 updates the channel selection signal and proceeds to the next channel for communication until all channels have been accessed.
[0059] In one embodiment, the control module 10 is configured to determine that communication between the target driver module 20 and the target output module is complete after receiving the communication completion signal sent by the target driver module 20 if the data operation is a write operation.
[0060] The control module 10 is configured to determine, upon receiving the communication failure signal sent by the target driver module 20, that communication between the target driver module 20 and the target output module has failed if the data operation is a write operation.
[0061] It should be noted that data operations may involve read operations or only write operations. In this embodiment, after I2C communication is completed, if there is only a write operation in I2C, then the I2C driver module 21 will directly feed back the communication result of the write operation to the control module 10.
[0062] This embodiment provides a multiplexed drive system, comprising: a control module 10, multiple drive modules 20, a channel selection module 30, and multiple output modules 40. The control module 10 is configured to determine a target output module from the multiple output modules 40 according to actual functional requirements, generate a drive signal based on the target output module, and call the corresponding target drive module 20 from the multiple drive modules 20 based on the drive signal. The target output module includes M communication channels. The control module 10 is communicatively connected to both the target drive module 20 and the channel selection module 30, and is further configured to generate communication data and select channels according to actual functional requirements. The target driving module 20 is communicatively connected to the channel selection module 30 and is used to generate an enable signal based on the communication data and the driving signal. The channel selection module 30 is communicatively connected to the target output module and is used to enable the target driving module 20 to communicate with the target output module based on the channel selection signal and the enable signal. The target driving module 20 generates a communication signal after communicating with the target output module. The control module 10 sequentially accesses N communication channels out of the M communication channels according to a default order. When all N communication channels have been accessed, the communication connection is considered to have ended. This application can achieve the goal of saving resources while making reasonable and effective design, and the addition of a control module improves the stability of program operation by calling the driving module through the control module.
[0063] Example 2
[0064] Furthermore, embodiments of this application provide a multiplexing method for multiplexing drivers, applicable to multiplexing systems.
[0065] See Figure 3 The multiplexing method includes:
[0066] S301, the control module determines the target output module from the plurality of output modules according to the actual functional requirements, generates a drive signal according to the target output module, and calls the corresponding target drive module from the plurality of drive modules according to the drive signal.
[0067] S302, the control module generates communication data, drive signals and channel selection signals according to actual functional requirements.
[0068] S303, the target driving module generates an enable signal based on the communication data and the driving signal.
[0069] S304, after the target driving module and the target output module establish a communication connection, a communication signal is generated.
[0070] S305, after receiving the communication signal fed back by the target driving module, the control module updates the channel selection signal and sequentially accesses the N communication channels of the target output module according to the default order. When the access of the N communication channels of the target output module is completed, the communication connection is determined to end.
[0071] In one embodiment, the target driving module determines the type of data operation of the target output module.
[0072] If the data operation is a read operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module and reading the data; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0073] If the data operation is a write operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0074] The multiplexing method provided in this embodiment is applied to the multiplexing system provided in Embodiment 1. To avoid repetition, it will not be described again.
[0075] This embodiment provides a multiplexing method for multiplexing drivers. The method operates on a multiplexing system, which includes a control module, multiple driver modules, a channel selection module, and multiple output modules. The control module is used to determine a target output module from the multiple output modules according to actual functional requirements, generate a drive signal based on the target output module, and call the corresponding target driver module from the multiple driver modules based on the drive signal. The target output module includes M communication channels. The control module is communicatively connected to both the target driver module and the channel selection module, and is also used to generate communication data and channels according to actual functional requirements. The target driver module, communicatively connected to the channel selection module, generates an enable signal based on the communication data and the drive signal. The channel selection module, communicatively connected to the target output module, enables the target driver module to establish a communication connection with the target output module based on the channel selection signal and the enable signal. The target driver module generates a communication signal after establishing a communication connection with the target output module. The control module sequentially accesses N communication channels out of the M communication channels according to a default order; once all N communication channels have been accessed, the communication connection is considered complete. This application achieves both reasonable and effective design while conserving resources. Furthermore, the addition of a control module, which calls the driver module, improves the stability of program operation.
[0076] Example 3
[0077] Furthermore, this application provides an electronic device, including a memory and a processor. The memory stores a computer program, which executes the multiplexing method provided in Embodiment 2 when running on the processor.
[0078] For details, see Figure 4 The electronic device 400 includes a transceiver 401, a bus interface, and a processor 402. The processor 402 is configured to: determine a target output module from the plurality of output modules according to actual functional requirements via the control module; generate a drive signal based on the target output module; and call the corresponding target drive module from the plurality of drive modules based on the drive signal; generate communication data, drive signals, and channel selection signals according to actual functional requirements; generate an enable signal based on the communication data and drive signals; generate a communication signal after the target drive module establishes a communication connection with the target output module; and, upon receiving the communication signal from the target drive module, update the channel selection signal and sequentially access the N communication channels of the target output module according to a default order. When all N communication channels of the target output module have been accessed, the communication connection is considered to have ended.
[0079] In one embodiment, the processor 402 is further configured to: determine the type of data operation of the target output module through the target driving module;
[0080] If the data operation is a read operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module and reading the data; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0081] If the data operation is a write operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0082] In this embodiment of the application, the electronic device 400 further includes a memory 403. Figure 4 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 402) and memory (memory 403). The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 401 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 402 during operation.
[0083] The electronic device 400 provided in this application embodiment can execute the steps of the multiplexing method provided in the above method embodiment 2. To avoid repetition, it will not be described again here.
[0084] Example 4
[0085] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the multiplexing method provided in Embodiment 2.
[0086] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0087] The computer-readable storage medium provided in this embodiment can implement the multiplexing method of the drive provided in Embodiment 2. To avoid repetition, it will not be described again here.
[0088] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0090] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A multiplexed drive system, characterized in that, The system includes: a control module, multiple drive modules, a channel selection module, and multiple output modules; The control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements, generate a drive signal according to the target output module, and call the corresponding target drive module from the plurality of drive modules according to the drive signal; the target output module includes M communication channels. The control module is communicatively connected to the target driving module and the channel selection module, and is also used to generate communication data and channel selection signals according to actual functional requirements. The target driving module is communicatively connected to the channel selection module and is used to generate an enable signal based on the communication data and the driving signal. The channel selection module is communicatively connected to the target output module and is used to enable the target driving module to communicate with the target output module according to the channel selection signal and the enable signal. The target driving module is used to generate communication signals after being communicatively connected with the target output module; The control module accesses N of the M communication channels sequentially according to a default order. Once all N communication channels have been accessed, the communication connection is considered to have ended.
2. The multiplexing system according to claim 1, characterized in that, The control module is used to control the target driving module to perform data acquisition to generate the enable signal. After receiving the communication signal fed back by the target driving module, it updates the channel selection signal and selects the multiplexing of the M communication channels of the target output module according to the channel selection signal to determine the N communication channels of the target output module to be used, where M is greater than or equal to N.
3. The multiplexing system according to claim 1, characterized in that, The target driving module is used to determine the type of data operation of the target output module; The control module is configured to determine that communication between the target driver module and the target output module is complete after receiving a communication completion signal sent by the target driver module and the read data corresponding to the read operation if the data operation is a read operation. The control module is configured to determine, upon receiving a communication failure signal from the target driver module, that communication between the target driver module and the target output module has failed if the data operation is a read operation.
4. The multiplexing system according to claim 3, characterized in that, The control module is configured to determine that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module if the data operation is a write operation. The control module is configured to determine, upon receiving the communication failure signal sent by the target driver module, that communication between the target driver module and the target output module has failed if the data operation is a write operation.
5. The multiplexing system according to claim 1, characterized in that, The multiple output modules include: an I2C interface, an SPI interface, and a UART interface; The control module is used to determine the target output module from the plurality of output modules according to actual functional requirements.
6. The multiplexing system according to claim 1, characterized in that, The drive signals include: I2C drive signals, SPI drive signals, and UART drive signals; The plurality of driver modules include: an I2C driver module, an SPI driver module, and a UART driver module; The control module is used to invoke the target drive module according to the drive signal.
7. A multiplexing method for multiplexing drive paths, characterized in that, Applied to any of the multiplexing systems described in 1-6, the method includes: The control module determines the target output module from the plurality of output modules according to the actual functional requirements, generates a drive signal according to the target output module, and calls the corresponding target drive module from the plurality of drive modules according to the drive signal; The control module generates communication data, drive signals, and channel selection signals according to actual functional requirements; The target driving module generates an enable signal based on the communication data and the driving signal; The target driving module generates a communication signal after establishing a communication connection with the target output module. After receiving the communication signal from the target driver module, the control module updates the channel selection signal and sequentially accesses the N communication channels of the target output module according to the default order. When the access of the N communication channels of the target output module is completed, the communication connection is determined to end.
8. The multiplexing method for multiplexing drive according to claim 7, characterized in that, The method further includes: The target driver module determines the type of data operation of the target output module. If the data operation is a read operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module and reading the data; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module. If the data operation is a write operation, the control module determines that communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module; the control module determines that communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that executes the multiplexing method of claim 7 or 8 when the processor is running.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the multiplexing method of claim 7 or 8.
Citation Information
Patent Citations
Vending machine
CN106228684A
Optical module access method, device and system, electronic equipment and readable storage medium
CN117278890A