SPC Version 0.9.5
The DACnMode controls the operation of the analog output pins O0/O1.
The following modes are available for use:
|DAC_MODE_DCOUT||0||Steady (DC) voltage output|
|DAC_MODE_SINEWAVE||1||Sine wave output|
|DAC_MODE_SQUAREWAVE||2||Square wave output|
|DAC_MODE_SAWPOSWAVE||3||Positive going sawtooth output|
|DAC_MODE_SAWNEGWAVE||4||Negative going sawtooth output|
|DAC_MODE_TRIANGLEWAVE||5||Triangle wave output|
|DAC_MODE_PWMVOLTAGE||6||PWM square wave output|
|DAC_MODE_RESTART_MASK||0x80||Restart waveform mask|
Mode DAC_MODE_DCOUT uses the DACnVoltage to control the output voltage between 0 and 3.3 volts in steps of 3.222 mV.
The waveforms associated with modes DAC_MODE_SINEWAVE, DAC_MODE_SQUAREWAVE, DAC_MODE_SAWPOSWAVE, DAC_MODE_SAWNEGWAVE, and DAC_MODE_TRIANGLEWAVE are centered around a DC offset of 1.65 volts. The DACnVoltage controls the amplitude from +/- 0 to +/- 1.65 volts.
The waveform associated with mode DAC_MODE_PWMVOLTAGE is a rectangular waveform switching between 0 and 3.3 volts. The DACnVoltage controls the mark to space ratio between 0% and 100%. The average DC value of this waveform thus varies from 0 to 3.3 volts.
As of firmware version 2.3 the waveform generator has been improved to provide: