HydraFW DAC guide - hydrabus/hydrafw GitHub Wiki
This guide is updated towards firmware release HydraFW v0.9 Beta and later
Output: 0 to 3.3V
Resolution: 12bits
Usage: dac <dac1/dac2> <raw (0 to 4095)/volt (0 to 3.3V)/triangle/noise> [exit]
- DAC1 is mapped on PA4 pin (used by ULED)
- DAC2 is mapped on PA5 pin
Syntax:
-
dac1
ordac2
to choose DAC1 or DAC2 device -
Choose one of the following output type:
-
raw
Raw value <0 to 4095>- Output real value in decimal and volt
-
volt
Volt <0 to 3.3v>- Output real value in decimal and volt
-
triangle
Triangle output (5Hz and amplitude 3.3V) -
noise
Noise output (amplitude 3.3V)
-
-
exit
Exit DAC mode (reinit DAC1&2 pins to safe mode/in)
> dac dac1 raw 1
DAC1 Raw
1/0.0008V
> dac dac2 raw 4095
DAC2 Raw
4095/3.3000V
> dac dac2 volt 1.256
DAC2 Volt
1558/1.2555V
> dac dac2 triangle
DAC2 (Triangle Out)
> dac dac2 noise
DAC2 (Noise Out)