Multi-path switching value collection device based on AD sampling circuit and collecting method thereof
The invention discloses a multi-path switching value collection device based on an AD sampling circuit and a collecting method thereof, and relates to the multi-path switching value collection technology. The problem that the existing circuit for collecting multi-path switch must select CPU with mul...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a multi-path switching value collection device based on an AD sampling circuit and a collecting method thereof, and relates to the multi-path switching value collection technology. The problem that the existing circuit for collecting multi-path switch must select CPU with multiple I/O ports or must be added with an I/O port expansion drive circuit, thus being too high in cost and poor in anti-jamming capability is solved. Each button of the device is connected with a resistor to form a button subcircuit, all button subcircuits are connected between the analog signal input end of the AD sampling circuit and the ground of a power supply in parallel, a resistor is connected between the analog signal input end and the anode of the power supply in series, and the resistance values of the resistors serially connected with the buttons S1 to SN are gradually reduced. The method comprises the steps of: obtaining the resistance values of the buttons according to the voltages collected by the AD sampling circuit, and determining the closed state of one or more buttons according to the resistance values of the buttons and button parallel circuit structures. The multi-path switching value collection device based on the AD sampling circuit and the collecting method thereof are applicable to the technical field of circuit design requiring collecting multi-path switching value, and also applicable to modifying the existing circuit requiring adding switching value collection quantity. |
---|