Method and device for improving analog-to-digital conversion precision of single-chip microcomputer

An analog-to-digital conversion and analog-to-digital converter technology, applied in the field of electronics, can solve the problems of increasing hardware, increasing costs, increasing the space overhead of system solutions, etc., and achieving the effect of improving the accuracy of analog-to-digital conversion

Active Publication Date: 2019-11-12
SHANGHAI SINOMCU MICROELECTRONICS
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Adding hardware will lead to higher costs and will increase the space overhead of the system solution

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for improving analog-to-digital conversion precision of single-chip microcomputer
  • Method and device for improving analog-to-digital conversion precision of single-chip microcomputer
  • Method and device for improving analog-to-digital conversion precision of single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] image 3 A flow chart showing the implementation of the method for improving the analog-to-digital conversion accuracy of the single-chip microcomputer according to an embodiment of the present invention is shown. The subject of execution of the method may be a device (such as a computer) connected to the single-chip microcomputer for configuring the single-chip microcomputer, which is not limited herein. like image 3 As shown, the method mainly includes:

[0053] In step S301, it is determined whether the power supply voltage of the single-chip microcomputer fluctuates due to internal reasons of the single-chip microcomputer.

[0054] It should be noted that those skilled in the art can determine whether the fluctuation of the power supply voltage of the single-chip microcomputer is caused by internal reasons of the single-chip microcomputer through various methods, which are not limited here. For example, when the peripheral pin of the microcontroller is connected...

Embodiment 2

[0062] Figure 5 A flow chart showing the implementation of the method for improving the analog-to-digital conversion precision of the single-chip microcomputer according to another embodiment of the present invention is shown. The subject of execution of the method may be a device (such as a computer) connected to the single-chip microcomputer for configuring the single-chip microcomputer, which is not limited herein. like Figure 5 As shown, the method mainly includes:

[0063] In step S501, it is determined whether the power supply voltage of the single-chip microcomputer fluctuates due to an external cause of the single-chip microcomputer.

[0064] It should be noted that those skilled in the art can determine whether the power supply voltage fluctuation of the single-chip microcomputer is caused by external factors of the single-chip microcomputer through various methods, which are not limited here. For example, if the power supply voltage fluctuation is still detected...

Embodiment 3

[0070] Image 6A structural block diagram of a device for improving the precision of analog-to-digital conversion of a single-chip microcomputer according to another embodiment of the present invention is shown. The device may be a device (such as a computer) connected to a single-chip microcomputer for configuring the single-chip microcomputer, which is not limited herein. Image 6 can be used to run image 3 The method for improving the analog-to-digital conversion precision of the single-chip microcomputer is shown. For the sake of illustration, in Image 6 Only the parts related to this embodiment are shown in .

[0071] like Image 6 As shown, the device includes: a judging module 61 for judging whether the power supply voltage fluctuation of the single-chip microcomputer is caused by the internal reasons of the single-chip microcomputer; In the case of fluctuations, configure the corresponding registers of the PWM module of the single-chip microcomputer and the corr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention relates to a method and device for improving the analog-to-digital conversion precision of a single-chip microcomputer. The method includes the following steps that: whether the power source voltage fluctuation of the single-chip microcomputer is caused by the internal cause of the single-chip microcomputer is judged; and when the power source voltage fluctuation of the single-chip microcomputer is caused by the internal cause of the single-chip microcomputer, a register corresponding to the PWM module of the single-chip microcomputer and a register corresponding to the analog-to-digital converter of the single-chip microcomputer are configured, so that the output frequency of the PWM module can be equal to the integer multiples of the clock frequency of the analog-to-digital converter. According to the method and device of the invention, the registers of the single-chip microcomputer are configured, so that the output frequency of the PWM module of the single-chip microcomputer can be equal to the integer multiples of the clock frequency of the analog-to-digital converter of the single-chip microcomputer. With the method and device for improving the analog-to-digital conversion precision of the single-chip microcomputer provided by the invention adopted, the analog-to-digital conversion precision of the single-chip microcomputer will not be affected by the power source voltage fluctuation under the premise that no hardware is additionally adopted.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a method and a device for improving the precision of analog-to-digital conversion of a single-chip microcomputer. Background technique [0002] In many application scenarios of single-chip microcomputers, the power supply voltage Vcc of single-chip microcomputers will inevitably fluctuate. If a microcontroller equipped with an analog-to-digital converter (Analog-to-Digital Converter, ADC) is used in these application scenarios, the conversion accuracy of the analog-to-digital converter will be seriously reduced. figure 1 A schematic circuit diagram showing a microcontroller connected to a MOS (Metal-Oxide-Semiconductor, Metal-Oxide-Semiconductor) tube through a pin. figure 1 The circuit shown is used in a large number of application scenarios. exist figure 1 In the circuit shown, when the microcontroller outputs a PWM (Pulse Width Modulation, pulse width modulation) wave s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H03M1/50H03M1/06
CPCH03M1/0656H03M1/504
Inventor 刘攀峰张文荣陆健罗鹏党朝
Owner SHANGHAI SINOMCU MICROELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products