Circuit assembly and electronic equipment
By designing circuit components, the voltage divider circuit and main control circuit are used to automatically detect the connection status between the sub-board and the motherboard, solving the problems of high detection costs and poor timeliness in the prior art, and achieving efficient and automatic connection status detection.
Patent Information
- Application Number
- CN202510118888.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-06
AI Technical Summary
The existing method of detecting poor connection between the sub-board and the motherboard requires a lot of time and labor costs, and it is impossible to detect poor connections in a timely manner.
Design a circuit component, including a motherboard, a subboard, a connector component, a voltage divider circuit and a main control circuit. Through the cooperation of the voltage divider circuit and the main control circuit, the connection status between the sub-board and the main board is automatically detected, and the preset voltage value is output to determine the connection status.
It realizes automatic detection of the connection status between the sub-board and the motherboard, improves detection efficiency, reduces labor and time costs, and can promptly detect poor connections.
Smart Images

Figure CN119936738A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment and circuit detection, and in particular to a circuit component and electronic equipment. Background Art
[0002] Nowadays, electronic products are getting smaller and smaller, so designers have to modularize product functions and assign the modularized modules to sub-boards. When the functions of electronic products cannot be realized, it may be caused by poor connection between the sub-board and the main board. The conventional method to check poor connection is manual regular inspection, but manual regular inspection takes a lot of time and manpower costs, and there is a possibility that the poor connection between the sub-board and the main board cannot be detected in time. Summary of the invention
[0003] The main purpose of the present application is to propose a circuit assembly and an electronic device, which aims to solve the technical problem that the existing method of detecting poor connection between a sub-board and a main board requires a lot of time and manpower costs.
[0004] To achieve the above object, the present application proposes a circuit component, the circuit component comprising:
[0005] a main board and at least one sub-board, wherein the main board and the sub-board are connected to each other via a connector assembly;
[0006] At least one voltage divider circuit, wherein a first end of the voltage divider circuit is connected to a power supply end, and a second end of the voltage divider circuit is connected to a ground end;
[0007] Each of the voltage divider circuits comprises a first circuit segment arranged on the main board and a second circuit segment arranged on each of the sub-boards, and the first circuit segment and the second circuit segment are connected to each other through the connector assembly when the main board and the sub-board are connected;
[0008] A main control circuit is connected to the voltage divider output terminal of the voltage divider circuit; the main control circuit is used to determine the connection state between the secondary board and the main board according to the voltage divider signal output by the voltage divider circuit.
[0009] In one embodiment, the main control circuit is used to determine that the connection state between the sub-board and the main board is a normal state when the voltage value output by the voltage divider circuit is a first preset voltage value; the main control circuit is used to determine that the connection state between the sub-board and the main board is a disconnected state when the voltage output by the voltage divider circuit is a second preset voltage.
[0010] In one embodiment, the connector assembly includes a first connector and a second connector, the first connector is provided on the main board, and the second connector is provided on the sub-board; the voltage divider circuit includes a first voltage divider element and a second voltage divider element, the first end of the first voltage divider element is the first end of the voltage divider circuit; the second end of the first voltage divider element is connected to the first connector, the first end of the second voltage divider element is connected to the second connector, and the second end of the second voltage divider element is the second end of the voltage divider circuit; any node of the connection line between the first voltage divider element and the second voltage divider element is the voltage divider output end of the voltage divider circuit;
[0011] The section connected by the power supply end, the first voltage divider element and the first connector is the first line section; the section connected by the second voltage divider element, the second connector and the grounding end is the second line section; or, the section connected by the power supply end, the first voltage divider element and the first connector is the second line section, and the section connected by the second connector, the second voltage divider element and the grounding end is the first line section; or, the second end of the first voltage divider element is connected to the first end of the second voltage divider element, the second end of the second voltage divider element is connected to the first connector, and the second connector is grounded; the section connected by the power supply end, the first voltage divider element, the second voltage divider element and the first connector is the first line section; the section from the second connector to the grounding end is the second line section.
[0012] In one embodiment, the first voltage dividing element and the second voltage dividing element are resistors respectively.
[0013] In one embodiment, one of the power terminal and the ground terminal is disposed on the main board, and the other is disposed on the sub-board.
[0014] In one embodiment, the main control circuit is provided on the main board, and when there are multiple sub-boards, there are correspondingly multiple voltage divider circuits, and the main control circuit includes a main controller and a multiplexing circuit;
[0015] The multiplexing circuit has a plurality of signal input terminals and at least one signal output terminal, the plurality of signal input terminals are connected one-to-one with the voltage divider output terminals of the plurality of voltage divider circuits; the signal output terminal is connected with the signal input terminal of the main controller;
[0016] The multiplexing circuit is used to convert the voltage signals output by the multiple voltage-dividing circuits into codes with a preset number of bits, and output them to the main controller;
[0017] The main controller determines the connection status between the plurality of sub-boards and the main board according to the code of the preset number of bits.
[0018] In one embodiment, the multiplexing circuit comprises:
[0019] A plurality of comparison circuits, wherein the first input terminals of the plurality of comparison circuits are connected to a reference voltage, and the second input terminals of the plurality of comparison circuits are connected to the voltage-dividing output terminals of the plurality of voltage-dividing circuits in a one-to-one correspondence;
[0020] A multiplexing module, wherein the multiplexing module has a plurality of input terminals and at least one signal output terminal, the plurality of input terminals of the multiplexing module are connected to the output terminals of the plurality of comparison circuits in a one-to-one correspondence, and the signal output terminal is connected to the signal input terminal of the main controller;
[0021] The comparison circuit is used to compare the reference voltage with the voltage output by the voltage divider circuit, and output a corresponding level signal according to the comparison result;
[0022] The multiplexing module is used to convert the level signals output by the plurality of comparison circuits into codes with a preset number of bits, and output the codes to the main controller;
[0023] The main controller is used to determine the connection status between the sub-board and the main board according to the code of preset bits.
[0024] In one embodiment, the circuit assembly further comprises:
[0025] A prompt module is electrically connected to the main control circuit, and the main control circuit is used to control the prompt module to perform corresponding actions according to the connection status between the secondary board and the main board to prompt the connection status between the secondary board and the main board.
[0026] In one embodiment, the connector assembly is a flexible printed circuit board.
[0027] The present application also proposes an electronic device, comprising any circuit component described above.
[0028] The circuit assembly of the present application includes a main board and at least one sub-board, the main board and the sub-board are connected to each other through a connector assembly; at least one voltage divider circuit, the first end of the voltage divider circuit is connected to the power supply end, and the second end of the voltage divider circuit is connected to the ground end; each voltage divider circuit includes a first line segment arranged on the main board and a second line segment arranged on each sub-board, and the first line segment and the second line segment are connected to each other through the connector assembly when the main board and the sub-board are connected; a main control circuit, the main control circuit is connected to the voltage divider output end of the voltage divider circuit; the main control circuit is used to determine the connection state between the sub-board and the main board according to the voltage divider signal output by the voltage divider circuit. In this way, when the connection state between the sub-board and the main board is disconnected, the connection between the first line segment and the second line segment is disconnected, so that the structure of the voltage divider circuit changes, and the voltage output by the voltage divider circuit also changes accordingly, and the main control circuit determines the connection state between the sub-board and the main board according to the voltage output by the voltage divider circuit. In actual applications, the circuit component of the present application can automatically detect the connection status between the sub-board and the main board of an electronic device, thereby detecting a poor connection between the sub-board and the main board at the first time, improving the efficiency of detecting the connection status between the sub-board and the main board, and eliminating the need for manual periodic detection, thereby reducing the manpower and time costs required for detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0030] Figure 1 This is a schematic diagram of a module according to an embodiment of the present application;
[0031] Figure 2 This is a module schematic diagram of another embodiment of the present application;
[0032] Figure 3 This is a module diagram of another embodiment of the present application;
[0033] Figure 4 This is a module diagram of an embodiment of the present application;
[0034] Figure 5 This is a module schematic diagram of another embodiment of the present application;
[0035] Figure 6 This is a module schematic diagram of another embodiment of the present application;
[0036] Figure 7 This is a schematic diagram of a circuit structure of another embodiment of the present application;
[0037] Figure 8 This is a module schematic diagram of another embodiment of the present application;
[0038] Fig. 9 This is a module diagram of another embodiment of the present application.
[0039] Description of Figure Numbers:
[0040] 10. Voltage-dividing circuit; 11. First voltage-dividing element; 12. Second voltage-dividing element; 20. First line segment; 30. Second line segment; 40. Main control circuit; 41. Main controller; 42. Multiplexing circuit; 421. Multiplexing module; 422. Comparison circuit; 50. Connector assembly; 51. First connector; 52. Second connector.
[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0044] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0045] Nowadays, electronic products are getting smaller and smaller, so designers have to modularize product functions and assign the modularized modules to sub-boards. When the functions of electronic products cannot be realized, it may be caused by poor connection between the sub-board and the main board. The conventional method to check poor connection is manual regular inspection, but manual regular inspection takes a lot of time and manpower costs, and there is a possibility that the poor connection between the sub-board and the main board cannot be detected in time.
[0046] To this end, the present application proposes a circuit assembly and an electronic device, aiming to solve the technical problem that the existing method of detecting poor connection between a sub-board and a main board requires a lot of time and manpower costs.
[0047] In one embodiment of the present application, the circuit assembly includes: a main board and at least one sub-board, wherein the main board and the sub-board are connected to each other via a connector assembly 50;
[0048] At least one voltage divider circuit 10, wherein a first end of the voltage divider circuit 10 is connected to a power supply end, and a second end of the voltage divider circuit 10 is connected to a ground end;
[0049] Each of the voltage divider circuits 10 includes a first circuit segment 20 disposed on the main board and a second circuit segment 30 disposed on each of the sub-boards, and the first circuit segment 20 and the second circuit segment 30 are connected to each other through the connector assembly 50 when the main board and the sub-board are connected;
[0050] The main control circuit 40 is connected to the voltage divider output terminal of the voltage divider circuit 10; the main control circuit 40 is used to determine the connection state between the sub-board and the main board according to the voltage divider signal output by the voltage divider circuit 10.
[0051] In this embodiment, one of the power supply terminal and the ground terminal is provided on the main board, and the other is provided on the sub-board. The circuit assembly further includes a constant voltage source, the power supply terminal is the output terminal of the constant voltage source, and the output terminal of the constant voltage source is connected to the first terminal of the voltage divider circuit 10, thereby providing a stable voltage for the voltage divider circuit 10, and the constant voltage source can be implemented by a power supply circuit such as an LDO (linear regulator).
[0052] In the present embodiment, the voltage divider circuit 10 is composed of a plurality of voltage divider elements connected in series, one of the first line segment 20 and the second line segment 30 is the first segment of the line composed of the power supply end, the plurality of voltage divider elements and the ground end, and the other is the second segment of the line composed of the power supply end, the plurality of voltage divider elements and the ground end. When the connection state between the sub-board and the main board is in the disconnected state, the first line segment 20 is disconnected from the second line segment 30, resulting in the structure of the voltage divider circuit 10 being changed, so that the voltage output by the voltage divider circuit 10 changes. In this way, when the connection state between the sub-board and the main board is in the normal state, the voltage output by the voltage divider circuit 10 is set to the first preset voltage, and when the connection state between the sub-board and the main board is in the disconnected state, the voltage output by the voltage divider circuit 10 is set to the second preset voltage. The main control circuit 40 is used to determine that the connection state between the sub-board and the main board is in the normal state when the voltage value output by the voltage divider circuit 10 is the first preset voltage value; the main control circuit 40 is used to determine that the connection state between the sub-board and the main board is in the disconnected state when the voltage output by the voltage divider circuit 10 is the second preset voltage. For example, referring to Figure 1 , the main control circuit 40 and the power supply terminal are arranged on the main board, the ground terminal is arranged on the sub-board, the voltage divider circuit 10 includes two voltage divider elements respectively arranged on the sub-board and the main board, the first line segment 20 includes the power supply terminal and the voltage divider element arranged on the main board, the second line segment 30 includes the voltage divider element arranged on the sub-board and the ground terminal, the main control circuit 40 is electrically connected to the connection between the two voltage divider elements, wherein the voltage divider output terminal OUT of the voltage divider circuit 10 is any node of the connection line between the voltage divider element located on the main board and the connector assembly 50. When the connection state between the sub-board and the main board is normal, the voltage detected by the main control circuit 40 is the voltage of the voltage divider element located on the sub-board; when the connection state between the sub-board and the main board is disconnected, the voltage detected by the main control circuit 40 is the voltage of the power supply terminal, so the above-mentioned first preset voltage should be set to the voltage of the voltage divider element located on the sub-board, and the second preset voltage should be set to the voltage of the power supply terminal. For another example, refer to Figure 2 , the power supply terminal is located on the sub-board, the main control circuit 40 and the ground terminal are located on the main board, the first line segment 20 includes the ground terminal and the voltage divider element located on the main board, the second line segment 30 includes the voltage divider element located on the sub-board and the power supply terminal, the main control circuit 40 is electrically connected to the connection between the two voltage dividers, wherein the voltage divider output terminal OUT of the voltage divider circuit 10 is any node of the connection line between the voltage divider element located on the main board and the connector assembly 50. When the connection state between the sub-board and the main board is normal, the voltage detected by the main control circuit 40 is the voltage of the voltage divider element located on the main board, so the above-mentioned first preset voltage is the voltage of the voltage divider element located on the main board; when the connection state between the sub-board and the main board is disconnected, the path between the voltage on the main board and the power supply terminal is disconnected, so that the voltage detected by the main control circuit is zero. In this way, the first preset voltage should be set to the voltage of the voltage divider element located on the main board, and the second preset voltage should be set to zero.
[0053] In this embodiment, when there are multiple sub-boards, the number of voltage divider circuits 10 corresponds to the number of sub-boards, and each voltage divider circuit 10 includes a first line segment 20 and a second line segment 30, and the first line segment 20 of each voltage divider circuit 10 is located on the main board, and the second line segment 20 is located on any one of the multiple sub-boards. Figure 3 , the main control circuit 40 and the power supply terminal are arranged on the main board, the ground terminal is arranged on the sub-board, each voltage-dividing circuit 10 includes two voltage-dividing elements arranged on the sub-board and the main board respectively, the first line segment 20 includes the power supply terminal and the voltage-dividing element arranged on the main board, the second line segment 30 includes the voltage-dividing element arranged on the sub-board and the ground terminal, the main control circuit 40 has a plurality of signal input terminals, which are respectively connected to the voltage-dividing output terminals OUT of the plurality of voltage-dividing circuits 10. When the connection state between one of the sub-boards and the main board is in the disconnected state, the second line segment 30 on the sub-board is disconnected from the corresponding first line segment 20 on the main board, and the main control circuit 40 detects that the voltage signal changes from the voltage of the voltage-dividing element to the voltage of the power supply terminal through the signal input terminal connected to the voltage-dividing output terminal OUT of the voltage-dividing circuit 10 corresponding to the sub-board, and determines that the connection state between the sub-board and the main board is in the disconnected state.
[0054] In this embodiment, the main control circuit 40 can be implemented by a main controller, such as MCU (Microcontroller Unit), DSP (Digital Signal Process), FPGA (Field Programmable Gate Array), SOC (System On Chip), etc. The main controller has an ADC interface for connecting to the voltage divider output terminal of the voltage divider circuit 10, and the ADC interface is used for the main controller to collect the voltage output by the voltage divider circuit 10.
[0055] In this embodiment, optionally, the connector assembly 50 can be implemented by a connector, such as a B2B connector or a ZIP connector, the connector includes a male connector and a female connector, one of the male connector and the female connector is arranged on the sub-board, and the other is arranged on the main board, and the male connector is arranged by snapping with the female connector to connect the sub-board and the main board together. Optionally, the connector assembly 50 can also be implemented by a flexible circuit board, such as an FPC soft board, and the FPC soft board is connected to the sub-board and the main board respectively by a combination of hard and soft, that is, after the FPC soft board is stacked with the sub-board and the main board respectively, a specific pressing device is used to press them under set temperature, pressure, time and other conditions, so that they are tightly combined into a whole. With such a configuration, replacing the above-mentioned male connector and female connector with a flexible circuit board can save two connectors, which is conducive to the miniaturization design of electronic equipment.
[0056] The circuit assembly of the present application includes a main board and a sub-board, the main board and the sub-board are connected to each other through a connector assembly 50; a voltage divider circuit 10, the first end of the voltage divider circuit 10 is connected to the power supply end, and the second end of the voltage divider circuit 10 is connected to the ground end; the voltage divider circuit 10 is arranged on a first line segment 20 on the main board and a second line segment 30 on the sub-board, and the first line segment 20 and the second line segment 30 are connected to each other through the connector assembly 50 when the main board and the sub-board are connected; a main control circuit 40, the main control circuit 40 is connected to the voltage divider output end of the voltage divider circuit 10; the main control circuit 40 is used to determine the connection state between the sub-board and the main board according to the voltage divider signal output by the voltage divider circuit 10. In this way, when the connection state between the sub-board and the main board is disconnected, the connection between the first line segment 20 and the second line segment 30 is disconnected, so that the structure of the voltage divider circuit 10 changes, and the voltage output by the voltage divider circuit 10 also changes accordingly, and the main control circuit 40 determines the connection state between the sub-board and the main board according to the voltage output by the voltage divider circuit 10. In actual applications, the circuit component of the present application can automatically detect the connection status between the sub-board and the main board of an electronic device, thereby detecting a poor connection between the sub-board and the main board at the first time, improving the efficiency of detecting the connection status between the sub-board and the main board, and eliminating the need for manual periodic detection, thereby reducing the manpower and time costs required for detection.
[0057] In addition, the circuit assembly may further include a prompt module, and the main control circuit 40 controls the prompt module to perform corresponding actions according to the connection status between the sub-board and the main board, so as to prompt the user of the connection status between the sub-board and the main board. For example, when the prompt module includes a display screen, the main control circuit 40 controls the display screen to display words according to the connection status between the sub-board and the main board, so as to prompt the user of the connection status between the sub-board and the main board in real time. For another example, when the prompt module includes a speaker, when the connection status between the sub-board and the main board is disconnected, the main control circuit 40 controls the speaker to play a corresponding voice to prompt the user that the connection status between the sub-board and the main board is disconnected. With such a setting, in actual applications, the user can learn about the poor connection between the sub-board and the main board at the first time, without the need for manual regular detection, thereby reducing the labor cost and time cost required for detection.
[0058] In one embodiment of the present application, the connector assembly 50 includes a first connector 51 and a second connector 52, the first connector 51 is arranged on the main board, and the second connector 52 is arranged on the sub-board; the voltage divider circuit 10 includes a first voltage divider element 11 and a second voltage divider element 12, the first end of the first voltage divider element 11 is the first end of the voltage divider circuit 10; the second end of the first voltage divider element 11 is connected to the first connector 51, the first end of the second voltage divider element 12 is connected to the second connector 52, and the second end of the second voltage divider element 12 is the second end of the voltage divider circuit 10; any node of the connecting line between the first voltage divider element 11 and the second voltage divider element 12 is the voltage divider output end of the voltage divider circuit 10.
[0059] In one embodiment, reference Figure 4 , when the power supply terminal is located on the main board and the ground terminal is located on the sub-board, the section connected by the power supply terminal, the first voltage divider element 11 and the first connector 51 is the first line section 20; the section connected by the second voltage divider element 12, the second connector 52 and the ground terminal is the second line section 30, and the main control circuit 40 is connected to the second end of the first voltage divider circuit 11, wherein the voltage divider output end OUT of the voltage divider circuit 10 is any node of the connection line between the first voltage divider element 11 and the first connector 51. When the connection state between the sub-board and the main board is normal, the electrical connection path between the main control circuit 40 and the second voltage divider element 12 is connected, so that the voltage detected by the main control circuit 40 is the voltage of the second voltage divider element 12, that is, the first preset voltage of the above embodiment; when the connection state between the sub-board and the main board is disconnected, the electrical connection path between the main control circuit 40 and the second voltage divider circuit 12 is disconnected, so that the voltage detected by the main control circuit 40 is the voltage of the power supply terminal, that is, the second preset voltage of the above embodiment.
[0060] In another embodiment, reference Figure 5, when the power supply end is located on the sub-board and the ground end is located on the main board, the section connected by the power supply end, the first voltage divider element 11 and the first connector 51 is the second line section 20, the section connected by the second connector 51, the second voltage divider element 12 and the ground end is the first line section, and the main control circuit 40 is connected to the first end of the second voltage divider element 12, wherein the voltage divider output end OUT of the voltage divider circuit 10 is any node of the connection line between the second voltage divider element 12 and the second connector 52. When the connection state between the sub-board and the main board is normal, the electrical connection path between the second voltage divider element 12 and the power supply end is connected, so that the voltage detected by the main control circuit 40 is the voltage of the second voltage divider element 12, that is, the first preset voltage of the above embodiment; when the connection state between the sub-board and the main board is disconnected, the path between the second voltage divider element 12 and the power supply end is disconnected, and the voltage electrical connection path between the second voltage divider element 12 and the power supply end is disconnected, so that the second voltage divider element 12 cannot divide the voltage of the power supply end, and the voltage detected by the main control circuit 40 is zero, that is, the second preset voltage of the above embodiment.
[0061] In another embodiment, reference Figure 6 , the second end of the first voltage-dividing element 11 is connected to the first end of the second voltage-dividing element 12, the second end of the second voltage-dividing element 12 is connected to the first connector 51, the second connector 52 is grounded, the section connected by the power supply end, the first voltage-dividing element 11, the second voltage-dividing element 12 and the first connector 51 is the first line section 20; the section from the second connector 52 to the ground end is the second line section 30, wherein the voltage-dividing output end OUT of the voltage-dividing circuit 10 is any node of the connection line between the first voltage-dividing element 11 and the second voltage-dividing element 12. When the connection state between the sub-board and the main board is normal, the electrical connection between the second voltage-dividing element 12 and the main control circuit 40 is turned on, so that the voltage detected by the main control circuit 40 is the voltage of the second voltage-dividing element 12, that is, the first preset voltage of the above embodiment; when the connection state between the sub-board and the main board is disconnected, the second voltage-dividing element 12 is not grounded, so that the electrical connection between the second voltage-dividing element 12 and the main control circuit 40 is disconnected, and the voltage detected by the main control circuit 40 is the voltage of the power supply end, that is, the second preset voltage of the above embodiment.
[0062] In this embodiment, the first voltage dividing element 11 and the second voltage dividing element 12 are resistors. Figure 7, the first voltage-dividing element 11 includes a first resistor R1, the second voltage-dividing element 12 includes a second resistor R2, the first end of the first resistor R1 is connected to the power supply end, the second end of the first resistor R1 is connected to the second end of the second resistor R2, and the first end of the second resistor R2 is connected to the ground end, wherein the voltage-dividing output end OUT of the voltage-dividing circuit 10 is any node of the connection line between the first resistor R1 and the first connector 51. Assuming that the section connected by the power supply end, the first resistor R1 and the first connector 51 is the first line section 20; the section from the second connector 52, the second resistor R2 to the ground end is the second line section 30, when the connection state between the sub-board and the main board is a normal state, the voltage output by the voltage-dividing circuit 10 is the voltage of the second resistor R2, that is, the first preset voltage of the above embodiment; when the connection state between the sub-board and the main board is a disconnected state, the voltage output by the voltage-dividing circuit 10 is the voltage of the power supply end, that is, the second preset voltage of the above embodiment.
[0063] In this embodiment, when the connector assembly 50 is a connector, one of the first connector 51 and the second connector 52 is a male connector, and the other is a female connector. The male connector is arranged by snapping with the female connector to connect the sub-board and the main board together. When the connector assembly 50 is a flexible circuit board, one of the first connectors 51 is a flexible circuit board, and the second connector 52 is a conductive part provided on the sub-board or the main board. The flexible circuit board is connected to the conductive part of the sub-board or the main board by the above-mentioned soft-hard combination method.
[0064] When there are multiple sub-boards, there should also be multiple voltage divider circuits 10, and multiple voltage divider circuits 10 will occupy multiple signal transmission terminals (GPIO interfaces) of the main control circuit 40. However, since the signal transmission terminal resources of the main control circuit 40 are limited, excessive occupation of signal transmission terminals may result in other key components or functions of the electronic device being unable to obtain sufficient resources.
[0065] In this regard, in one embodiment of the present application, the main control circuit 40 is provided on the main board. When there are multiple sub-boards, there are multiple voltage divider circuits 10. The main control circuit 40 includes a main controller 41 and a multiplexing circuit 42.
[0066] The multiplexing circuit 42 has a plurality of signal input terminals and at least one signal output terminal, wherein the plurality of signal input terminals are connected to the voltage dividing output terminals of the plurality of voltage dividing circuits 10 in a one-to-one correspondence; the signal output terminal is connected to the signal input terminal of the main controller 41;
[0067] The multiplexing circuit 42 is used to convert the voltage signals output by the multiple voltage dividing circuits 10 into codes with a preset number of bits, and output them to the main controller 41;
[0068] The main controller 41 determines the connection status between the plurality of sub-boards and the main board according to the code of the preset number of bits.
[0069] In this embodiment, the multiplexing circuit 42 is used to convert the voltage signals output by the plurality of voltage divider circuits 10 into codes with a preset number of bits, which is less than the number of the voltage divider circuits 10. The codes with fewer bits require fewer signal transmission terminals to reduce the occupation of the signal transmission terminals of the main controller 41. Figure 8 , a section connected by the power supply end, the first voltage divider element 11 and the first connector 51 is the first line section 20; a section connected by the second connector 52, the second voltage divider element 12 and the ground end is the second line section 30, the number of sub-boards is 8, when the connection state between the sub-board A1 and the main board is disconnected, and the connection state between other sub-boards and the main board is normal, the voltage output by the voltage divider circuit 10 corresponding to the sub-board A1 is the voltage of the power supply end, and the voltage output by other voltage divider circuits 10 is the voltage of the second voltage divider element 12. Since the voltage of the power supply end is higher than the voltage of the second voltage divider element 12, the multiplexing circuit 42 can convert the 8 received voltages into an 8-bit binary code of 00000001, and convert the 8-bit binary code into a binary code with fewer bits. The code with fewer bits requires fewer signal transmission ends to reduce the occupation of the signal transmission end of the main controller 41.
[0070] Optionally, in one embodiment, the multiplexing circuit 42 can be implemented by using multiple unidirectional level converters and PLD / FPGA (Programmable Logic Device / Field Programmable Gate Array), and the output voltages of multiple voltage divider circuits 10 are converted into binary codes of corresponding digits by multiple unidirectional level converters, and the digits are the same as the number of voltage divider circuits 10, and then the binary codes of corresponding digits are converted into binary codes of preset digits by PLD / FPGA (Programmable Logic Device / Field Programmable Gate Array). Among them, PLD / FPGA can output the binary codes of preset digits to the main controller 41 through at least one signal output terminal. It can be understood that the number of signal output terminals of the multiplexing circuit 42 is equal to the number of signal output terminals of the PLD / FPGA.
[0071] In another embodiment, the multiplexing circuit 42 includes: multiple comparison circuits 422, the first input terminals of the multiple comparison circuits 422 are connected to the reference voltage, and the second input terminals of the multiple comparison circuits 422 are connected one-to-one with the voltage divider output terminals of the multiple voltage divider circuits 10; a multiplexing module 421, the multiplexing module 421 has multiple input terminals and at least one signal output terminal, the multiple input terminals of the multiplexing module 421 are connected one-to-one with the output terminals of the multiple comparison circuits 422, and the signal output terminal is connected to the signal input terminal of the main controller 41; the comparison circuit 422 is used to compare the reference voltage with the voltage output by the voltage divider circuit 10, and output a corresponding level signal according to the comparison result; the multiplexing module 421 is used to convert the level signal output by the multiple comparison circuits 422 into a code of a preset number of bits, and output it to the main controller 41; the main controller 41 is used to determine the connection status between the sub-board and the main board according to the code of the preset number of bits.
[0072] The comparison circuit 422 can be implemented by at least one comparison circuit 422, and the multiplexing module 421 can be implemented by an encoder, such as a 2-4 encoder, a 3-8 encoder, or a 4-16 encoder. The number of signal output terminals of the multiplexing module 421 is equal to the number of signal output terminals of the encoder. Fig. 9 The multiplexing module 421 can be implemented by a 3-8 encoder. The 3-8 encoder has 8 signal input terminals and 3 signal output terminals. The 3-8 encoder is used to convert the 8-bit level signal output by the 8 comparison circuits 422 into a 3-bit binary code. Assume that the inverting terminal of the comparison circuit 422 is connected to the reference voltage, and the in-phase terminal is connected to the voltage divider output terminal of the voltage divider circuit 10. When the auxiliary board A1 is disconnected from the main board, the voltage at the in-phase terminal of the comparison circuit 422 corresponding to the auxiliary board A1 is the voltage at the power supply terminal. Since the voltage at the power supply terminal is greater than the reference voltage, the comparison circuit 422 outputs a level signal 1, while the level signals output by the comparison circuits 422 corresponding to other auxiliary boards are 0. The 3-8 encoder converts the 8-bit binary code of 00000001 into a 3-bit binary code of 000. After receiving 000, the main controller 41 determines that the connection state between the auxiliary board A1 and the main board is disconnected. With such configuration, compared with the eight comparison circuits 422 occupying eight signal transmission terminals of the main controller 41 , the 3-8 encoder only needs to occupy three signal transmission terminals of the main controller 41 , thereby reducing the occupation of the signal transmission terminals of the main controller 41 .
[0073] The present application also provides an electronic device, comprising the circuit assembly described above.
[0074] It is worth noting that since the electronic device of the present application is based on the above-mentioned circuit components, the embodiments of the electronic device of the present application include all technical solutions of all embodiments of the above-mentioned circuit components, and the technical effects achieved are also exactly the same, which will not be repeated here.
[0075] The above description is only an exemplary embodiment of the present application and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A circuit assembly, characterized in that: The circuit assembly comprises: a main board and at least one sub-board, wherein the main board and the sub-board are connected to each other via a connector assembly; At least one voltage divider circuit, wherein a first end of the voltage divider circuit is connected to a power supply end, and a second end of the voltage divider circuit is connected to a ground end; Each of the voltage divider circuits comprises a first circuit segment arranged on the main board and a second circuit segment arranged on each of the sub-boards, and the first circuit segment and the second circuit segment are connected to each other through the connector assembly when the main board and the sub-board are connected; A main control circuit is connected to the voltage divider output terminal of the voltage divider circuit; the main control circuit is used to determine the connection state between the secondary board and the main board according to the voltage divider signal output by the voltage divider circuit.
2. The circuit assembly according to claim 1, wherein: The main control circuit is used to determine that the connection state between the sub-board and the main board is a normal state when the voltage value output by the voltage divider circuit is a first preset voltage value; the main control circuit is used to determine that the connection state between the sub-board and the main board is a disconnected state when the voltage output by the voltage divider circuit is a second preset voltage.
3. The circuit assembly according to claim 1, wherein: The connector assembly includes a first connector and a second connector, one of the first connector and the second connector is arranged on the main board, and the other of the first connector and the second connector is arranged on the sub-board; the voltage divider circuit includes a first voltage divider element and a second voltage divider element, the first end of the first voltage divider element is the first end of the voltage divider circuit; the second end of the first voltage divider element is connected to the first connector, the first end of the second voltage divider element is connected to the second connector, and the second end of the second voltage divider element is the second end of the voltage divider circuit; any node of the connection line between the first voltage divider element and the second voltage divider element is the voltage divider output end of the voltage divider circuit; The section connected by the power supply end, the first voltage divider element and the first connector is the first line section; the section connected by the second voltage divider element, the second connector and the grounding end is the second line section; or, the section connected by the power supply end, the first voltage divider element and the first connector is the second line section, and the section connected by the second connector, the second voltage divider element and the grounding end is the first line section; or, the second end of the first voltage divider element is connected to the first end of the second voltage divider element, the second end of the second voltage divider element is connected to the first connector, and the second connector is grounded; the section connected by the power supply end, the first voltage divider element, the second voltage divider element and the first connector is the first line section; the section from the second connector to the grounding end is the second line section.
4. The circuit assembly according to claim 3, wherein: The first voltage dividing element and the second voltage dividing element are resistors respectively.
5. The circuit assembly according to claim 1, wherein: One of the power supply terminal and the ground terminal is arranged on the main board, and the other is arranged on the auxiliary board.
6. The circuit assembly according to any one of claims 1 to 5, characterized in that: The main control circuit is arranged on the main board. When there are multiple sub-boards, there are correspondingly multiple voltage divider circuits. The main control circuit includes a main controller and a multiplexing circuit. The multiplexing circuit has a plurality of signal input terminals and at least one signal output terminal, the plurality of signal input terminals are connected one-to-one with the voltage divider output terminals of the plurality of voltage divider circuits; the signal output terminal is connected with the signal input terminal of the main controller; The multiplexing circuit is used to convert the voltage signals output by the multiple voltage-dividing circuits into codes with a preset number of bits, and output them to the main controller; The main controller determines the connection status between the plurality of sub-boards and the main board according to the code of the preset number of bits.
7. The circuit assembly according to claim 6, wherein: The multiplexing circuit comprises: A plurality of comparison circuits, wherein the first input terminals of the plurality of comparison circuits are connected to a reference voltage, and the second input terminals of the plurality of comparison circuits are connected to the voltage-dividing output terminals of the plurality of voltage-dividing circuits in a one-to-one correspondence; A multiplexing module, wherein the multiplexing module has a plurality of input terminals and at least one output terminal, the plurality of input terminals of the multiplexing module are connected to the output terminals of the plurality of comparison circuits in a one-to-one correspondence, and the signal output terminal is connected to the signal input terminal of the main controller; The comparison circuit is used to compare the reference voltage with the voltage output by the voltage divider circuit, and output a corresponding level signal according to the comparison result; The multiplexing module is used to convert the level signals output by the plurality of comparison circuits into codes with a preset number of bits, and output the codes to the main controller; The main controller is used to determine the connection status between the sub-board and the main board according to the code of preset bits.
8. The circuit assembly according to claim 1, wherein: The circuit assembly further comprises: A prompt module is electrically connected to the main control circuit, and the main control circuit is used to control the prompt module to perform corresponding actions according to the connection status between the secondary board and the main board to prompt the connection status between the secondary board and the main board.
9. The circuit assembly according to claim 1, wherein: The connector assembly is a flexible circuit board.
10. An electronic device, characterized in that: Comprising the circuit assembly according to any one of claims 1 to 9.