A signal amplitude adjustment system implemented by hardware
By designing a hardware system including upper computer, parameter communication module, amplification factor analysis module, etc., using amplification and scaling factors to adjust the signal amplitude, the problem of insufficient amplitude and range of the DAC module is solved, and high precision and wide range are achieved signal amplitude adjustment.
Patent Information
- Application Number
- CN202010666909.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-13
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2040-07-13
AI Technical Summary
The existing DAC modules have low amplitude accuracy and a large amplitude range, which cannot meet the high-precision and wide-range signal amplitude adjustment requirements.
Design a hardware-implemented signal amplitude adjustment system, including a computer, parameter communication module, amplitude modulation factor analysis module, factor symbolization module, signed signal shift module, signed bit multiplication module and DAC module, and set the amplitude modulation factor digitally , use the amplification factor and scaling factor to adjust the signal amplitude, avoid the use of dividers, and save resources.
It realizes high-precision and wide-range adjustment of signal amplitude, making up for the shortcomings of the DAC module's own low amplitude accuracy and small amplitude range, and has the characteristics of simple and user-friendly control and efficient.
Smart Images

Figure CN111756381B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a signal amplitude adjustment system implemented by hardware. Background Art
[0002] Signal amplitude adjustment plays an important role in signal transmission and processing. The signal receiving end has certain requirements on the signal amplitude or the receiving end needs the signal amplitude to be adjustable to stimulate the subsequent circuit. A method with adjustable signal amplitude, wide adjustment range and high adjustment accuracy has emerged.
[0003] DAC is a digital-to-analog converter, a module that converts digital signals into analog signals.
[0004] Independent DAC chips generally have two types of chips: serial and parallel control. For example, DAC0832 belongs to the parallel control port; DAC7612 belongs to the serial input port. Serial ports include serial ports, I2C, SPI, etc. Parallel ports are generally 8-bit or 16-bit. For example, DAC0832 belongs to 8-bit parallel control, and DAC7612 belongs to SPI port control. To control DAC0832 with a single-chip microcomputer, 8 control pins are required, and to control DAC7612, 4 SPI pins are required. If there is an SPI module inside the single-chip microcomputer, you can call it to directly control DAC7612. If there is no SPI, you can use IO port software simulation.
[0005] The DAC module controlled by the parallel port occupies more IO ports of the microcontroller. The higher the accuracy, the more IO ports are needed. For example, DAC0832, 8-bit control, 8 pins output 0V for 0000 0000, 8 pins output 5V for 1111 1111, and there are 256 kinds of values from 0000 0000 to 1111 1111, so DAC0832 has 8-bit accuracy, that is, 5V / 256 is approximately equal to 0.02V, 0000 0001 outputs 0.02V, 0000 0002 outputs 0.04V, and the step is 0.02V. If you want to output a voltage with a step of 0.01V, 8-bit accuracy is not enough.
[0006] Today's DAC chips are generally controlled by serial ports, with the SPI port being the most commonly used. Regardless of whether it is 8-bit, 10-bit, 12-bit, or 16-bit accuracy, it is controlled by 4 lines.
[0007] However, the existing DAC modules have low amplitude modulation accuracy and a small amplitude modulation range. Summary of the invention
[0008] In order to solve the above technical problems, the present invention provides a hardware-implemented signal amplitude adjustment system, which makes the signal amplitude adjustable and the amplitude modulation factor communication interface configurable.
[0009] The technical solution of the present invention is:
[0010] A hardware-implemented signal amplitude adjustment system is composed of a host computer, a parameter communication module, an amplitude modulation factor analysis module, a factor symbolization module, a signed signal shift module, a signed bit multiplication module, a signed bit addition module, and a DAC module.
[0011] The parameter communication module is connected with the host computer and the amplitude modulation factor analysis module respectively;
[0012] The signed bit multiplication module is respectively connected to the signed signal shift module, the factor signification module, and the signed bit addition module;
[0013] The factor symbolization module is connected to the amplitude modulation factor analysis module; the DAC module is connected to the signed bit addition module;
[0014] By digitally setting the amplitude modulation factor to change the value of the signed digital signal, the output amplitude of the analog signal of the DAC module is adjusted.
[0015] Furthermore,
[0016] The host computer sends parameters through the parameter communication module, serial port, PCIe interface, USB interface, as long as the parameters used by the system can be sent in a humane way.
[0017] Furthermore,
[0018] The parameter communication module analyzes the data transmitted according to the communication interface protocol in the amplitude modulation factor analysis module to obtain the amplitude modulation factor. The amplitude modulation factor consists of the amplification factor and the scaling factor.
[0019] The more bits the amplification factor has, the wider the amplitude modulation range; the more bits the scaling factor has, the higher the amplitude modulation accuracy. The amplitude modulation factor acts on a signed signal and needs to be converted into a signed bit factor in the factor symbolization module. The signed signal is shifted to obtain the amplified and scaled signed signal, avoiding the use of a divider and saving resources.
[0020] The sign factor is multiplied with the signed signal by the signed bit. The valid multiplication module results are added by the signed bit to obtain the modulated digital signal output. The modulated digital signal output passes through the DAC module to output the modulated analog signal. The modulation accuracy is determined by the digital input of the DAC, which makes up for the modulation limitation of the DAC module itself.
[0021] The beneficial effects of the present invention are
[0022] By digitally setting the amplitude modulation factor to change the value of the signed digital signal, the output amplitude of the analog signal of the DAC module is adjusted. The signal amplitude is adjusted from the source of the digital signal to make up for the defects of the DAC module's low amplitude modulation accuracy and small amplitude modulation range. The invention has the characteristics of adjustable signal amplitude, configurable amplitude modulation factor communication interface, high amplitude modulation accuracy, wide amplitude modulation range, simple implementation and humanized control, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a working block diagram of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0025] A hardware-implemented signal amplitude adjustment system of the present invention has a block diagram as shown in FIG. Figure 1 As shown, it consists of a host computer, a parameter communication module, an amplitude modulation factor parsing module, a factor symbolization module, a signed signal shift module, a signed bit multiplication module, a signed bit addition module, and a DAC module.
[0026] The host computer sends parameters through the parameter communication module, serial port, PCIe interface, USB interface, as long as the parameters used by the system can be sent in a humane way.
[0027] The parameter communication module parses the data transmitted by the communication interface protocol in the amplitude modulation factor parsing module to obtain the amplitude modulation factor. The amplitude modulation factor consists of the amplification factor and the scaling factor. The more bits the amplification factor has, the wider the amplitude modulation range; the more bits the scaling factor has, the higher the amplitude modulation accuracy.
[0028] The amplitude modulation factor acts on the signed signal and needs to be converted into a signed factor in the factor signification module. The signed signal is shifted to obtain an amplified and scaled signed signal, avoiding the use of a divider and saving resources. The signification factor is multiplied with the signed signal. The signed addition operation is performed on the valid results of the aforementioned multiplication module to obtain the modulated digital signal output.
[0029] The amplitude modulated digital signal is output through the DAC module to output an amplitude modulated analog signal. The amplitude modulation accuracy is determined by the digital input of the DAC, which makes up for the amplitude modulation limitation of the DAC module itself.
[0030] An example to illustrate the amplitude modulation process:
[0031] ① The host computer sends a 32-bit amplitude modulation factor (hexadecimal C000A001), where the upper 16 bits (hexadecimal C000) represent the amplification factor and the lower 16 bits (hexadecimal A001) represent the scaling factor, which is sent to the parameter communication module through the communication interface.
[0032] ② The amplitude modulation factor parsing module parses out the 32-bit amplitude modulation factor, including the amplification factor (hexadecimal C000) and the scaling factor (hexadecimal A001).
[0033] ③ The factor signification module converts each bit in the factor into a signed factor so that it can be operated with the signed signal. The conversion rule is to convert the original unsigned factor into a 2-bit signed factor bit by bit, that is, bit 0 is converted to bit 00, and bit 1 is converted to bit 01. The amplification factor (hexadecimal C000) is converted into 16 2-bit signed factors, which we use A1, A2, ..., A 16 Indicates that A1=A2=…=A 14 =2'b00,A 15 =A 16 =2'b01; The scaling factor (hexadecimal A001) is converted into 16 2-bit signed factors, which we use B1, B2, ..., B 16 Indicates that B1=B3=B 16 =2'b01,B2=B4=B5=…=B 15 =2'b00.
[0034] ④ The signed bit signal X is subjected to a signed bit shift operation. The signed bit signal X is shifted to the left by 0, 1, 2, ..., 15 bits respectively. The shifted signals are represented by X L0 , X L1 , X L2 , …, X L15 Indicates that the signed signal X is shifted rightward by 1, 2, ..., 16 bits with a sign, and the shifted signals are represented by X R1 , X R2 , …, X R16 express.
[0035] ⑤ In the signed bit multiplication operation module, the 32 shifted signals are respectively multiplied with the 32 signed bit factors by signed bit multiplication operation, that is, T L15 =A 16 *X L15 ,T L14 =A 15 *X L14, …, T L1 =A2*X L1 , T L0 =A1*X L0 ; T R1 =B1*X R1 , T R2 =B2*X R2 , …, T R15 =B 15 *X R15 ,T R16 =B 16 *X R16 .
[0036] ⑥ In the signed bit addition operation module, the above product results are summed and accumulated. Here, a multi-level summation method of adding two by two is adopted to avoid the timing risk of hardware summing 32 values in one clock cycle. The output signal of this example is
[0037] X DO =T L15 +T L14 +T R1 +T R3 +T R16 =A 16 *X L15 +A 15 *X L14 +B1*X R1 +B3*X R3 +B 16 *X R16 =2 15 *X+2 14 *X+X / 2 1 +X / 2 3 +X / 2 16 =(2 15 +2 14 +2 -1 +2 -3 +2 -16 )X.
[0038] ⑦ Output the above amplitude modulated digital signal to X DO As the DAC module input, it performs digital-to-analog conversion and outputs the amplitude modulated analog signal output X AO .
[0039] ⑧The amplitude modulation range of the above method is 0~(2 15 +2 14 +…+2 0 +2 -1 +2 -2 +…+2 -16 ) times, the amplitude modulation accuracy is 2 of the original signal -16times. With this method, the amplitude modulation range is wide and the amplitude modulation accuracy is high. The above is just an example using 16-bit magnification factor and 16-bit scaling factor.
[0040] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A hardware-implemented signal amplitude adjustment system, characterized in that: It consists of a host computer, a parameter communication module, an amplitude modulation factor analysis module, a factor symbolization module, a signed signal shift module, a signed bit multiplication module, a signed bit addition module, and a DAC module; The parameter communication module is connected to the host computer and the amplitude modulation factor analysis module respectively; The signed bit multiplication module is respectively connected to the signed signal shift module, the factor signification module, and the signed bit addition module; The factor symbolization module is connected to the amplitude modulation factor analysis module; the DAC module is connected to the signed bit addition module; By digitally setting the amplitude modulation factor to change the value of the signed digital signal, the output amplitude of the analog signal of the DAC module is adjusted; The signed signal is amplified and scaled by the signed signal shift module. The signed factor and the signed signal are multiplied by a signed bit multiplication module; Performing a signed bit addition operation on the result of the multiplication module through the signed bit addition module to obtain an amplitude modulated digital signal output; The amplitude modulation factor is composed of an amplification factor and a scaling factor. The more bits the amplification factor has, the wider the amplitude modulation range is; the more bits the scaling factor has, the higher the amplitude modulation accuracy is.
2. The system according to claim 1, wherein: The parameter communication module includes a serial port, a PCIe interface, and a USB interface.
3. The system according to claim 1, wherein: The host computer sends parameters through the parameter communication module; The parameter communication module analyzes the data transmitted according to the communication interface protocol in the amplitude modulation factor analysis module to obtain the amplitude modulation factor; The amplitude modulation factor acts on the signed signal and is converted into a signed factor in the factor symbolization module.
4. The system according to claim 1, wherein: The amplitude modulated digital signal is output through the DAC module to output the amplitude modulated analog signal.
5. The system according to claim 4, characterized in that The amplitude modulation accuracy is determined by the digital input of the DAC, which makes up for the amplitude modulation limitation of the DAC module itself.
