A compensation method for pwm control voltage
A compensation method and technology for controlling voltage, applied in control/regulating systems, regulating electrical variables, instruments, etc., can solve the problems of increasing hardware costs, large errors, and insufficient PWM control voltage accuracy, reducing costs, improving control accuracy, The effect of reducing errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] Below in conjunction with accompanying drawing, preferred embodiment of the present invention is described in further detail:
[0030] see figure 1 with figure 2 , a kind of compensating method of PWM control voltage, comprises the steps:
[0031] S1. The I / O port P01 of the single-chip microcomputer generates a corresponding PWM according to the target voltage Vt, and the PWM generates an initial voltage Vst, and the initial voltage Vst is loaded to the load through the circuit; wherein, when the single-chip microcomputer I / O port P01 outputs a low level , the actual working voltage Vr at both ends of the load is 12V, the count value Duty sent by the microcontroller to the PWM is 255, and the relationship between the PWM count value Duty and the target voltage Vt satisfies the following formula:
[0032] Duty=255*Vt / 12;
[0033] When the single-chip microcomputer I / O port P01 outputs a high level, the actual working voltage Vr at both ends of the load is 0V;
[00...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 