Terminal mainboard circuit, terminal equipment and ADC interface multiplexing control method

文档序号:1270909 发布日期:2020-08-25 浏览:9次 中文

阅读说明:本技术 终端主板电路、终端设备和adc接口复用控制方法 (Terminal mainboard circuit, terminal equipment and ADC interface multiplexing control method ) 是由 古兆强 于 2020-03-24 设计创作,主要内容包括:本申请涉及一种终端主板电路、终端设备和ADC接口复用控制方法。其中,一种终端主板电路,包括基础芯片、内部电路和外部接口;基础芯片包括模拟开关、目标ADC接口和处理器;模拟开关的控制端连接处理器,公共端连接目标ADC接口,第一端连接内部电路,第二端连接外部接口;处理器连接目标ADC接口,用于在检测到开机触发事件时,向模拟开关传输第一开关信号,以使目标ADC接口通过模拟开关连接内部电路,以及接收内部电路传输的加载控制信号,根据加载控制信号加载相应的系统驱动至内存,当确认操作系统加载完成时,向模拟开关传输第二开关信号,以使目标ADC接口通过模拟开关连接外部接口,从而可实现ADC接口复用,进而可降低终端主板电路的成本。(The application relates to a terminal mainboard circuit, terminal equipment and an ADC interface multiplexing control method. The terminal mainboard circuit comprises a basic chip, an internal circuit and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end is connected with the target ADC interface, the first end is connected with the internal circuit, and the second end is connected with the external interface; the processor is connected with the target ADC interface and used for transmitting a first switch signal to the analog switch when a starting trigger event is detected, so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system drive to the memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the completion of the loading of the operating system is confirmed, so that the target ADC interface is connected with the external interface through the analog switch, the multiplexing of the ADC interface can be realized, and the cost of a terminal mainboard circuit can be reduced.)

1. A terminal mainboard circuit is characterized by comprising a basic chip, an internal circuit and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end of the analog switch is connected with the target ADC interface, the first end of the analog switch is connected with the internal circuit, and the second end of the analog switch is connected with the external interface;

the processor is connected with the target ADC interface and is used for transmitting a first switch signal to the analog switch when a starting trigger event is detected so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system driver to a memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the loading of an operating system is confirmed to be completed so that the target ADC interface is connected with the external interface through the analog switch.

2. The terminal motherboard circuit according to claim 1, wherein said base chip further comprises an input-output interface; the input/output interface is connected between the processor and the control end of the analog switch;

the processor is used for configuring the input and output interface before transmitting a first switch signal to the analog switch; the input/output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

3. The terminal motherboard circuit according to claim 2, wherein the number of said input/output interfaces is at least two; the number of the target ADC interfaces is at least two; the number of the analog switches is at least two;

and each input/output interface, each target ADC interface and each analog switch are connected in a one-to-one correspondence manner.

4. The terminal motherboard circuit according to claim 1, wherein the processor is configured to obtain an ADC internal usage number and an ADC external call number, and determine a target ADC interface according to the ADC internal usage number and the ADC external call number.

5. A terminal board circuit according to claim 1, wherein the processor is configured to monitor an operational event transmitted by the external interface and to respond to the operational event.

6. A terminal device, characterized by comprising peripheral circuits, and a terminal board circuit according to any one of claims 1 to 5; and the peripheral circuit is connected with the terminal mainboard circuit.

7. An ADC interface multiplexing control method is characterized by comprising the following steps:

when a starting trigger event is detected, transmitting a first switch signal to the analog switch; the first switch signal is used for indicating a target ADC interface to be connected with an internal circuit through the analog switch;

receiving a loading control signal transmitted by the internal circuit, and loading a corresponding system driver to the memory according to the loading control signal;

when the loading of the operating system is confirmed to be completed, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with an external interface through the analog switch.

8. The ADC interface multiplexing control method according to claim 7, further comprising, before the step of transmitting the first switching signal to the analog switch, the steps of:

configuring an input/output interface; the input/output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

9. The ADC interface multiplexing control method according to claim 7, further comprising the steps of:

acquiring the internal use number of the ADC and the external calling number of the ADC;

and determining a target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

10. The ADC interface multiplexing control method according to claim 7, further comprising the steps of:

monitoring an operation event and responding to the operation event; the operation event is obtained by receiving external interface transmission.

11. An ADC interface multiplexing control apparatus, comprising:

the first switch signal transmission module is used for transmitting a first switch signal to the analog switch when a starting trigger event is detected; the first switch signal is used for indicating a target ADC interface to be connected with an internal circuit through the analog switch;

the system driver loading module is used for receiving a loading control signal transmitted by the internal circuit and loading a corresponding system driver to the memory according to the loading control signal;

the second switch signal transmission module is used for transmitting a second switch signal to the analog switch when the completion of the loading of the operating system is confirmed; the second switch signal is used for indicating the target ADC interface to be connected with an external interface through the analog switch.

12. A base chip comprising a processor, characterized in that the processor realizes the steps of the method of any one of claims 7 to 10 when executing a computer program.

13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 7 to 10.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a terminal motherboard circuit, a terminal device, and an ADC interface multiplexing control method.

Background

With the continuous development of communication technology and electronic circuit technology, electronic terminal equipment is generally implemented by matching a main board circuit with a corresponding peripheral circuit. In a conventional motherboard circuit, an ADC (Analog-to-Digital Converter) interface is generally set aside for custom use or peripheral circuit development. But the number of the ADC interfaces in the integrated mainboard circuit is limited, and the problem of insufficient number of the ADC interfaces is easy to occur.

In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: in the conventional technology, the problem of high cost exists for enabling an ADC interface of a mainboard circuit to meet the requirements of internal use and external calling.

Disclosure of Invention

Therefore, it is necessary to provide a terminal motherboard circuit, a terminal device, and an ADC interface multiplexing control method, which can implement ADC interface multiplexing and reduce the cost of the motherboard circuit, in order to solve the problem of excessive cost in the conventional technology.

A terminal mainboard circuit comprises a basic chip, an internal circuit and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end is connected with the target ADC interface, the first end is connected with the internal circuit, and the second end is connected with the external interface;

the processor is connected with the target ADC interface and used for transmitting a first switch signal to the analog switch when a starting trigger event is detected so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system driver to the memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the loading of the operating system is confirmed to be completed so that the target ADC interface is connected with the external interface through the analog switch.

In one embodiment, the base chip further comprises an input-output interface; the input/output interface is connected between the processor and the control end of the analog switch;

the processor is used for configuring the input and output interface before transmitting the first switch signal to the analog switch; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

In one embodiment, the number of the input and output interfaces is at least two; the number of target ADC interfaces is at least two; the number of the analog switches is at least two;

and each input/output interface, each target ADC interface and each analog switch are connected in a one-to-one correspondence manner.

In one embodiment, the processor is configured to obtain the number of ADC internal uses and the number of ADC external calls, and determine the target ADC interface according to the number of ADC internal uses and the number of ADC external calls.

In one embodiment, the processor is configured to monitor an operational event transmitted by the external interface and to respond to the operational event.

A terminal device comprises a peripheral circuit and the terminal mainboard circuit; the peripheral circuit is connected with the terminal mainboard circuit.

An ADC interface multiplexing control method comprises the following steps:

when a starting trigger event is detected, transmitting a first switch signal to the analog switch; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

receiving a loading control signal transmitted by an internal circuit, and loading a corresponding system driver to the memory according to the loading control signal;

when the loading of the operating system is confirmed to be finished, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

In one embodiment, before the step of transmitting the first switching signal to the analog switch, the method further comprises the steps of:

configuring an input/output interface; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

In one embodiment, the method further comprises the following steps:

acquiring the internal use number of the ADC and the external calling number of the ADC;

and determining a target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

In one embodiment, the method further comprises the following steps:

monitoring and responding to the operation event; the operation event is obtained by receiving external interface transmission.

An ADC interface multiplexing control apparatus comprising:

the first switch signal transmission module is used for transmitting a first switch signal to the analog switch when a starting trigger event is detected; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

the system driver loading module is used for receiving a loading control signal transmitted by the internal circuit and loading a corresponding system driver to the memory according to the loading control signal;

the second switch signal transmission module is used for transmitting a second switch signal to the analog switch when the completion of the loading of the operating system is confirmed; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

A base chip comprising a processor, the processor implementing the steps of the above method when executing a computer program.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.

One of the above technical solutions has the following advantages and beneficial effects:

the terminal mainboard circuit in each embodiment of the application comprises a basic chip, an internal circuit and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end is connected with the target ADC interface, the first end is connected with the internal circuit, and the second end is connected with the external interface; the processor is connected with the target ADC interface and used for transmitting a first switch signal to the analog switch when a starting trigger event is detected so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system driver to the memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the loading of the operating system is confirmed to be completed so that the target ADC interface is connected with the external interface through the analog switch. In the application, the processor transmits the first switch signal or the second switch signal to the analog switch, so that the target ADC interface can be connected with the internal circuit when the starting trigger event occurs, and is connected with the external interface after the loading of the operating system is completed, the multiplexing of the ADC interface can be realized, and the cost of the terminal mainboard circuit can be reduced.

Drawings

Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:

FIG. 1 is a block diagram of a schematic configuration of a circuit of a main board of a terminal according to an embodiment;

FIG. 2 is a schematic diagram of the connections of the input-output interface, the target ADC interface, and the analog switch in one embodiment;

FIG. 3 is a block diagram showing a schematic configuration of a terminal device in one embodiment;

FIG. 4 is a flowchart illustrating an ADC interface multiplexing control method according to an embodiment;

fig. 5 is a block diagram of an ADC interface multiplexing control apparatus according to an embodiment.

Detailed Description

To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are shown in the drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

In a conventional motherboard circuit, a base chip includes a plurality of ADC (Analog-to-Digital Converter) interfaces, wherein a part of the ADC interfaces is used by an internal circuit on the motherboard circuit, that is, in an internal use state. And the remaining ADC interfaces are used to connect external interfaces so that external devices can be connected, i.e. in an external call state. When an ADC interface is defined for internal use, it can no longer be connected to an external device, i.e. can no longer be adjusted to an external call state, for subsequent use. In other words, in the conventional technology, the state of the ADC interface has been defined as an internal use or an external call at the time of factory shipment, and the state of the ADC interface is not changeable.

However, the number of ADC interfaces in the motherboard circuit is limited, and some ADC interfaces need to be set to an internal use state to meet the design requirement of the motherboard circuit, which makes the number of ADC channels for connecting external devices insufficient. For example, when implementing a single-software multi-hardware scheme BID (Board ID, motherboard identification), one set of software adapts to multiple sets of hardware, and assigns different IDs to different hardware, and the software calls corresponding drivers after ID identification, at this time, the number of ADC interfaces is difficult to satisfy both internal use and external call requirements. If an ADC conversion chip is added, the cost of the motherboard circuit is high.

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

In one embodiment, as shown in fig. 1, there is provided a terminal motherboard circuit comprising a base chip, an internal circuit, and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end is connected with the target ADC interface, the first end is connected with the internal circuit, and the second end is connected with the external interface;

the processor is connected with the target ADC interface and used for transmitting a first switch signal to the analog switch when a starting trigger event is detected so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system driver to the memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the loading of the operating system is confirmed to be completed so that the target ADC interface is connected with the external interface through the analog switch.

The basic chip may be a control chip for operation and control of the terminal motherboard circuit, such as a high-pass chip, an intel chip, or an kylin chip. The internal circuit may be a circuit other than the base chip in the main board circuit. The external interface may be an interface for connecting an external circuit, module or device. The target ADC interface may be an ADC interface configured as interface multiplexing, in other words, the interface state of the target ADC interface may be changed after factory shipment, for example, the interface state of the target ADC interface may be switched between an internal use state and an external call state.

The startup trigger event may be an event that triggers the terminal motherboard circuit to enter a startup phase, including but not limited to powering on, pressing a switch key, receiving a remote switch instruction, and the like. The first switch signal may be a signal indicating that the analog switch is switched to a first switch state, and the first switch state may be a state in which the common terminal is connected to the first terminal. The second switch signal may be a signal indicating that the analog switch is switched to a second switch state, and the second switch state may be different from the first switch state, and further, the second switch state may be a state in which the common terminal is connected to the second terminal.

Specifically, the base chip comprises an analog switch, an ADC interface and a processor, wherein the analog switch can be an analog electronic switch and comprises a common terminal, a control terminal, a first terminal and a second terminal. The control end of the analog switch is used for receiving the control signal, and the analog switch can switch the switch state of the analog switch according to the received control signal so that the analog switch is in a conducting state or a disconnecting state. When the analog switch is in a conducting state, the common terminal may be connected to the first terminal, or the common terminal may be connected to the second terminal.

The base chip may include a processor, an ADC interface, and an analog switch. The processor may be a device for executing data processing and control functions in the terminal motherboard circuit, and further, the processor may be a Central Processing Unit (CPU). The analog switch may be an analog electronic switch.

In the base chip, the number of the ADC interfaces may be one or more, the target ADC interface may be a part of or all of the ADC interfaces, and the number of the target ADC interfaces may be determined according to actual conditions and design requirements. The interface states of the ADC interfaces other than the target ADC interface may be pre-configured, and the usage state of the interface may not be adjusted after shipment.

The target ADC interface is connected with the common end of the analog switch. For example, when the number of ADC interfaces in the base chip is 2, the number of target ADC interfaces may be 1 or 2, and when the number of target ADC interfaces is 1, the target ADC interface is connected to the common terminal of the analog switch, and another ADC interface may be connected to the common terminal of the analog switch, or directly connected to the processor, or connected to the processor through another intermediate device. The interface state of another ADC interface can be pre-configured to the internal use state, and then the ADC interface can be connected to the internal circuit and not connected to the external interface.

The control end of the analog switch can be connected with the processor, and the processor can control the analog switch to switch the on-off state of the analog switch; the first end of the analog switch can be connected with the internal circuit, and the second end of the analog switch can be connected with the external interface. The processor can monitor the switch triggering event in real time, when the starting triggering event is detected, the processor can transmit a first switch signal to the analog switch through the control end of the analog switch, the analog switch switches on connection between the public end and the first end when receiving the first switch signal, the target ADC interface is connected with the analog switch at the moment, and the analog switch is connected with the internal circuit, so that the target ADC interface can be connected with the internal circuit through the analog switch.

The target ADC interface may convert an analog electrical signal transmitted by the internal circuit into a digital electrical signal, and transmit the obtained digital electrical signal to the processor, and the processor may receive the digital electrical signal transmitted by the internal circuit, that is, a loading control signal, and load a corresponding system driver to the memory according to control of the loading control signal, for example, may load a BootLoader (e.g., LK, Little Kernel), a Kernel (Kernel), and an operating system to the memory. Further, the loading control signal may be a voltage signal.

In the starting-up stage of the terminal mainboard circuit, a plurality of system drivers need to be loaded into the memory, and the system drivers loaded by the terminal mainboard circuits are different due to the fact that the application areas of the terminal mainboard circuits can be different, the connected peripherals can be different and the like. The processor receives the loading control signal through the target ADC interface, so that the corresponding system driver is loaded, and the loaded system driver can be adapted to a terminal mainboard circuit.

For example, there may be a plurality of system drivers for the communication frequency band, including a frequency band driver 1, a frequency band driver 2, and the like, and the internal circuit transmits the loading control signal to the processor. When the voltage value of the loading control signal is 0, the processor loads the frequency band drive 1 into the memory; when the voltage value of the loading control signal is 1, the processor loads the frequency band driver 2 into the memory.

In this application, the processor may receive the loading control signal transmitted by the internal circuit through the target ADC interface, or may receive the loading control signal through an ADC interface, which is directly or indirectly connected to the internal circuit, other than the target ADC interface.

When the system driver is loaded, the processor can detect the type and the loading progress of the system driver in real time, after the operating system is confirmed to be loaded, the processor can transmit a second switch signal to the simulator through the control end of the analog switch, the analog switch switches on connection between the public end and the second end when receiving the second switch signal, the target ADC interface is connected with the analog switch at the moment, and the analog switch is connected with the external interface, so that the target ADC interface can be connected with the external interface through the analog switch. Corresponding modules, equipment and circuits are connected with an external interface, so that the target ADC interface can be used in a user-defined mode, and the multiplexing of the ADC interface is further realized.

The terminal mainboard circuit comprises a basic chip, an internal circuit and an external interface; the basic chip comprises an analog switch, a target ADC interface and a processor; the control end of the analog switch is connected with the processor, the public end is connected with the target ADC interface, the first end is connected with the internal circuit, and the second end is connected with the external interface; the processor is connected with the target ADC interface and used for transmitting a first switch signal to the analog switch when a starting trigger event is detected so that the target ADC interface is connected with the internal circuit through the analog switch, receiving a loading control signal transmitted by the internal circuit, loading a corresponding system driver to the memory according to the loading control signal, and transmitting a second switch signal to the analog switch when the loading of the operating system is confirmed to be completed so that the target ADC interface is connected with the external interface through the analog switch. In the application, the processor transmits the first switch signal or the second switch signal to the analog switch, so that the target ADC interface can be connected with the internal circuit when the starting trigger event occurs, and is connected with the external interface after the loading of the operating system is completed, the multiplexing of the ADC interface can be realized, and the cost of the terminal mainboard circuit can be reduced.

In one embodiment, the base chip further comprises an input-output interface; the input/output interface is connected between the processor and the control end of the analog switch;

the processor is used for configuring the input and output interface before transmitting the first switch signal to the analog switch; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

The input/output interface may be an input/output interface provided on the base chip, and further may be a General-purpose input/output (GPIO) interface.

Specifically, the processor is connected with the input/output interface, the input/output interface is connected with the control end of the analog switch, and when the processor transmits a first switching signal or a second switching signal to the analog switch, the switching signal sequentially passes through the processor, the input/output interface and the control end of the analog switch.

Before transmitting the switch signal to the analog switch, the processor may configure the input/output interface, where the configuration process of the input/output interface may be to obtain a corresponding relationship between the input/output interface and the target ADC interface, or adjust an interface state of the input/output interface to an initial interface state, or the like. It should be noted that the configuration of the input/output interface can be determined according to actual situations and design requirements.

Further, the initial state of the input/output interface can be selected in cooperation with the enabling of the analog switch. That is, when the input/output interface connected to the analog switch is in the initial interface state, the common terminal of the analog switch is connected to the first terminal, so that the target ADC interface can be connected to the internal circuit. For example, when the analog switch receives a low level, the common terminal is connected to the first terminal, and the input/output interface with a low initial interface state can be selected to connect the analog switch, so that an internal circuit can be connected to complete loading of system driving in a startup stage of a terminal mainboard circuit, and further reliability of the terminal mainboard circuit is improved.

In one embodiment, the number of input-output interfaces is at least two; the number of target ADC interfaces is at least two; the number of the analog switches is at least two;

and each input/output interface, each target ADC interface and each analog switch are connected in a one-to-one correspondence manner.

Specifically, any two of the number of input/output interfaces, the number of target ADC interfaces, and the number of analog switches in the terminal motherboard circuit may be the same or different, and further, the number of target ADC interfaces and the number of analog switches may be the same, or the number of input/output interfaces may be greater than the number of target ADC interfaces. The input/output interfaces, the target ADC interfaces, and the analog switches are connected in a one-to-one correspondence, and when the number of the input/output interfaces is greater than the number of the target ADC interfaces, or the number of the input/output interfaces is greater than the number of the analog switches, the connection relationship may be as shown in fig. 2.

The processor can acquire the corresponding relation between the input/output interface and the target ADC interface, so that the input/output interface corresponding to each target ADC interface can be confirmed based on the corresponding relation, and each target ADC interface can be accurately controlled through the input/output interface, so that the interface states of any two target ADC interfaces can be the same or different, the control accuracy is improved, and the practicability of the terminal mainboard circuit is improved. Further, the correspondence between the input/output interface and the target ADC interface may be predefined.

In one embodiment, the processor is configured to obtain the number of ADC internal uses and the number of ADC external calls, and determine the target ADC interface according to the number of ADC internal uses and the number of ADC external calls.

The used number in the ADC can be the number of ADC interfaces required for connecting an internal circuit; the number of ADC external calls may be the number of ADC interfaces required to connect the external interface. The sum of the number of ADC internal uses and the number of ADC external calls may be greater than, less than, or equal to the total number of ADC interfaces.

Specifically, the processor is used for acquiring the internal use number of the ADC and the external call number of the ADC, and determining a target ADC interface according to the internal use number of the ADC and the external call number of the ADC. Specifically, the processor may identify the number of multiplexed ADC interfaces based on the number of multiplexed ADC interfaces by identifying the number of multiplexed ADC interfaces based on the number of ADC internal uses and the number of ADC external calls.

In one embodiment, the processor is configured to monitor for operational events transmitted by the external interface and to respond to the operational events.

Specifically, the processor is connected to the target ADC interface, and may monitor an operation event of the external interface through the target ADC interface. In addition, the processor may also monitor operational events of the external interface through an ADC interface other than the target ADC interface. The processor may be responsive to the monitored operational event.

For example, when the external interface is connected to the multi-key earphone, the processor may monitor key events of the multi-key earphone, and the processor may receive the ADC value transmitted by the target ADC interface and correspond different ADC values to different key true values, thereby implementing the monitoring of key events and responding to different key events. Further, the operational event may also be an interrupt, temperature detection, or the like.

In the terminal mainboard circuit of this application, do all two uses through analog switch with the ADC interface in the basic chip for same ADC interface can supply inside to use and outside to call. Specifically, at the stage of starting up the terminal motherboard circuit, a specific GPIO interface may be configured to connect the common terminal of the analog switch to the first terminal, so that the target ADC interface may be connected to the internal circuit and receive the driving control signal transmitted by the internal circuit. For example, in the BID, the corresponding BID may be read through the target ADC interface, and the software performs corresponding processing according to the read different BIDs, and loads the system driver corresponding to the BID into the memory. After the operating system is loaded, the common end of the GPIO control analog switch is connected with the second end, so that the target ADC interface can be connected with the external interface, the target ADC interface can be opened outwards, and the processor continuously monitors external signals to monitor operating events.

In one embodiment, as shown in fig. 3, there is provided a terminal device, including peripheral circuits, and a terminal main board circuit as in any of the above embodiments; the peripheral circuit is connected with the terminal mainboard circuit.

Specifically, the peripheral circuit may be determined according to actual conditions and design requirements. Peripheral circuits that can be realized without inventive effort in the art are intended to be within the scope of the present application. The peripheral circuit can be connected with an external interface of the terminal mainboard circuit terminal. The terminal device in the application can be a POS machine, a vending machine, an automatic washing machine or an automatic clothes dryer and the like.

The present application further provides an ADC interface multiplexing control method, which can be applied in the application environment shown in fig. 1, and specifically, the method is exemplified as being applied to the processor in fig. 1,

in one embodiment, as shown in fig. 4, there is provided an ADC interface multiplexing control method, including the following steps:

step 410, when a startup trigger event is detected, transmitting a first switch signal to an analog switch; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

step 420, receiving a loading control signal transmitted by the internal circuit, and loading a corresponding system driver to the memory according to the loading control signal;

step 430, when the loading of the operating system is confirmed to be completed, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

Specifically, the power-on trigger event may be an event that triggers the terminal motherboard circuit to enter a power-on stage, including but not limited to powering on, pressing an on/off key, receiving a remote switch instruction, and the like. The first switch signal may be a signal indicating that the analog switch is switched to a first switch state. The second switch signal may be a signal that indicates that the analog switch is switched to a second switch state, which may be different from the first switch state.

The processor can monitor the switch triggering event in real time, when the starting triggering event is detected, the processor transmits a first switch signal to the analog switch, and the analog switch switches the switch state of the analog switch to the first switch state when receiving the first switch signal, so that the target ADC interface can be connected with the internal circuit through the analog switch.

In the boot stage, the processor needs to load a plurality of system drivers into the memory, and the system drivers that the processor needs to load are different because the application areas of the main board circuits of the terminals can be different, the connected peripherals can be different, and the like.

The processor may receive a number loading control signal transmitted by the internal circuit, and load a corresponding system driver to the memory according to control of the loading control signal, for example, a BootLoader (e.g., LK, LittleKernel), a Kernel (Kernel), and an operating system may be loaded to the memory. Further, the loading control signal may be a voltage signal.

For example, there may be a plurality of system drivers for the communication frequency band, including a frequency band driver 1, a frequency band driver 2, and the like, and the internal circuit transmits the loading control signal to the processor. When the voltage value of the loading control signal is 0, the processor loads the frequency band drive 1 into the memory; when the voltage value of the loading control signal is 1, the processor loads the frequency band driver 2 into the memory.

When the system driver is loaded, the processor can detect the type and the loading progress of the system driver in real time, and after the operating system is confirmed to be loaded, the processor can transmit a second switch signal to the simulator through the control end of the analog switch, and the analog switch switches the switch state of the processor to the second switch state. At the moment, the target ADC interface is connected with the analog switch, the analog switch is connected with the external interface, so that the target ADC interface can be connected with the external interface through the analog switch, the processor can sequentially pass through the target ADC interface and the external interface to receive signals transmitted by an external module, equipment or a circuit, the target ADC interface can be used in a self-defining mode, and further the multiplexing of the ADC interface is realized.

In the ADC interface multiplexing control method, when a starting trigger event is detected, a first switch signal is transmitted to the analog switch; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch; receiving a loading control signal transmitted by an internal circuit, and loading a corresponding system driver to the memory according to the loading control signal; when the loading of the operating system is confirmed to be finished, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch. According to the application, the processor transmits the first switch signal or the second switch signal to the analog switch, so that the target ADC interface can be connected with the internal circuit when the starting trigger event occurs, and is connected with the external interface after the loading of the operating system is completed, the multiplexing of the ADC interface can be realized, and the cost of the terminal mainboard circuit can be reduced.

In one embodiment, before the step of transmitting the first switching signal to the analog switch, the method further comprises the steps of:

configuring an input/output interface; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

Specifically, before transmitting the switch signal to the analog switch, the processor may configure the input/output interface, where the configuration process of the input/output interface may be to obtain a corresponding relationship between the input/output interface and the target ADC interface, or adjust an interface state of the input/output interface to an initial interface state, or the like. It should be noted that the configuration of the input/output interface can be determined according to actual situations and design requirements.

In one embodiment, the method further comprises the steps of:

acquiring the internal use number of the ADC and the external calling number of the ADC;

and determining a target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

Specifically, the processor is used for acquiring the internal use number of the ADC and the external call number of the ADC, and determining a target ADC interface according to the internal use number of the ADC and the external call number of the ADC. Specifically, the processor may identify the number of multiplexed ADC interfaces based on the number of multiplexed ADC interfaces by identifying the number of multiplexed ADC interfaces based on the number of ADC internal uses and the number of ADC external calls.

In one embodiment, the method further comprises the steps of:

monitoring and responding to the operation event; the operation event is obtained by receiving external interface transmission.

It should be understood that, although the steps in the flowchart of fig. 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 5, there is provided an ADC interface multiplexing control apparatus including:

the first switch signal transmission module is used for transmitting a first switch signal to the analog switch when a starting trigger event is detected; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

the system driver loading module is used for receiving a loading control signal transmitted by the internal circuit and loading a corresponding system driver to the memory according to the loading control signal;

the second switch signal transmission module is used for transmitting a second switch signal to the analog switch when the completion of the loading of the operating system is confirmed; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

In one embodiment, further comprising:

the input/output interface configuration module is used for configuring the input/output interface; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

In one embodiment, further comprising:

the interface number acquisition module is used for acquiring the internal use number of the ADC and the external calling number of the ADC;

and the target ADC interface confirming module is used for determining the target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

In one embodiment, further comprising:

the operation event response module is used for monitoring operation events and responding to the operation events; the operation event is obtained by receiving external interface transmission.

For specific limitations of the ADC interface multiplexing control apparatus, reference may be made to the above limitations of the ADC interface multiplexing control method, which is not described herein again. The modules in the ADC interface multiplexing control apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a base chip is provided, comprising a processor which when executing a computer program implements the steps of:

when a starting trigger event is detected, transmitting a first switch signal to the analog switch; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

receiving a loading control signal transmitted by an internal circuit, and loading a corresponding system driver to the memory according to the loading control signal;

when the loading of the operating system is confirmed to be finished, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

configuring an input/output interface; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

acquiring the internal use number of the ADC and the external calling number of the ADC;

and determining a target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

monitoring and responding to the operation event; the operation event is obtained by receiving external interface transmission.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

when a starting trigger event is detected, transmitting a first switch signal to the analog switch; the first switch signal is used for indicating the target ADC interface to be connected with the internal circuit through the analog switch;

receiving a loading control signal transmitted by an internal circuit, and loading a corresponding system driver to the memory according to the loading control signal;

when the loading of the operating system is confirmed to be finished, transmitting a second switch signal to the analog switch; the second switch signal is used for indicating the target ADC interface to be connected with the external interface through the analog switch.

In one embodiment, the computer program when executed by the processor further performs the steps of:

configuring an input/output interface; the input and output interface is used for transmitting the first switching signal or the second switching signal to the analog switch.

In one embodiment, the computer program when executed by the processor further performs the steps of:

acquiring the internal use number of the ADC and the external calling number of the ADC;

and determining a target ADC interface according to the internal use number of the ADC and the external calling number of the ADC.

In one embodiment, the computer program when executed by the processor further performs the steps of:

monitoring and responding to the operation event; the operation event is obtained by receiving external interface transmission.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:设备接入检测控制方法、系统及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!