Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Single-chip microcomputer high-precision analog quantity output method, device and equipment based on PWM waveform

An output method and a technology of an output device, which are applied in the field of analog output, can solve the problems that the analog cannot achieve accuracy and increase the cost of digital-to-analog conversion, etc.

Active Publication Date: 2020-08-04
GUANGDONG HIWAVE TECH
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that low-performance single-chip microcomputers need the cooperation of D / A chips to achieve high-precision analog output, and adding D / A chips to achieve analog output will undoubtedly increase the cost of digital-to-analog conversion, but only Relying on the timer in the single-chip microcomputer to control the output frequency and output PWM waveform, the output analog quantity cannot reach the accuracy of 1mV

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
  • Single-chip microcomputer high-precision analog quantity output method, device and equipment based on PWM waveform
  • Single-chip microcomputer high-precision analog quantity output method, device and equipment based on PWM waveform
  • Single-chip microcomputer high-precision analog quantity output method, device and equipment based on PWM waveform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The present invention is further described in conjunction with the following examples.

[0050] See figure 1 , the high-precision analog output device based on the PWM waveform of this embodiment, wherein only a single-chip microcomputer, a low-pass filter, and an operational amplifier connected in sequence can be used to realize digital-to-analog conversion, and the converted analog output can reach a precision output of 1mV .

[0051] Among them, the single-chip microcomputer is a 51 single-chip microcomputer, the pin P1 of the 51 single-chip microcomputer is connected with the input end of the low-pass filter, and there is a resistor in series on the line connected between the pin P0 of the 51 single-chip microcomputer and the pin VCC, and the output terminal of the low-pass filter is connected with the operation The input terminal of the amplifier is connected, and the output terminal of the operational amplifier is divided into two branches, one of which is connec...

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 invention provides a single-chip microcomputer high-precision analog quantity output method, device and equipment based on a PWM waveform. The method comprises the steps that the output frequencyof the PWM waveform is set to be A Hz; a voltage value U with millivolt as a unit is obtained; if the full-scale output value of the single-chip microcomputer is B volt, the B volt is converted into B*1000 millivolt, the B*1000 millivolt can be regarded as having B*1000 small sections B1 in one period T, and the duty ratio is the ratio of the voltage value U to the B*1000 small sections B1; when the PWM waveform is output at the output frequency, the PWM waveform can be regarded as that A small sections A1 are evenly distributed in the PWM waveform within one period T, the duty ratio requirement is met, the output frequency requirement is met at the same time, and in the PWM waveform, it is set that a high level exists within one period T, and the finally output PWM waveform is generated.The single-chip microcomputer realizes high-precision analog quantity output without adding a D / A chip, so that the cost of digital-to-analog conversion of the single-chip microcomputer is reduced, and the output analog quantity can be controlled to reach the precision of 1mV.

Description

technical field [0001] The invention relates to analog quantity output in digital-to-analog conversion, in particular to a single-chip microcomputer high-precision analog quantity output method, device and equipment based on PWM waveforms. Background technique [0002] Low-performance single-chip microcomputers such as 51 series are widely used because of their cheap price, but low-performance single-chip microcomputers do not have D / A function, so the existing low-performance single-chip microcomputers need to add a D / A chip when performing digital-to-analog conversion , Of course, the low-performance microcontroller can also control the output frequency through the internal timer, and output the analog quantity by outputting the PWM waveform. [0003] However, the maximum crystal oscillator frequency of the existing low-performance single-chip microcomputer is 16MHz, and its one machine cycle is 1 / 16us. After software calculation and processing, the maximum output frequen...

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
IPC IPC(8): H03K7/08
CPCH03K7/08
Inventor 程竑理黎祥松何欣原柳晶津
Owner GUANGDONG HIWAVE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products