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
CN106385258BActive Publication Date: 2019-11-12SHANGHAI SINOMCU MICROELECTRONICS

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI SINOMCU MICROELECTRONICS
Publication Date
2019-11-12

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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