A peripheral circuit, chip and control method of DSP chip

By introducing selectors and buffers into the peripheral circuit of the DSP chip, combined with the DAC control module, the problems of complex operation and low configurability in the existing technology are solved, high integration and versatility are achieved, and digital-to-analog interaction is improved. and reusability.

CN117852471BActive Publication Date: 2024-12-20北京中科昊芯科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410033557.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2024-12-20
Estimated Expiration
2044-01-09

Smart Images

  • Figure CN117852471B_ABST
    Figure CN117852471B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a peripheral circuit, product and control method of a DSP chip, wherein the peripheral circuit includes: a DAC module, configured to convert an input digital signal into an analog output signal; a second selector, a first input terminal connected to the output terminal of the DAC module, and a second input terminal connected to a first external voltage to be compared; a comparator, a positive input terminal connected to a second external voltage to be compared, and a negative input terminal connected to the output terminal of the second selector; a buffer, an input terminal connected to the output terminal of the DAC module. The embodiment of the present application connects the DAC module and the comparator through a selector, and routes the analog output of the DAC module to the outside of the circuit through a buffer Buffer, and the multifunctional application of the peripheral circuit can be realized through relevant configuration, and the coordination of each component is retained in the same circuit module, while the independence of each component is guaranteed, so that the integration is higher and the area is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chips. Specifically, embodiments of the present application relate to a peripheral circuit, product, and control method of a DSP chip. Background Art

[0002] In digital signal processing technology, comparators are used in circuits such as peak current detection, overcurrent protection, and power factor correction. Different applications use comparators in different ways.

[0003] In the patent publication number: CN110034766B, the invention name is "A comparator circuit and a comparator circuit control method", a correlator circuit is disclosed. The main parts of the circuit are a comparator and a DAC, which are connected by switches, resistors and capacitors. The two working states of the circuit can be controlled by controlling the opening and closing of multiple switches.

[0004] It is not difficult to understand that the above patent realizes two working modes through a manual switch, which has a small area and low cost, but the actual operation requires manual intervention. When faced with application scenarios that require more digital-analog interaction and more working states, the invention has problems such as complex operation and low configurability. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a peripheral circuit, chip and control method of a DSP chip. The embodiments of the present application connect a DAC module and a comparator through a selector, and route the analog output of the DAC module to the outside of the circuit through a buffer Buffer. The multifunctional application of the peripheral circuit can be realized through relevant configuration. In the same circuit module, the coordination of various components is retained and the independence of each component is guaranteed, so the integration is higher and the area is saved.

[0006] In a first aspect, an embodiment of the present application provides a peripheral circuit of a DSP chip, the peripheral circuit comprising: a DAC module, configured to convert an input digital signal into an analog output signal; a second selector, a first input terminal connected to the output terminal of the DAC module, and a second input terminal connected to a first external voltage to be compared; a comparator, a positive input terminal connected to a second external voltage to be compared, and a negative input terminal connected to the output terminal of the second selector; a buffer, an input terminal connected to the output terminal of the DAC module.

[0007] Some embodiments of the present application introduce a selector between the digital-to-analog conversion circuit (i.e., DAC module) and the comparator, so that the peripheral circuit can independently implement the following functions: comparator function, independently implement the function of the digital-to-analog conversion circuit, or independently implement the function of the digital-to-analog conversion circuit while using a buffer to monitor the function of the digital-to-analog conversion circuit in real time, or comprehensively implement the comprehensive functions of the digital-to-analog conversion circuit and the comparator.

[0008] In some embodiments, the peripheral circuit further includes: a first selector, a third input terminal for inputting an internal reference source, a fourth input terminal for inputting an external reference source, and an output terminal connected to a reference source input terminal of the DAC module.

[0009] Some embodiments of the present application may also introduce a selector to control the digital-to-analog conversion circuit and realize more peripheral circuit functions.

[0010] In some embodiments, the peripheral circuit further includes: a DAC control module, an output end of which is connected to a digital input end of the DAC module and is configured to provide a digital input to the DAC module through digital logic.

[0011] Some embodiments of the present application also generate digital signals by introducing a DAC control module, thereby adjusting the waveform of the signal output by the digital-to-analog conversion module to improve the effect of digital-to-analog conversion.

[0012] In some embodiments, the second selector is configured to select one of the analog output signal and the first external voltage to be compared as the second selector output signal under the control of a selection signal.

[0013] In some embodiments, the first selector is configured to select one of the internal reference source and the external reference source as a reference source input signal of the DAC module under the control of a selection signal.

[0014] In a second aspect, some embodiments of the present application provide a DSP chip, the chip comprising a peripheral circuit as described in any embodiment of the first aspect and a DSP core, wherein the DSP core and the peripheral circuit are connected via a bus.

[0015] In a third aspect, some embodiments of the present application provide a method for controlling the working mode of a multi-function peripheral circuit, the method being applied to a product as described in an embodiment of the second aspect, the method comprising: a core in a DSP chip configures the peripheral circuit through a bus so that the peripheral circuit can be used as: a comparator, a digital-to-analog converter, or an integrated circuit that outputs a monitored analog signal.

[0016] In some embodiments, the core in the DSP chip configures the peripheral circuit through the bus, including: setting the selection signal SEL of the second selector MUX2 to zero, setting the enable signal EN of the buffer Buffer to zero, and setting the enable of the DAC module to zero, so that the peripheral circuit is used as a comparator.

[0017] In some embodiments, the core in the DSP chip configures the peripheral circuit through the bus, including: turning off the second selector MUX2 enable, turning off the comparator enable, turning on the buffer Buffer and the DAC module enable, using the peripheral circuit as a separate DAC module, and outputting the target voltage waveform through a DAC control module connected to the DAC module.

[0018] In some embodiments, the core in the DSP chip configures the peripheral circuit through the bus, including: turning on the DAC module and the comparator enable, setting the selection SEL signal of the second selector MUX2 high, wherein the positive voltage of the comparator is the external input voltage value, and the negative voltage is the target voltage output by the DAC control module to control the digital-to-analog conversion DAC.

[0019] In some embodiments, the core in the DSP chip configures the peripheral circuits through a bus, including: turning on a buffer Buffer enable to monitor the voltage output by the DAC module. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 A circuit diagram of a peripheral circuit of a DSP chip provided in an embodiment of the present application;

[0022] Figure 2 The DAC control module provided in the embodiment of the present application self-generates an incremental data waveform;

[0023] Figure 3 A diagram showing the composition of a DSP chip according to an embodiment of the present application;

[0024] Figure 4 This is a diagram of the composition architecture of the DAC control module provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0026] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0027] Different from the related art that adjusts the peripheral circuit manually or in other ways, the peripheral circuit provided in some embodiments of the present application can be used as a peripheral module of the DSP chip, aiming to achieve a circuit design with better digital-analog interactivity and more reusable functions. Compared with the prior art that is implemented in the form of ASIC, the peripheral circuit provided in the embodiments of the present application can be used as a DSP chip analog peripheral, and the core can realize different circuit functions through the above control operations, with higher digital-analog interactivity and smaller circuit area.

[0028] Please see Figure 1 , Figure 1 Peripheral circuits of a DSP chip provided in some embodiments of the present application.

[0029] The embodiment of the present application provides a peripheral circuit of a DSP chip, wherein the peripheral circuit includes: Figure 1 Shown: DAC module, second selector MUX2 and comparator.

[0030] The DAC module is configured to convert an input digital signal into an analog output signal.

[0031] The second selector has a first input terminal connected to the output terminal of the DAC module, and a second input terminal connected to the first external voltage to be compared CMP_INN.

[0032] The comparator has a positive input terminal and a second external voltage to be compared (i.e. Figure 1 The negative phase input terminal is connected to the output terminal of the second selector.

[0033] The buffer Buffer has an input end connected to the output end of the DAC module, and an output end thereof is DAC_OUT.

[0034] It is not difficult to understand that some embodiments of the present application can enable the peripheral circuit to independently implement the following functions by introducing a selector between the digital-to-analog conversion circuit (i.e., DAC module) and the comparator: comparator function, independent implementation of the digital-to-analog conversion circuit function, or independent implementation of the digital-to-analog conversion circuit function while using a buffer to monitor the digital-to-analog conversion circuit function in real time, or comprehensive implementation of the comprehensive functions of the digital-to-analog conversion circuit and the comparator.

[0035] In order to increase the configuration mode of the DAC module to realize more functions, in some embodiments of the present application, such as Figure 1 As shown, the peripheral circuit also includes: a first selector MUX1, and the third input terminal of the first selector is used to input the internal reference source REF_IN, the fourth input terminal is used to input the external reference source REF_EX, and the output terminal is connected to the reference source input terminal of the DAC module.

[0036] That is to say, some embodiments of the present application may also introduce a selector to control the digital-to-analog conversion circuit and realize more peripheral circuit functions.

[0037] In order to improve the waveform of the signal output by the DAC module, in some embodiments of the present application, Figure 1 As shown, the peripheral circuit also includes: a DAC control module, whose output end is connected to the digital input end of the DAC module and is configured to provide digital input to the DAC module through digital logic.

[0038] For example, in some embodiments of the present application, the structure of the DAC control module is as follows: Figure 4 As shown in the figure, the DAC control module includes a DAC value register, a DAC digital self-increment logic and a selector, wherein the selector obtains an output off signal under the control of the Sel selection signal. Figure 4 To DAC in the figure is the signal output to the DAC module. Figure 4 The DAC control module is directly connected to the DSP chip core through the bus. The DAC digital register is used to receive the 12-bit value written directly to the module by the core through the bus as the digital input of the DAC. The DAC value self-increment logic module has its own internal self-increment logic, which can increase the DAC digital input number from 0 to the required value step by step, and the maximum value and the increment unit each time can be configured by the core.

[0039] It is not difficult to understand that some embodiments of the present application also generate digital signals by introducing a DAC control module, thereby adjusting the waveform of the signal output by the digital-to-analog conversion module to improve the effect of digital-to-analog conversion.

[0040] It should be noted that, in some embodiments of the present application, the second selector is configured to select one of the analog output signal and the first external voltage to be compared as the second selector output signal under the control of a selection signal. In some embodiments of the present application, the first selector is configured to select one of the internal reference source and the external reference source as the reference source input signal of the DAC module under the control of a selection signal.

[0041] That is to say, Figure 1As shown, some embodiments of the present application provide a peripheral circuit of a DSP chip, including: a comparator, a DAC module, a DAC control module, a buffer Buffer, and a selector MUX, wherein the positive input of the comparator can be directly connected to an external voltage to be compared, and the negative input is connected to a second selector MUX2, the high bit of the input of the second selector MUX2 is connected to the output of the DAC module, and the low bit is connected to the external voltage source to be compared. The output of the DAC module is divided into two paths, one connected to the second selector MUX2, and the other connected to the buffer Buffer. The digital input of the DAC module is connected to the DAC control module, and the reference source of the DAC module is connected to the output of the first selector MUX1, the high bit of the input of the first selector MUX1 is connected to the internal reference source, and the low bit is connected to the external reference source. Figure 1 The process of configuring to obtain a multifunctional circuit exemplarily includes: in some embodiments of the present application, the reference source of the DAC module can select internal and external reference sources through the selection signal SEL signal of the first selector MUX1, and can realize different functions through the selection signal SEL signal of the second selector MUX2 and the enable signal EN signal of the buffer Buffer, the selection signal SEL signal of the second selector MUX2 is set to zero, the enable EN of the buffer Buffer is set to zero, and the DAC module enable is set to zero, and the comparator can be used alone to compare the voltages of CMP_INP and CMP_INN; the second selector MUX2 is turned off, comparator is turned off, buffer and DAC module are turned on, and it can be used as a separate DAC module, and the desired voltage waveform is output through the DAC control module; turn off buffer, DAC module and comparator, set the second selector MUX2's selection SEL signal high, the DAC module and comparator are used together, the comparator's positive voltage is input from the outside, and the negative voltage can be controlled by the DAC control module to control the DAC to output the desired voltage waveform. In this mode, the buffer can also be turned on to monitor the DAC output voltage.

[0042] The following briefly describes the technical advantages of the technical solution of this application in combination with the above technical means:

[0043] Some embodiments of the present application use a second selection module MUX2 to realize the connection between the DAC module and the comparator. The negative input source of the comparator can be controlled by the selection SEL signal of the second selector MUX2. This technical point can realize the coordinated operation of the DAC and the comparator while ensuring the independence of the comparator. In the required application scenario, the comparator can be used alone.

[0044] In some embodiments of the present application, a buffer is connected to the output end of the DAC module, and the analog output of the DAC module can be routed to other external circuits by turning on the buffer. This technical point ensures the independence of the DAC module. In required application scenarios, the DAC module can be used alone, and this technical point can also be used as an observable point inside the circuit to monitor the output results of the DAC module in real time.

[0045] The DAC control module in some embodiments of the present application is a digital logic module that provides digital input for the DAC module. The module can generate the required decrement or increment data by itself, or the user can write data by itself. When the DAC control module generates increment data by itself, the output waveform is as follows: Figure 2 As shown in the figure, the DAC control module has its own self-increment logic. The two bold horizontal lines above and below the figure represent the DAC digital input value range, 0x0000~0xFFFF, the middle non-bold horizontal line represents the comparator positive input voltage, and the sawtooth line is the comparator negative input voltage. The positive input voltage remains unchanged, and the negative input voltage changes with the change of the DAC digital input data. Figure 2 In the sawtooth curve, when the positive phase voltage is greater than the negative phase voltage, the comparator output (CMP_OUT) is high, and when the positive phase voltage is less than the negative phase voltage, the comparator output is low.

[0046] In some embodiments of the present application, the peripheral circuit can be used as an analog peripheral of the DSP chip, and the core on the DSP chip can configure the circuit operation mode and monitoring state of the peripheral circuit through the bus. The connection diagram is as follows: Figure 3 shown.

[0047] like Figure 3 As shown, some embodiments of the present application provide a DSP chip, the chip comprising a peripheral circuit as described in any embodiment of the first aspect and a DSP core, wherein the DSP core and the peripheral circuit are connected via a bus.

[0048] Some embodiments of the present application provide a method for controlling the working mode of a multi-function peripheral circuit, which is applied to the above-mentioned DSP chip-based products, and the method includes: the core in the DSP chip configures the peripheral circuit through a bus so that the peripheral circuit can be used as: a comparator, a digital-to-analog converter, or a comprehensive circuit for monitoring analog signal output.

[0049] In some embodiments of the present application, the core in the DSP chip configures the peripheral circuit through the bus, including: setting the selection signal SEL of the second selector MUX2 to zero, setting the enable signal EN of the buffer Buffer to zero, and setting the enable of the DAC module to zero, so as to use the peripheral circuit as a comparator.

[0050] In some embodiments of the present application, the core in the DSP chip configures the peripheral circuit through the bus, including: turning off the second selector MUX2 enable, turning off the comparator enable, turning on the buffer Buffer and the DAC module enable, using the peripheral circuit as a separate DAC module, and outputting the target voltage waveform through a DAC control module connected to the DAC module.

[0051] In some embodiments of the present application, the core in the DSP chip configures the peripheral circuit through the bus, including: turning on the enable of the DAC module and the comparator, and setting the selection SEL signal of the second selector MUX2 high, wherein the positive voltage of the comparator is the external input voltage value, and the negative voltage is the target voltage output by the DAC control module to control the digital-to-analog conversion DAC.

[0052] In some embodiments of the present application, the core in the DSP chip configures the peripheral circuits through a bus, including: turning on the buffer Buffer enable to monitor the voltage output by the DAC module.

[0053] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0054] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0055] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0056] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0057] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0058] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A peripheral circuit of a DSP chip, characterized in that: The peripheral circuit comprises: A DAC module configured to convert an input digital signal into an analog output signal; A second selector, a first input terminal connected to the output terminal of the DAC module, and a second input terminal connected to a first external voltage to be compared; A comparator, wherein a positive input terminal is connected to a second external voltage to be compared, and a negative input terminal is connected to an output terminal of the second selector; A buffer, an input end of which is connected to an output end of the DAC module; The peripheral circuit also includes: A DAC control module, whose output terminal is connected to the digital input terminal of the DAC module and is configured to provide digital input to the DAC module through digital logic; The second selector is configured to select one of the analog output signal and the first external voltage to be compared as an output signal of the second selector under the control of a selection signal; The peripheral circuit also includes: A first selector, wherein the third input terminal is used to input an internal reference source, the fourth input terminal is used to input an external reference source, and the output terminal is connected to the reference source input terminal of the DAC module; The first selector is configured to select one of the internal reference source and the external reference source as a reference source input signal of the DAC module under the control of a selection signal.

2. A DSP chip, characterized in that: The DSP chip comprises the peripheral circuit as claimed in claim 1 and a DSP core, wherein the DSP core is connected to the peripheral circuit via a bus.

3. A method for controlling the working mode of a multi-function peripheral circuit, the method being applied to the DSP chip as claimed in claim 2, the method comprising: The core in the DSP chip configures the peripheral circuits through the bus so that the peripheral circuits can be used as comparators, digital-to-analog converters, or integrated circuits that output monitored analog signals.

4. The method according to claim 3, characterized in that The core in the DSP chip configures the peripheral circuits through the bus, including: The selection signal SEL of the second selector MUX2 is reset to zero, the enable signal EN of the buffer Buffer is reset to zero, and the enable of the DAC module is reset to zero, so that the peripheral circuit is used as a comparator.

5. The method according to claim 3, characterized in that The core in the DSP chip configures the peripheral circuits through the bus, including: The second selector MUX2 is turned off, the comparator is turned off, the buffer Buffer and the DAC module are turned on, the peripheral circuit is used as a separate DAC module, and the target voltage waveform is output through a DAC control module connected to the DAC module.

6. The method according to claim 3, characterized in that The core in the DSP chip configures the peripheral circuits through the bus, including: Turn on the enable of the DAC module and the comparator, and set the selection SEL signal of the second selector MUX2 high, wherein the positive voltage of the comparator is the external input voltage value, and the negative voltage is the target voltage output by the DAC module controlled by the DAC control module.

7. The method according to claim 6, characterized in that The core in the DSP chip configures the peripheral circuits through the bus, including: turning on the buffer Buffer to enable the DAC module to monitor the voltage output by the DAC module.

Citation Information

Patent Citations

  • A comparator circuit and a comparator circuit control method

    CN110034766B

  • Comparator circuit and comparator circuit control method

    CN110034766A

  • Low-power-consumption high-precision multiplexing analog comparator

    CN115694441A

  • Digital-analog converting circuit

    US20020039075A1