MCU-based adjustable DAC slow output method and system

The invention discloses an MCU-based adjustable DAC slow output method and system. The method comprises the following steps: initializing a DAC module, and reading an output high-end offset value and an output low-end offset value of the DAC module, a maximum value which can be written into a regist...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHAN WUGANG, LIU QIAN, SHEN PENGCHENG, ZHANG HUIJUN, CHEN DEGANG, SHANG LIMIN, LIU XU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an MCU-based adjustable DAC slow output method and system. The method comprises the following steps: initializing a DAC module, and reading an output high-end offset value and an output low-end offset value of the DAC module, a maximum value which can be written into a register of the DAC module and an output initial value of the DAC module; setting an output target value of the DAC module, an output time period of the DAC module, output time required from the output initial value to the output target value, and an output voltage step value per unit time period; the selection output mode is one of a time output mode and a stepping output mode; and calculating the digital input quantity of the DAC module in each time period according to the output mode so that the analog quantity output slope of the DAC module is matched with a post-stage circuit. The problem that the output of an existing DAC module is not matched with a post-stage circuit can be solved, and the method has the advantag