Sampling control circuit, sampling control method, chip and electronic equipment

By adjusting the sampling frequency of the sampling phase group in the sampling control circuit, the high power consumption and invalid data problems caused by the fixed number of times in the sampling timing are solved, and lower power consumption and more efficient use of storage resources are achieved.

CN118971868APending Publication Date: 2024-11-15CHIPSEA TECH SHENZHEN CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411105991.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, the sampling phase group appears in a fixed number of times in each sampling period of the sampling timing, resulting in excessive power consumption and generation of invalid sampling result data, occupying storage resources.

Method used

Through the sampling control circuit and method, including a sampling adjustment module and a sampling generation module, the enable configuration data and frequency division configuration data are obtained based on the sampling scene data, the sampling control signal is generated, and the sampling frequency of each sampling phase group in the sampling timing is individually adjusted.

Benefits of technology

The sampling frequency of the sampling phase group is reduced, power consumption is reduced, and the generation of invalid sampling result data is reduced, and storage resource occupation is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971868A_ABST
    Figure CN118971868A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a sampling control circuit, a sampling control method, a chip and electronic equipment, and the sampling control circuit comprises a sampling control module, a sampling configuration module, a sampling adjustment module and a sampling generation module. Enabling configuration data and frequency division configuration data of a sampling phase group are obtained through a sampling adjustment module according to the sampling scene data, and corresponding sampling control signals are generated through a sampling generation module according to frequency division counting results of the sampling type configuration data, the enabling configuration data and the frequency division configuration data; the sampling frequency of each sampling phase group in each sampling period of the sampling time sequence can be independently adjusted, so that the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a sampling control circuit, a sampling control method, a chip and an electronic device. Background Art

[0002] Pulse Repetition Frequency (PRF) refers to the number of pulses emitted per second. The PRF can be used as a sampling frequency to control the sampling timing.

[0003] Each sampling sequence may include one or more sampling periods. However, the number of occurrences of the sampling phase group in each sampling period of a sampling sequence is fixed, which leads to the problem of excessive power consumption. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a sampling control circuit, a sampling control method, a chip and an electronic device to solve the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0005] In a first aspect, an embodiment of the present application provides a sampling control circuit, which includes a sampling control module, a sampling configuration module, a sampling adjustment module and a sampling generation module, wherein the sampling control module is used to output sampling scenario data; the sampling configuration module is used to obtain sampling type configuration data of a sampling phase group according to the sampling scenario data; the sampling adjustment module is used to obtain enable configuration data and frequency division configuration data of the sampling phase group according to the sampling scenario data; the sampling generation module is used to generate a corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enable configuration data and the frequency division configuration data.

[0006] In a second aspect, an embodiment of the present application also provides a sampling control method, which includes: outputting sampling scenario data; acquiring sampling type configuration data of a sampling phase group based on the sampling scenario data; acquiring enable configuration data and frequency division configuration data of the sampling phase group based on the sampling scenario data; and generating a corresponding sampling control signal based on the frequency division counting results of the sampling type configuration data, the enable configuration data and the frequency division configuration data.

[0007] In a third aspect, an embodiment of the present application further provides a chip, which includes the above-mentioned sampling control circuit.

[0008] In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a device body and the above-mentioned chip or sampling control circuit provided in the device body.

[0009] The sampling control circuit, sampling control method, chip and electronic device provided in the embodiments of the present application obtain the enabling configuration data and frequency division configuration data of the sampling phase group according to the sampling scene data through the sampling adjustment module, and generate the corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enabling configuration data and the frequency division configuration data through the sampling generation module. The sampling frequency of each sampling phase group in each sampling period of the sampling timing can be adjusted separately, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0010] Furthermore, compared with the situation where the sampling phase groups appear in each sampling period of a sampling sequence, the sampling frequency of each sampling phase group in each sampling period of the sampling sequence is adjusted separately, so that the sampling frequency of some sampling phase groups can be reduced, thereby reducing power consumption.

[0011] Furthermore, compared with the situation where the sampling phase group appears in each sampling cycle of a sampling sequence, more invalid sampling result data will be generated, which will occupy more storage resources. By adjusting the sampling frequency of each sampling phase group, invalid sampling result data generated by some sampling phase groups can be avoided, thereby reducing the occupancy of storage resources.

[0012] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 A first schematic diagram of a sampling timing in the related art is shown.

[0015] Figure 2 A second schematic diagram of a sampling sequence in the related art is shown.

[0016] Figure 3 A first principle block diagram of a sampling control circuit provided in an embodiment of the present application is shown.

[0017] Figure 4 The schematic diagram of the sampling and adjustment module is shown.

[0018] Figure 5 The principle block diagram of the enabling configuration unit and the frequency division configuration unit is shown.

[0019] Figure 6Shows the principle block diagram of the sampling generation module.

[0020] Figure 7 The principle block diagram of the frequency division counting unit is shown.

[0021] Figure 8 Shows the functional block diagram of the sampling control module.

[0022] Fig. 9 shows the functional block diagram of the sampling configuration module.

[0023] Fig.10 A second principle block diagram of the sampling control circuit provided in an embodiment of the present application is shown.

[0024] Fig.11 A first schematic diagram of a sampling timing provided in an embodiment of the present application is shown.

[0025] Fig.12 A second schematic diagram of the sampling timing provided in an embodiment of the present application is shown.

[0026] Fig.13 A third schematic diagram of the sampling timing provided in an embodiment of the present application is shown.

[0027] Fig.14 A flow chart of a sampling control method provided in an embodiment of the present application is shown.

[0028] Fig.15 The structure diagram of the chip provided in the embodiment of the present application is shown.

[0029] Fig.16 A structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0030] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0031] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0032] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0033] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0034] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.

[0035] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.

[0036] It should be noted that, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.

[0037] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0038] Figure 1The first schematic diagram of sampling timing in the related art is shown. It shows the pulse repetition frequency sampling timing PRF0 in a typical sampling scenario. In a sampling cycle shown by PRF0-1, for function point 1, only one or more groups of cyclic sampling of the sampling phase group (1) shown by PRF0-2 are performed. When the sampling requirement changes, the master control can switch the sampling timing of function point 1 to another function point 2 through configuration by sending down register configuration, so as to perform new function point sampling.

[0039] In summary, Figure 1 The pulse repetition frequency sampling sequence PRF0 shown implements the sampling and circulation of a single function point. When the sampling function needs to be switched, a new set of sampling sequences for configuring the switching function points can be sent by the main control to adapt to the new sampling scenario.

[0040] However, there is no further division within the pulse repetition frequency sampling sequence PRF0, and sampling of multiple function points cannot be performed within the same sampling sequence. Moreover, during the sampling cycle, some sampling phase groups cannot be enabled or disabled to meet the power consumption control requirements. When switching different function points, the sampling phases of the same sampling phase group before and after the switching cannot be guaranteed to be equally spaced, and the sampling accuracy will also be affected.

[0041] Figure 2 The second schematic diagram of the sampling timing in the related art is shown. In the pulse repetition frequency sampling timing PRF1, the time period where the pulse in PRF1-1 is located is a sampling period, and the time period where each pulse in PRF1-2 is located is a functional subset, and a functional subset represents a sampling phase group (PHASE GROUP). It can be seen that in a sampling period shown in PRF1-1, and in PRF1-2, 5 identical "1" functional subsets are repeated, that is, PRF1-2 shows that the same sampling phase group participates in 5 repeated samplings.

[0042] It can be seen that the number of times the sampling phase group appears in each sampling period of a sampling sequence is fixed, that is, the same sampling phase group appears in each sampling period of a sampling sequence, which makes it impossible to adjust the sampling frequency of the same sampling phase group in each sampling period of a sampling sequence.

[0043] However, in actual application scenarios, the sampling frequency requirements of each sampling phase group are inconsistent. For example, the resting heart rate detection group needs to appear in every sampling cycle, and the device temperature detection group only needs to appear once every 10 sampling cycles. Therefore, if the detection frequency of the sampling phase group in different scenarios cannot be flexibly configured, then in the actual sampling process, additional power consumption will be generated, and a lot of redundant sampling result data will be generated. These redundant sampling result data also need to be stored and processed, wasting storage space. If the sampling frequency is adjusted by switching the sampling phase group, additional configuration is required, which takes up the master control time.

[0044] Figure 3 The first principle block diagram of the sampling control circuit 100 provided by the embodiment of the present application is shown. The sampling control circuit 100 includes a sampling control module 10, a sampling configuration module 20, a sampling adjustment module 30 and a sampling generation module 40. The sampling control module 10 is connected to the sampling configuration module 20 and the sampling adjustment module 30, and the sampling generation module 40 is connected to the sampling configuration module 20 and the sampling adjustment module 30. The sampling adjustment module 30 acquires the enabling configuration data and the frequency division configuration data of the sampling phase group according to the sampling scene data, and the sampling generation module 40 generates the corresponding sampling control signal according to the sampling type configuration data, the enabling configuration data and the frequency division counting result of the frequency division configuration data, so that the sampling frequency of each sampling phase group in each sampling period of the sampling timing can be adjusted separately, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0045] The present application embodiment provides a sampling control circuit 100, see Figures 3 to 13 ,like Figure 3 As shown, the sampling control circuit 100 includes a sampling control module 10, a sampling configuration module 20, a sampling adjustment module 30 and a sampling generation module 40. The sampling control module 10 is used to output sampling scenario data; the sampling configuration module 20 is used to obtain sampling type configuration data of the sampling phase group according to the sampling scenario data; the sampling adjustment module 30 is used to obtain enable configuration data and frequency division configuration data of the sampling phase group according to the sampling scenario data; the sampling generation module 40 is used to generate a corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enable configuration data and the frequency division configuration data.

[0046] It can be understood that the sampling control circuit 100 provided in the embodiment of the present application can separately adjust the sampling frequency of each sampling phase group in each sampling period of the sampling timing by acquiring the enabling configuration data and the frequency division configuration data of the sampling phase group according to the sampling scenario data through the sampling adjustment module 30, and generating the corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enabling configuration data and the frequency division configuration data through the sampling generation module 40, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0047] Furthermore, compared with the situation where the sampling phase groups appear in each sampling period of a sampling sequence, the sampling frequency of each sampling phase group in each sampling period of the sampling sequence is adjusted separately, so that the sampling frequency of some sampling phase groups can be reduced, thereby reducing power consumption.

[0048] Furthermore, compared with the situation where the sampling phase group appears in each sampling cycle of a sampling sequence, more invalid sampling result data will be generated, which will occupy more storage resources. By adjusting the sampling frequency of each sampling phase group, invalid sampling result data generated by some sampling phase groups can be avoided, thereby reducing the occupancy of storage resources.

[0049] It should be noted that the sampling type configuration data is a code value representing each sampling phase group, which may include at least one of device wearing detection configuration data, resting heart rate detection configuration data, blood sample detection configuration data, and temperature detection configuration data. One sampling type configuration data represents a sampling phase group, and the sampling phase group may be exemplarily a device wearing detection group, a resting heart rate detection group, a blood sample detection group, or a temperature detection group. For example, the device wearing detection configuration data of 001 may exemplarily represent the device wearing detection group, the resting heart rate detection configuration data of 010 may exemplarily represent the resting heart rate detection group, the blood sample detection configuration data of 011 may exemplarily represent the blood sample detection group, and the temperature detection configuration data of 111 may exemplarily represent the temperature detection group.

[0050] The enabling configuration data may be a code value representing the working state of the sampling phase group, and a set of enabling configuration data may represent the working state of a sampling phase group. For example, the enabling configuration data of 00 may exemplarily represent that the working state of a sampling phase group is an idle state, the enabling configuration data of 01 may exemplarily represent that the working state of a sampling phase group is an enabled state, and the enabling configuration data of 10 may exemplarily represent that the working state of a sampling phase group is a disabled state.

[0051] The idle state indicates that the sampling phase group appears in the corresponding sampling period and occupies the corresponding sampling duration, but no sampling operation is performed. The enabled state indicates that the sampling phase group appears in the corresponding sampling period and occupies the corresponding sampling duration, and the sampling operation is performed. The disabled state indicates that the sampling phase group does not appear in the corresponding sampling period, does not occupy the corresponding sampling duration, and does not perform a sampling operation.

[0052] The frequency division configuration data may be a code value characterizing the number of occurrences of a sampling phase group in a sampling period, and a frequency division configuration data may represent the number of occurrences of a sampling phase group in a sampling period. For example, the frequency division configuration data of 1111 may exemplarily represent that a sampling phase group appears once in each sampling period, the frequency division configuration data of 1110 may exemplarily represent that a sampling phase group appears once in every two sampling periods, the frequency division configuration data of 1100 may exemplarily represent that a sampling phase group appears once in every M sampling periods, and the frequency division configuration data of 1000 may exemplarily represent that a sampling phase group appears once in every N sampling periods. M and N are both integers greater than or equal to 3.

[0053] The sampling scenario data may include sampling type configuration data, enabling configuration data and frequency division configuration data. As the sampling scenario data changes, at least one of the sampling type configuration data, enabling configuration data and frequency division configuration data will change accordingly.

[0054] The frequency division counting result is used to count the frequency division configuration data of each sampling phase group to determine in which sampling periods the sampling phase group should appear or not appear, thereby ensuring that each sampling phase group accurately appears or does not appear in the corresponding sampling period.

[0055] In one embodiment, if Figure 4 As shown, the sampling adjustment module 30 includes an enabling configuration unit 31 and a frequency division configuration unit 32. The enabling configuration unit 31 is used to generate enabling configuration data according to the sampling scenario data; the frequency division configuration unit 32 is used to generate frequency division configuration data according to the sampling scenario data.

[0056] It should be noted that the enabling configuration unit 31 can be connected to the sampling control module 10 to receive the sampling scene data. The frequency division configuration unit 32 can also be connected to the sampling control module 10 to receive the sampling scene data.

[0057] In one embodiment, if Figure 5As shown, the enable configuration unit 31 includes an enable configuration register 311, which stores enable configuration data, and the enable configuration data is used to control the working state of the sampling phase group; the frequency division configuration unit 32 includes a frequency division configuration register 321, which stores frequency division configuration data, and the frequency division configuration data is used to control the sampling frequency of the sampling phase group.

[0058] It should be noted that this embodiment uses memories such as the enable configuration register 311 to construct the enable configuration unit 31 , and uses memories such as the frequency division configuration register 321 to construct the frequency division configuration unit 32 , which simplifies the structure of the sampling adjustment module 30 .

[0059] In one embodiment, if Figure 6 As shown, the sampling generation module 40 includes a frequency division counting unit 41 and a generation unit 42. The frequency division counting unit 41 is used to calculate the number of occurrences of the sampling type configuration data in the sampling period according to the frequency division configuration data to obtain the frequency division counting result; the generation unit 42 is used to generate a sampling control signal according to the enable configuration data and the frequency division counting result.

[0060] It should be noted that the frequency division counting unit 41 is connected to the frequency division configuration register 321 to obtain the frequency division configuration data. The generation unit 42 is connected to the enable configuration register 311 to obtain the enable configuration data. The generation unit 42 is connected to the frequency division counting unit 41 to transmit the sampling type configuration data and the frequency division counting result.

[0061] In one embodiment, if Figure 7 As shown, the frequency division counting unit 41 includes a plurality of frequency division counters 411 , each of which is used to count the number of occurrences of a sampling type configuration data in a sampling period.

[0062] It should be noted that, for example, a sampling sequence includes the first sampling cycle to the tenth sampling cycle that appear in sequence, and the sampling frequency of a sampling type configuration data in the sampling cycle is once every two sampling cycles. Then, when the first sampling cycle arrives, the number of occurrences can increase or decrease by 1, and when the counting threshold is reached, the sampling type configuration data will be configured to appear in the first sampling cycle; when the second sampling cycle arrives, the number of occurrences can increase or decrease by 1. Since the counting threshold is not reached, the sampling type configuration data will not be configured to appear in the second sampling cycle. By analogy, it is possible to accurately determine which sampling type configuration data should appear in which sampling cycle, thereby realizing the adjustable sampling frequency of the sampling phase group.

[0063] In one embodiment, if Figure 8As shown, the sampling control module 10 includes a storage unit 11, a comparison unit 12 and a calling unit 13. The storage unit 11 is used to store preset data and sampling result data, and the sampling result data is obtained by sampling according to the sampling control signal; the comparison unit 12 is used to obtain the comparison result between the preset data and the sampling result data; the calling unit 13 is used to call and output the sampling scene data according to the comparison result.

[0064] It should be noted that the sampling result data can be transmitted to the sampling control module 10 via the sampling generation module 40, or directly transmitted from the sampling end to the sampling control module 10. In the case where the comparison result is that the preset data is inconsistent with the sampling result data, the new sampling scenario data can be called and output by the calling unit 13 to change various sampling parameters in real time according to the needs of the sampling scenario, for example, the number and type of the sampling phase group can be changed by the sampling type configuration data, the working state of the sampling phase group can be changed by the enable configuration data, and the sampling frequency of the sampling phase group in the sampling period can be changed by the frequency division configuration data.

[0065] In one embodiment, if Fig. 9 As shown, the sampling configuration module 20 includes a plurality of sampling configuration registers 21, and the sampling configuration registers 21 are used to store sampling type configuration data.

[0066] It should be noted that, in this implementation, the sampling type configuration data can be refreshed in real time according to the sampling scenario data, and the switching of the sampling scenarios can also be realized flexibly and quickly.

[0067] Fig.10 A second principle block diagram of the sampling control circuit 100 provided in an embodiment of the present application is shown. When the sampling control module 10 receives new sampling result data, the storage unit 11 will cache the sampling result data to compare with the preset data through the comparison unit 12, and then the calling unit 13 will output new sampling scene data according to the comparison result, or will not output the sampling scene data and still use the previous sampling scene data.

[0068] When sampling scene data arrives, each sampling configuration register 21 in the sampling configuration module 20 will update the existing storage content to the new sampling type configuration data. If no sampling scene data arrives, each sampling configuration register 21 will keep the previous sampling type configuration data.

[0069] When the sampling scene data arrives, the sampling adjustment module 30 will also refresh the previously stored enabling configuration data and frequency division configuration data in the enabling configuration register 311 and the frequency division configuration register 321 .

[0070] The generation unit 42 in the sampling generation module 40 selects the sampling type configuration data appearing in the current sampling cycle from the sampling configuration module 20 according to the enable configuration data, and then the frequency division counting unit 41 calculates the number of occurrences of each sampling type configuration data in the sampling cycle according to the frequency division configuration data to obtain the frequency division counting result. The generation unit 42 generates a sampling control signal according to the selected sampling type configuration data, the enable configuration data and the frequency division counting result. The sampling control signal can flexibly adjust the sampling frequency of each sampling phase group in the sampling cycle.

[0071] Fig.11 The first schematic diagram of the sampling timing provided by the embodiment of the present application is shown. It shows a pulse repetition frequency sampling timing PRF3. In a sampling period shown in PRF3-1, PRF3-2 is configured with X different sampling phase groups, and the sampling frequencies are exemplarily configured for these sampling phase groups. For example, sampling phase group (1) is configured to appear in each sampling period, and its sampling frequency is 1. Exemplarily, this sampling frequency can be used for resting heart rate detection, etc. Sampling phase group (2) is configured to appear once every two sampling periods, and its sampling frequency is 1 / 2. Sampling phase group (3) is configured to appear once every M sampling periods, and its sampling frequency is 1 / M. Similarly, sampling phase group (X) can be configured to appear once in any N sampling periods, and its sampling frequency is 1 / N.

[0072] In summary, according to the needs of different sampling scenarios, the sampling frequency of the sampling phase group can be flexibly configured in the pulse repetition frequency sampling timing, which reduces the power consumption of the sampling phase group fully turned on in one sampling cycle and reduces the configuration time of switching different sampling phase groups. At the same time, since there is no need to save or output the data of all sampling phase groups in one sampling cycle, the storage and output of related sampling result data are optimized.

[0073] Fig.12 A second schematic diagram of a sampling sequence provided by an embodiment of the present application is shown. It shows a pulse repetition frequency sampling sequence PRF4. In a sampling cycle shown by PRF4-0, PRF4-1 is configured with three different sampling phase groups, and corresponding sampling frequencies are exemplarily configured for these sampling phase groups. For example, sampling phase group (1) is configured to appear in each sampling cycle. Sampling phase group (2) is configured to appear once every two sampling cycles. Sampling phase group (3) is configured to appear once every three sampling cycles.

[0074] In the first sampling cycle shown in PRF4-2, sampling phase group (1) is in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (2) and sampling phase group (3) are both in the idle state. Although no sampling operations are performed, they still occupy the corresponding sampling time.

[0075] In the second sampling cycle shown in PRF4-3, sampling phase group (1) and sampling phase group (2) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (3) is in the idle state, although no sampling operation is performed, it still occupies the corresponding sampling time.

[0076] In the third sampling cycle shown in PRF4-4, sampling phase group (1) and sampling phase group (3) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (2) is in the idle state, although no sampling operation is performed, it still occupies the corresponding sampling time.

[0077] In the fourth sampling cycle shown in PRF4-5, sampling phase group (1) and sampling phase group (2) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (3) is in the idle state, although no sampling operation is performed, it still occupies the corresponding sampling time.

[0078] It should be noted that since the sampling phase group (2) or the sampling phase group (3) in the idling state still occupies the corresponding sampling time, the sampling time interval can be kept consistent in the subsequent sampling sequence.

[0079] Fig.13 A third schematic diagram of the sampling timing provided by an embodiment of the present application is shown. It shows a pulse repetition frequency sampling timing PRF5. In a sampling cycle shown by PRF5-0, PRF5-1 is configured with 3 different sampling phase groups, and the sampling frequencies are exemplarily configured for these sampling phase groups. For example, sampling phase group (1) is configured to appear in each sampling cycle. Sampling phase group (2) is configured to appear once every two sampling cycles. Sampling phase group (3) is configured to appear once every three sampling cycles.

[0080] In the first sampling cycle shown in PRF5-2, sampling phase group (1) is in an enabled state, which will occupy a corresponding time and perform sampling operations; while sampling phase group (2) and sampling phase group (3) are both in a disabled state, and no sampling operations are performed, nor do they occupy the corresponding sampling time.

[0081] In the second sampling cycle shown in PRF5-3, sampling phase group (1) and sampling phase group (2) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (3) is in the disabled state, does not perform sampling operations, and does not occupy the corresponding sampling time.

[0082] In the third sampling cycle shown in PRF5-4, sampling phase group (1) and sampling phase group (3) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (2) is in the disabled state, does not perform sampling operations, and does not occupy the corresponding sampling time.

[0083] In the fourth sampling cycle shown in PRF5-5, sampling phase group (1) and sampling phase group (2) are both in the enabled state, which will occupy the corresponding time and perform sampling operations; while sampling phase group (3) is in the disabled state, which will not perform sampling operations and will not occupy the corresponding sampling time.

[0084] It should be noted that since the sampling phase group (2) or the sampling phase group (3) in the disabled state does not occupy the sampling duration, its sampling duration will be used by the subsequent sampling phase group in its subsequent sampling sequence.

[0085] The occupied area of ​​the allocation configuration unit and the frequency division counting unit 41 is positively correlated with the number of sampling phase groups, and the allocation configuration unit and the frequency division counting unit 41 can be increased or reduced according to application requirements.

[0086] The present application also provides a sampling control method, such as Fig.14 As shown, the sampling control method includes the following steps:

[0087] Step S10: Output the sampled scene data.

[0088] Step S20: Acquire sampling type configuration data of the sampling phase group according to the sampling scene data.

[0089] Step S30: acquiring the enabling configuration data and the frequency division configuration data of the sampling phase group according to the sampling scene data.

[0090] Step S40: Generate a corresponding sampling control signal according to the sampling type configuration data, the enabling configuration data and the frequency division counting result of the frequency division configuration data.

[0091] It can be understood that the sampling control method provided in the embodiment of the present application can adjust the sampling frequency of each sampling phase group in each sampling period of the sampling timing separately by acquiring the enable configuration data and frequency division configuration data of the sampling phase group according to the sampling scenario data, and generating the corresponding sampling control signal by the frequency division counting result according to the sampling type configuration data, the enable configuration data and the frequency division configuration data, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0092] Furthermore, compared with the situation where the sampling phase groups appear in each sampling period of a sampling sequence, the sampling frequency of each sampling phase group in each sampling period of the sampling sequence is adjusted separately, so that the sampling frequency of some sampling phase groups can be reduced, thereby reducing power consumption.

[0093] Furthermore, compared with the situation where the sampling phase group appears in each sampling cycle of a sampling sequence, more invalid sampling result data will be generated, which will occupy more storage resources. By adjusting the sampling frequency of each sampling phase group, invalid sampling result data generated by some sampling phase groups can be avoided, thereby reducing the occupancy of storage resources.

[0094] The present application embodiment also provides a chip 200, such as Fig.15 As shown, the chip 200 includes the above-mentioned sampling control circuit 100. The chip 200 is also called an integrated circuit (IC), and the chip 200 can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip.

[0095] It can be understood that since the chip 200 provided in the embodiment of the present application includes the above-mentioned sampling control circuit 100, it is also possible to obtain the enable configuration data and frequency division configuration data of the sampling phase group according to the sampling scenario data through the sampling adjustment module 30, and generate the corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enable configuration data and the frequency division configuration data through the sampling generation module 40, and the sampling frequency of each sampling phase group in each sampling period of the sampling timing can be adjusted separately, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0096] Furthermore, compared with the situation where the sampling phase groups appear in each sampling period of a sampling sequence, the sampling frequency of each sampling phase group in each sampling period of the sampling sequence is adjusted separately, so that the sampling frequency of some sampling phase groups can be reduced, thereby reducing power consumption.

[0097] Furthermore, compared with the situation where the sampling phase group appears in each sampling cycle of a sampling sequence, more invalid sampling result data will be generated, which will occupy more storage resources. By adjusting the sampling frequency of each sampling phase group, invalid sampling result data generated by some sampling phase groups can be avoided, thereby reducing the occupancy of storage resources.

[0098] The present application embodiment also provides an electronic device 300, such as Fig.16As shown, the electronic device 300 includes a device body and the above-mentioned sampling control circuit 100 or chip 200 provided in the device body. The electronic device 300 can be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a USB (Universal Serial Bus) docking station, a stylus, a true wireless headset, a car central control screen, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights.

[0099] It can be understood that since the electronic device 300 provided in the embodiment of the present application includes the above-mentioned sampling control circuit 100 or chip 200, it is also possible to obtain the enable configuration data and frequency division configuration data of the sampling phase group according to the sampling scene data through the sampling adjustment module 30, and generate the corresponding sampling control signal according to the frequency division counting result of the sampling type configuration data, the enable configuration data and the frequency division configuration data through the sampling generation module 40, and the sampling frequency of each sampling phase group in each sampling period of the sampling timing can be adjusted separately, thereby solving the technical problem that the sampling frequency of the sampling phase group is difficult to flexibly adjust.

[0100] Furthermore, compared with the situation where the sampling phase groups appear in each sampling period of a sampling sequence, the sampling frequency of each sampling phase group in each sampling period of the sampling sequence is adjusted separately, so that the sampling frequency of some sampling phase groups can be reduced, thereby reducing power consumption.

[0101] Furthermore, compared with the situation where the sampling phase group appears in each sampling cycle of a sampling sequence, more invalid sampling result data will be generated, which will occupy more storage resources. By adjusting the sampling frequency of each sampling phase group, invalid sampling result data generated by some sampling phase groups can be avoided, thereby reducing the occupancy of storage resources.

[0102] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A sampling control circuit, characterized in that: The sampling control circuit comprises: A sampling control module, the sampling control module is used to output sampling scene data; A sampling configuration module, the sampling configuration module is used to obtain sampling type configuration data of a sampling phase group according to the sampling scene data; A sampling adjustment module, the sampling adjustment module is used to obtain the enabling configuration data and the frequency division configuration data of the sampling phase group according to the sampling scenario data; A sampling generation module is used to generate a corresponding sampling control signal according to the sampling type configuration data, the enabling configuration data and the frequency division counting result of the frequency division configuration data.

2. The sampling control circuit according to claim 1, characterized in that: The sampling adjustment module comprises: an enabling configuration unit, the enabling configuration unit being configured to generate the enabling configuration data according to the sampled scenario data; A frequency division configuration unit is used to generate the frequency division configuration data according to the sampled scene data.

3. The sampling control circuit according to claim 2, characterized in that: The enabling configuration unit comprises an enabling configuration register, wherein the enabling configuration register stores the enabling configuration data, and the enabling configuration data is used to control the working state of the sampling phase group; The frequency division configuration unit includes a frequency division configuration register, and the frequency division configuration register stores the frequency division configuration data, and the frequency division configuration data is used to control the sampling frequency of the sampling phase group.

4. The sampling control circuit according to claim 1, characterized in that: The sampling generation module comprises: A frequency division counting unit, the frequency division counting unit is used to calculate the number of occurrences of the sampling type configuration data in a sampling period according to the frequency division configuration data to obtain the frequency division counting result; A generating unit, the generating unit is used to generate the sampling control signal according to the enabling configuration data and the frequency division counting result.

5. The sampling control circuit according to claim 4, characterized in that: The frequency division counting unit includes a plurality of frequency division counters, each of which is used to count the number of occurrences of the sampling type configuration data in a sampling period.

6. The sampling control circuit according to any one of claims 1 to 5, characterized in that: The sampling control module comprises: A storage unit, the storage unit is used to store preset data and sampling result data, the sampling result data is obtained by sampling according to the sampling control signal; A comparison unit, the comparison unit is used to obtain a comparison result between the preset data and the sampling result data; A calling unit is used to call and output the sampled scene data according to the comparison result.

7. The sampling control circuit according to any one of claims 1 to 5, characterized in that: The sampling configuration module includes a plurality of sampling configuration registers, and the sampling configuration registers are used to store the sampling type configuration data.

8. A sampling control method, characterized in that: The sampling control method comprises: Output sampling scene data; Acquire sampling type configuration data of a sampling phase group according to the sampling scenario data; Acquire the enabling configuration data and the frequency division configuration data of the sampling phase group according to the sampling scenario data; A corresponding sampling control signal is generated according to the sampling type configuration data, the enable configuration data and the frequency division counting result of the frequency division configuration data.

9. A chip, characterized in that: The chip comprises the sampling control circuit according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The electronic device comprises a device body and the chip according to claim 9 disposed in the device body.

Citation Information

Cited By

  • Sampling control method and device, energy storage device, storage medium and program product

    CN121856828A